diff --git a/keda/templates/manager/deployment.yaml b/keda/templates/manager/deployment.yaml index 91821bb2..3c9d9050 100644 --- a/keda/templates/manager/deployment.yaml +++ b/keda/templates/manager/deployment.yaml @@ -82,6 +82,7 @@ spec: - "--zap-log-level={{ .Values.logging.operator.level }}" - "--zap-encoder={{ .Values.logging.operator.format }}" - "--zap-time-encoding={{ .Values.logging.operator.timeEncoding }}" + - "--enable-webhook-patching={{ .Values.webhooks.enabled }}" {{- if .Values.logging.operator.stackTracesEnabled }} - "--zap-stacktrace-level=error" {{- end }} diff --git a/keda/values.yaml b/keda/values.yaml index 8a15740b..28098e63 100644 --- a/keda/values.yaml +++ b/keda/values.yaml @@ -163,6 +163,7 @@ metricsServer: successThreshold: 1 webhooks: + # It also used to enable or disable webhook patching in the operator enabled: true # -- Port number to use for KEDA admission webhooks. Default is 9443. port: ""