This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathwebhook.yaml
More file actions
49 lines (47 loc) · 1.3 KB
/
webhook.yaml
File metadata and controls
49 lines (47 loc) · 1.3 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
creationTimestamp: null
name: validating-webhook-configuration
annotations:
certmanager.k8s.io/inject-ca-from: istio-operator/webhook-server-cert
webhooks:
- clientConfig:
caBundle: Cg==
service:
name: istio-operator
namespace: istio-operator
path: /validate-install-istio-io-v1alpha2-istiocontrolplane
failurePolicy: Fail
name: vistiocontrolplane.kb.io
rules:
- apiGroups:
- install.istio.io
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- istiocontrolplane
---
# Testing only, see if basic resource admission request can go to webserver
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: validation-webhook-example-cfg
labels:
app: admission-webhook-example
webhooks:
- name: required-labels.banzaicloud.com
clientConfig:
service:
name: istio-operator
namespace: istio-operator
path: "/validate"
caBundle: Cg==
rules:
- operations: [ "CREATE", "UPDATE" ]
apiGroups: ["apps", ""]
apiVersions: ["v1"]
resources: ["deployments","services"]