Skip to content
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

refactor: [experimental] create TLS certificate via code & save it in a PersistentVolume #421

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
add the validatingWEbhookConfiguration disabler and permissions
  • Loading branch information
royhadad committed Jul 13, 2023
commit 2df7c90e512be6063c31ca5480ed5edae1add1c8
7 changes: 7 additions & 0 deletions charts/datree-admission-webhook/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -8,6 +8,13 @@ metadata:
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups:
- "admissionregistration.k8s.io"
resources:
- "validatingwebhookconfigurations"
verbs:
- "get"
- "update"
- apiGroups:
- "user.openshift.io"
resources:
Original file line number Diff line number Diff line change
@@ -31,6 +31,8 @@ webhooks:
matchExpressions:
- key: admission.datree/validate
operator: DoesNotExist
- key: admission.datree/validate
operator: Exists # the label can't exist AND not exist simultaneously, therefore the webhook will never be invoked until we delete this expression
rules:
- operations: ["CREATE", "UPDATE"]
apiGroups: ["*"]