mutating-webhook/k8s/admission.yaml
2023-03-25 15:06:58 -05:00

19 lines
511 B
YAML

---
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: deployment-validation
webhooks:
- name: deployment-validation.default.svc
clientConfig:
service:
name: admission-server
namespace: default
path: "/validate/deployments"
caBundle: "${CA_BUNDLE}"
rules:
- operations: ["CREATE","DELETE"]
apiGroups: ["apps"]
apiVersions: ["v1"]
resources: ["deployments"]
failurePolicy: Ignore