github.com/verrazzano/verrazzano@v1.7.0/platform-operator/helm_config/charts/verrazzano-platform-operator/templates/validatingwebhookconfiguration.yaml (about) 1 # Copyright (C) 2020, 2023, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 apiVersion: admissionregistration.k8s.io/v1 4 kind: ValidatingWebhookConfiguration 5 metadata: 6 name: {{ .Values.name }}-webhook 7 labels: 8 app: {{ .Values.name }}-webhook 9 webhooks: 10 - name: install.verrazzano.io 11 namespaceSelector: 12 matchExpressions: 13 - { key: verrazzano.io/namespace, operator: NotIn, values: [ kube-system ] } 14 clientConfig: 15 service: 16 name: {{ .Values.name }}-webhook 17 namespace: {{ .Values.namespace }} 18 path: /validate-install-verrazzano-io-v1alpha1-verrazzano 19 rules: 20 - apiGroups: 21 - install.verrazzano.io 22 apiVersions: 23 - v1alpha1 24 operations: 25 - CREATE 26 - UPDATE 27 resources: 28 - verrazzanos 29 sideEffects: None 30 failurePolicy: Fail 31 matchPolicy: Exact 32 timeoutSeconds: 30 33 admissionReviewVersions: 34 - v1beta1 35 - v1 36 - name: install.verrazzano.io.v1beta1 37 namespaceSelector: 38 matchExpressions: 39 - { key: verrazzano.io/namespace, operator: NotIn, values: [ kube-system ] } 40 clientConfig: 41 service: 42 name: {{ .Values.name }}-webhook 43 namespace: {{ .Values.namespace }} 44 path: /validate-install-verrazzano-io-v1beta1-verrazzano 45 rules: 46 - apiGroups: 47 - install.verrazzano.io 48 apiVersions: 49 - v1beta1 50 operations: 51 - CREATE 52 - UPDATE 53 resources: 54 - verrazzanos 55 sideEffects: None 56 failurePolicy: Fail 57 matchPolicy: Exact 58 timeoutSeconds: 30 59 admissionReviewVersions: 60 - v1beta1 61 - v1 62 --- 63 apiVersion: admissionregistration.k8s.io/v1 64 kind: ValidatingWebhookConfiguration 65 metadata: 66 name: verrazzano-platform-mysqlinstalloverrides 67 namespace: {{ .Values.namespace }} 68 labels: 69 app: {{ .Values.name }} 70 webhooks: 71 - name: v1beta1-platform-mysqlinstalloverrides.verrazzano.io.v1beta1 72 namespaceSelector: 73 matchExpressions: 74 - { key: verrazzano.io/namespace, operator: NotIn, values: [ kube-system ] } 75 clientConfig: 76 service: 77 name: {{ .Values.name }}-webhook 78 namespace: {{ .Values.namespace }} 79 path: /v1beta1-validate-mysql-install-override-values 80 rules: 81 - apiGroups: 82 - install.verrazzano.io 83 apiVersions: 84 - v1beta1 85 operations: 86 - UPDATE 87 resources: 88 - verrazzanos 89 sideEffects: None 90 failurePolicy: Fail 91 matchPolicy: Exact 92 timeoutSeconds: 30 93 admissionReviewVersions: 94 - v1beta1 95 - v1 96 - name: v1alpha1-platform-mysqlinstalloverrides.verrazzano.io.v1alpha1 97 namespaceSelector: 98 matchExpressions: 99 - { key: verrazzano.io/namespace, operator: NotIn, values: [ kube-system ] } 100 clientConfig: 101 service: 102 name: {{ .Values.name }}-webhook 103 namespace: {{ .Values.namespace }} 104 path: /v1alpha1-validate-mysql-install-override-values 105 rules: 106 - apiGroups: 107 - install.verrazzano.io 108 apiVersions: 109 - v1alpha1 110 operations: 111 - UPDATE 112 resources: 113 - verrazzanos 114 sideEffects: None 115 failurePolicy: Fail 116 matchPolicy: Exact 117 timeoutSeconds: 30 118 admissionReviewVersions: 119 - v1beta1 120 - v1 121 --- 122 apiVersion: admissionregistration.k8s.io/v1 123 kind: ValidatingWebhookConfiguration 124 metadata: 125 name: verrazzano-platform-requirements-validator 126 namespace: {{ .Values.namespace }} 127 labels: 128 app: {{ .Values.name }} 129 webhooks: 130 - name: v1beta1-platform-requirements-validator.verrazzano.io.v1beta1 131 namespaceSelector: 132 matchExpressions: 133 - { key: verrazzano.io/namespace, operator: NotIn, values: [ kube-system ] } 134 clientConfig: 135 service: 136 name: {{ .Values.name }}-webhook 137 namespace: {{ .Values.namespace }} 138 path: /v1beta1-validate-requirements 139 rules: 140 - apiGroups: 141 - install.verrazzano.io 142 apiVersions: 143 - v1beta1 144 operations: 145 - CREATE 146 - UPDATE 147 resources: 148 - verrazzanos 149 sideEffects: None 150 failurePolicy: Fail 151 matchPolicy: Exact 152 timeoutSeconds: 30 153 admissionReviewVersions: 154 - v1beta1 155 - v1 156 - name: v1alpha1-platform-requirements-validator.verrazzano.io.v1alpha1 157 namespaceSelector: 158 matchExpressions: 159 - { key: verrazzano.io/namespace, operator: NotIn, values: [ kube-system ] } 160 clientConfig: 161 service: 162 name: {{ .Values.name }}-webhook 163 namespace: {{ .Values.namespace }} 164 path: /v1alpha1-validate-requirements 165 rules: 166 - apiGroups: 167 - install.verrazzano.io 168 apiVersions: 169 - v1alpha1 170 operations: 171 - CREATE 172 - UPDATE 173 resources: 174 - verrazzanos 175 sideEffects: None 176 failurePolicy: Fail 177 matchPolicy: Exact 178 timeoutSeconds: 30 179 admissionReviewVersions: 180 - v1beta1 181 - v1