forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebhook-config.yaml
More file actions
27 lines (27 loc) 路 793 Bytes
/
Copy pathwebhook-config.yaml
File metadata and controls
27 lines (27 loc) 路 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: gistpin-resource-validator
annotations:
cert-manager.io/inject-ca-from: gistpin/resource-validator-cert
spec:
webhooks:
- name: resource-validator.gistpin.io
admissionReviewVersions: ["v1"]
sideEffects: None
failurePolicy: Fail
namespaceSelector:
matchLabels:
webhook.gistpin.io/validate: "true"
rules:
- apiGroups: [""]
apiVersions: ["v1"]
operations: ["CREATE", "UPDATE"]
resources: ["pods"]
clientConfig:
service:
name: resource-validator
namespace: gistpin
path: /validate
port: 443
caBundle: "" # injected by cert-manager