support controller manager feature gate
Signed-off-by: calvin <wen.chen@daocloud.io>
This commit is contained in:
parent
2a749b1a5d
commit
d9183bc4d5
|
@ -390,4 +390,18 @@ Return the proper karmada kubectl image name
|
||||||
{{ include "common.images.image" (dict "imageRoot" .Values.kubectl.image "global" .Values.global) }}
|
{{ include "common.images.image" (dict "imageRoot" .Values.kubectl.image "global" .Values.global) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "karmada.controllerManager.featureGates" -}}
|
||||||
|
{{- if (not (empty .Values.controllerManager.featureGates)) }}
|
||||||
|
{{- $featureGatesFlag := "" -}}
|
||||||
|
{{- range $key, $value := .Values.controllerManager.featureGates -}}
|
||||||
|
{{- if not (empty (toString $value)) }}
|
||||||
|
{{- $featureGatesFlag = cat $featureGatesFlag $key "=" $value "," -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if gt (len $featureGatesFlag) 0 }}
|
||||||
|
{{- $featureGatesFlag := trimSuffix "," $featureGatesFlag | nospace -}}
|
||||||
|
{{- printf "%s=%s" "--feature-gates" $featureGatesFlag -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
|
@ -54,6 +54,9 @@ spec:
|
||||||
- --secure-port=10357
|
- --secure-port=10357
|
||||||
- --leader-elect-resource-namespace={{ include "karmada.namespace" . }}
|
- --leader-elect-resource-namespace={{ include "karmada.namespace" . }}
|
||||||
- --v=2
|
- --v=2
|
||||||
|
{{- with (include "karmada.controllerManager.featureGates" .) }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
|
|
|
@ -285,6 +285,10 @@ controllerManager:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxUnavailable: 0
|
maxUnavailable: 0
|
||||||
maxSurge: 50%
|
maxSurge: 50%
|
||||||
|
## @param featureGate to controllerManager
|
||||||
|
featureGates:
|
||||||
|
## @param PropagateDeps is a feature gate for the controllerManager to allow propagate dependent respurce to workloads.
|
||||||
|
PropagateDeps: false
|
||||||
|
|
||||||
## karmada apiserver config
|
## karmada apiserver config
|
||||||
apiServer:
|
apiServer:
|
||||||
|
|
Loading…
Reference in New Issue