2021-03-30 12:50:37 +00:00
|
|
|
{{- /*
|
|
|
|
Feature gates for all control plane components
|
|
|
|
*/ -}}
|
|
|
|
{{- define "kubeadm.featuregates" -}}
|
2021-03-30 14:18:27 +00:00
|
|
|
{{- $gates := dict "DefaultPodTopologySpread" "true" "CustomCPUCFSQuotaPeriod" "true" "GenericEphemeralVolume" "true" }}
|
2021-03-30 12:50:37 +00:00
|
|
|
{{- if eq .platform "aws" }}
|
|
|
|
{{- $gates = merge $gates ( dict "CSIMigrationAWS" "true" "CSIMigrationAWSComplete" "true") }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq .return "csv" }}
|
|
|
|
{{- range $key, $val := $gates }}
|
|
|
|
{{- $key }}={{- $val }},
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
{{- range $key, $val := $gates }}
|
|
|
|
{{ $key }}: {{ $val }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|