012aaadacc
A new release is added to the cluster: Name: metrics-server Namespace: kube-system Version: 3.11.0 Chart: metrics-server/metrics-server
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
{{- if not (eq .Values.defaultRevision "") }}
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: ValidatingWebhookConfiguration
|
|
metadata:
|
|
name: istiod-default-validator
|
|
labels:
|
|
app: istiod
|
|
release: {{ .Release.Name }}
|
|
istio: istiod
|
|
istio.io/rev: {{ .Values.defaultRevision | quote }}
|
|
webhooks:
|
|
- name: validation.istio.io
|
|
clientConfig:
|
|
{{- if .Values.base.validationURL }}
|
|
url: {{ .Values.base.validationURL }}
|
|
{{- else }}
|
|
service:
|
|
{{- if (eq .Values.defaultRevision "default") }}
|
|
name: istiod
|
|
{{- else }}
|
|
name: istiod-{{ .Values.defaultRevision }}
|
|
{{- end }}
|
|
namespace: {{ .Values.global.istioNamespace }}
|
|
path: "/validate"
|
|
{{- end }}
|
|
{{- if .Values.base.validationCABundle }}
|
|
caBundle: "{{ .Values.base.validationCABundle }}"
|
|
{{- end }}
|
|
rules:
|
|
- operations:
|
|
- CREATE
|
|
- UPDATE
|
|
apiGroups:
|
|
- security.istio.io
|
|
- networking.istio.io
|
|
- telemetry.istio.io
|
|
- extensions.istio.io
|
|
apiVersions:
|
|
- "*"
|
|
resources:
|
|
- "*"
|
|
|
|
{{- if .Values.base.validationCABundle }}
|
|
# Disable webhook controller in Pilot to stop patching it
|
|
failurePolicy: Fail
|
|
{{- else }}
|
|
# Fail open until the validation webhook is ready. The webhook controller
|
|
# will update this to `Fail` and patch in the `caBundle` when the webhook
|
|
# endpoint is ready.
|
|
failurePolicy: Ignore
|
|
{{- end }}
|
|
sideEffects: None
|
|
admissionReviewVersions: ["v1"]
|
|
{{- end }}
|