2021-12-15 22:19:15 +00:00
|
|
|
{{- /* Feature gates for all control plane components */ -}}
|
2022-04-29 18:22:20 +00:00
|
|
|
{{- define "kubeadm.featuregates" }}
|
2023-07-04 15:12:16 +00:00
|
|
|
{{- $gates := list "CustomCPUCFSQuotaPeriod" }}
|
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 }}
|
2022-04-29 18:22:20 +00:00
|
|
|
{{ $key }}: true
|
|
|
|
{{- end }}
|
2021-03-30 12:50:37 +00:00
|
|
|
{{- 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 -}}
|