Skip to content

Instantly share code, notes, and snippets.

@garethahealy
Created September 1, 2020 14:45
Show Gist options
  • Save garethahealy/c95cf33ac2c2ceeca6b5a69225ac7c42 to your computer and use it in GitHub Desktop.
Save garethahealy/c95cf33ac2c2ceeca6b5a69225ac7c42 to your computer and use it in GitHub Desktop.
Gatekeeper constraint.yaml
apiVersion: constraints.gatekeeper.sh/v1beta1
kind: CommonK8sLabelsNotset
metadata:
name: commonk8slabelsnotset
spec:
match:
kinds:
- apiGroups:
- apps.openshift.io
- apps
- ""
- route.openshift.io
kinds:
- DeploymentConfig
- DaemonSet
- Deployment
- StatefulSet
- Service
- Route
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment