Created
September 14, 2025 20:15
-
-
Save larkintuckerllc/e52c2db53aa875fe892b5e0909cebc79 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| apiVersion: kyverno.io/v1 | |
| kind: ClusterPolicy | |
| metadata: | |
| name: nodepool-selector | |
| annotations: | |
| pod-policies.kyverno.io/autogen-controllers: none | |
| spec: | |
| rules: | |
| - name: nodepool-selector | |
| match: | |
| any: | |
| - resources: | |
| kinds: | |
| - Pod | |
| namespaceSelector: | |
| matchLabels: | |
| example.com/match: "true" | |
| exclude: | |
| any: | |
| - resources: | |
| annotations: | |
| example.com/nodepool-selector: "true" | |
| mutate: | |
| patchStrategicMerge: | |
| metadata: | |
| annotations: | |
| +(example.com/nodepool-selector): "true" | |
| labels: | |
| +(team): bravo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment