New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1853278: observe console-config config map without using a resource sync controller. #298
Conversation
@vareti: This pull request references Bugzilla bug 1853278, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
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/test-infra repository. |
@vareti: This pull request references Bugzilla bug 1853278, which is valid. 3 validation(s) were run on this bug
In response to this:
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/test-infra repository. |
looks like flakes /retest |
/retest |
/lgtm |
/hold |
@@ -82,7 +82,7 @@ func convertTemplatesWithBranding(cmLister corelistersv1.ConfigMapLister, config | |||
} | |||
|
|||
func getConsoleBranding(cmLister corelistersv1.ConfigMapLister) (string, error) { | |||
cm, err := cmLister.ConfigMaps("openshift-authentication").Get("v4-0-config-system-console-config") | |||
cm, err := cmLister.ConfigMaps("openshift-config-managed").Get("wat") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
this will always result in "Not found", "openshift-config-managed" is not in namespaces that are being synced for the underlying informer
edit: not mentioning the wat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit: not mentioning the wat
haha.. I have no idea how this happened. It was supposed to be console-config
.
this will always result in "Not found", "openshift-config-managed" is not in namespaces that are being synced for the underlying informer
Also, I will check on adding openshift-config-managed
to list of informer namespaces.
072c2b4
to
8446e39
Compare
pkg/operator2/starter.go
Outdated
@@ -74,6 +74,7 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle | |||
"openshift-authentication", | |||
"openshift-config", | |||
"kube-system", | |||
"openshift-config-managed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep alphabetical order.
You also need to add it here --v. This will cause the observer to resync on every change of a secret/cm in the openshift-config-managed
NS, but I guess it's still better than us polluting the metrics.
Line 28 in 8bb2e80
interestingNamespaces := []string{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep alphabetical order.
you meant reverse alphabetical order? ;)
Added this namespace to the list you pointed. please take a look
8446e39
to
ced98a2
Compare
/retest |
/lgtm |
PR is verified manually /hold cancel |
please /hold for #299 merging |
/hold |
/hold cancel |
ced98a2
to
62d426c
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mfojtik, stlaz, vareti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
thanks @mfojtik |
/retest Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@vareti: All pull requests linked via external trackers have merged: openshift/cluster-authentication-operator#298. Bugzilla bug 1853278 has been moved to the MODIFIED state. In response to this:
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/test-infra repository. |
/cherry-pick release-4.5 |
@vrutkovs: #298 failed to apply on top of branch "release-4.5":
In response to this:
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/test-infra repository. |
As
v4-0-config-system-console-config
config map is not mounted in oauth-server pod, maybe using a resource sync controller to synchronize withconsole-config
config map fromopenshift-config-managed
is not fully beneficial. Instead, the observer could directly watch for any changes inconsole-config
. This would reduce the number ofDELETE
requests made to kube-apiserver.