From ac312abfbe814880d9c236bf8934fd64f8c5aa88 Mon Sep 17 00:00:00 2001 From: buffalo1024 Date: Fri, 13 Oct 2023 14:49:57 +0800 Subject: [PATCH] add failurePolicy of admission controller in helm chart Signed-off-by: buffalo1024 --- helm/operator/templates/hwameistorcluster.yaml | 1 + helm/operator/values.yaml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/helm/operator/templates/hwameistorcluster.yaml b/helm/operator/templates/hwameistorcluster.yaml index 13316f4e..55375e65 100644 --- a/helm/operator/templates/hwameistorcluster.yaml +++ b/helm/operator/templates/hwameistorcluster.yaml @@ -137,6 +137,7 @@ spec: tag: {{ template "hwameistor.admissionImageTag" . }} resources: {{- toYaml .Values.admission.resources | nindent 8 }} + failurePolicy: {{ $.Values.admission.failurePolicy }} evictor: disable: {{ $.Values.evictor.disable }} replicas: {{ $.Values.evictor.replicas }} diff --git a/helm/operator/values.yaml b/helm/operator/values.yaml index a2c6804c..394d8be8 100644 --- a/helm/operator/values.yaml +++ b/helm/operator/values.yaml @@ -80,7 +80,10 @@ admission: replicas: 1 imageRepository: hwameistor/admission tag: v0.12.3 - + # failurePolicy defines how unrecognized errors from the admission endpoint + # are handled - allowed values are Ignore or Fail. Defaults to Fail. + failurePolicy: "Ignore" + evictor: disable: false replicas: 1