2021-12-15 22:19:15 +00:00
|
|
|
{{- /* Feature gates for all control plane components */ -}}
|
2021-03-30 12:50:37 +00:00
|
|
|
{{- define "kubeadm.featuregates" -}}
|
2021-11-27 13:02:23 +00:00
|
|
|
{{- $gates := list "CustomCPUCFSQuotaPeriod" "GenericEphemeralVolume" "InTreePluginAWSUnregister" "InTreePluginAzureDiskUnregister" "InTreePluginAzureFileUnregister" "InTreePluginGCEUnregister" "InTreePluginOpenStackUnregister" }}
|
2021-03-30 12:50:37 +00:00
|
|
|
{{- if eq .return "csv" }}
|
2021-04-15 13:51:46 +00:00
|
|
|
{{- range $key := $gates }}
|
|
|
|
{{- $key }}=true,
|
2021-03-30 12:50:37 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
2021-04-15 13:51:46 +00:00
|
|
|
{{- range $key := $gates }}
|
|
|
|
{{ $key }}: true
|
2021-03-30 12:50:37 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|
2021-12-15 22:19:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{- /* Etcd default initial cluster */ -}}
|
|
|
|
{{- define "kubeadm.etcd.initialCluster" -}}
|
|
|
|
{{- if .initialCluster -}}
|
|
|
|
{{ .initialCluster }}
|
|
|
|
{{- else -}}
|
|
|
|
{{ .nodeName }}=https://{{ .nodeName }}:2380
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|