Skip to content

Watch and reconcile operator-controller ConfigMaps#2062

Merged
knative-prow[bot] merged 2 commits intoknative:mainfrom
pierDipi:watch-cms
Apr 17, 2025
Merged

Watch and reconcile operator-controller ConfigMaps#2062
knative-prow[bot] merged 2 commits intoknative:mainfrom
pierDipi:watch-cms

Conversation

@pierDipi
Copy link
Copy Markdown
Member

@pierDipi pierDipi commented Apr 17, 2025

If users apply configmap changes directly, the operator wasn't
reverting those changes instantly; with this PR, it will watch
applied ConfigMaps and apply KnativeServing and KnativeEventing
configurations.

In addition, use filtered informers to not watch the entire cluster but only
operator-controller deployments and configmaps.

Proposed Changes

  • Watch and reconcile operator-controller ConfigMaps instantly

Release Note

- Watch and reconcile operator-controller ConfigMaps.
- Reduce memory usage by only watching Knative specific deployments and configmaps.

If users apply configmap changes directly, the operator wasn't
reverting those changes instantly; with this PR, it will watch
applied ConfigMaps and apply `KnativeServing` and `KnativeEventing`
configurations.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@knative-prow knative-prow Bot requested review from houshengbo and matzew April 17, 2025 05:39
@knative-prow knative-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 17, 2025
Copy link
Copy Markdown

@knative-prow knative-prow Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pierDipi: 3 warnings.

Details

In response to this:

If users apply configmap changes directly, the operator wasn't
reverting those changes instantly; with this PR, it will watch
applied ConfigMaps and apply KnativeServing and KnativeEventing
configurations.

In addition, use filtered informers to not watch the entire cluster but only
operator-controller deployments and configmaps.

Fixes #

Proposed Changes

  • Watch and reconcile operator-controller ConfigMaps instantly

Release Note

Watch and reconcile operator-controller ConfigMaps.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Comment thread pkg/reconciler/common/transformers.go
Comment thread pkg/reconciler/knativeeventing/controller.go Outdated
Comment thread pkg/reconciler/knativeserving/controller.go Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2025

Codecov Report

Attention: Patch coverage is 0% with 27 lines in your changes missing coverage. Please review.

Project coverage is 62.16%. Comparing base (5bef76f) to head (7c66cd5).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/common/transformers.go 0.00% 9 Missing ⚠️
cmd/operator/main.go 0.00% 6 Missing ⚠️
pkg/reconciler/knativeeventing/controller.go 0.00% 6 Missing ⚠️
pkg/reconciler/knativeserving/controller.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2062      +/-   ##
==========================================
- Coverage   62.81%   62.16%   -0.66%     
==========================================
  Files          49       49              
  Lines        2294     2318      +24     
==========================================
  Hits         1441     1441              
- Misses        761      785      +24     
  Partials       92       92              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi
Copy link
Copy Markdown
Member Author

/cherry-pick release-1.17

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.17 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-1.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@pierDipi
Copy link
Copy Markdown
Member Author

/cherry-pick release-1.16

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.16 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-1.16

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Copy Markdown
Contributor

@houshengbo houshengbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2025
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented Apr 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: houshengbo, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2025
@knative-prow knative-prow Bot merged commit 19ec661 into knative:main Apr 17, 2025
25 checks passed
@knative-prow-robot
Copy link
Copy Markdown
Contributor

@pierDipi: new pull request created: #2063

Details

In response to this:

/cherry-pick release-1.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@pierDipi: new pull request created: #2064

Details

In response to this:

/cherry-pick release-1.16

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@houshengbo
Copy link
Copy Markdown
Contributor

/cherry-pick release-1.17

@houshengbo
Copy link
Copy Markdown
Contributor

/cherry-pick release-1.16

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@houshengbo: new pull request created: #2067

Details

In response to this:

/cherry-pick release-1.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@houshengbo: new pull request created: #2068

Details

In response to this:

/cherry-pick release-1.16

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants