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
Unify secret and configmap triggers in cacher #80521
Unify secret and configmap triggers in cacher #80521
Conversation
@wojtek-t: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wojtek-t 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 |
c0111cc
to
3a02d0d
Compare
3a02d0d
to
c21f546
Compare
c21f546
to
467f5e9
Compare
@@ -203,6 +203,7 @@ func MatchPod(label labels.Selector, field fields.Selector) storage.SelectionPre | |||
} | |||
} | |||
|
|||
// NodeNameTriggerFunc returns value spec.nodename of given object. | |||
func NodeNameTriggerFunc(obj runtime.Object) 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.
Missed this one? Rename to NameTriggerFunc
for consistency?
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.
Left this on purpose - because it's for Pod
object, for which NameTriggerFunc would suggest it's pods name (as it's the case for all other triggers), whereas we are looking into
Spec.NodeName` field.
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.
Gotcha.
/lgtm |
/retest Review the full test history for this PR. Silence the bot with an |
In the end configmaps and secrets are treated very similarly by control plane (e.g. kubelet).