Skip to content

Commit

Permalink
fix(server): admission controller trying to validate all cluster reso…
Browse files Browse the repository at this point in the history
…urces leading to blocking k8s access or other internal issues
  • Loading branch information
murarustefaan committed Feb 19, 2024
1 parent a65235c commit 4b345b1
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions helm/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,29 @@ webhooks:
{{- end }}
rules:
- operations: ["CREATE", "UPDATE"]
apiGroups: ["*"]
apiGroups: ["apps", "batch", "", "autoscaling", "networking.k8s.io"]
apiVersions: ["*"]
resources: ["*"]
resources:
- deployments
- daemonsets
- statefulsets
- cronjobs
- jobs
- pods
- services
- configmaps
- secrets
- services
- persistentvolumeclaims
- ingresses
scope: "Namespaced"
- operations: ["CREATE", "UPDATE"]
apiGroups: ["rbac.authorization.k8s.io", ""]
apiVersions: ["*"]
resources:
- serviceaccounts
- roles
- rolebindings
- clusterroles
- clusterrolebindings
scope: "*"

0 comments on commit 4b345b1

Please sign in to comment.