-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve webhook namespaceSelector.matchLabels (#2605)
* Preserve webhook namespaceSelector.matchLabels I have a webhook with this definition and the reconciler is removing the matchLabels field: Current resource: ``` namespaceSelector: matchExpressions: - key: webhooks.knative.dev/exclude operator: DoesNotExist objectSelector: matchLabels: app.kubernetes.io/component: kafka-dispatcher ``` Applied resource: ``` namespaceSelector: matchExpressions: [ ] matchLabels: app.kubernetes.io/name: knative-eventing objectSelector: matchLabels: app.kubernetes.io/component: kafka-dispatcher ``` Signed-off-by: Pierangelo Di Pilato <[email protected]> * Optimize cases that don't need ensureLabelSelectorRequirements Signed-off-by: Pierangelo Di Pilato <[email protected]> Signed-off-by: Pierangelo Di Pilato <[email protected]>
- Loading branch information
Showing
2 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters