2021-12-15 22:19:15 +00:00
|
|
|
{{- /* Feature gates for all control plane components */ -}}
|
2023-12-04 14:09:16 +00:00
|
|
|
{{- /* Issues: "MemoryQoS" */ -}}
|
2024-03-21 13:00:50 +00:00
|
|
|
{{- /* v1.30?: "NodeSwap" */ -}}
|
|
|
|
{{- /* v1.29: remove/beta now "SidecarContainers" */ -}}
|
2022-04-29 18:22:20 +00:00
|
|
|
{{- define "kubeadm.featuregates" }}
|
2024-03-21 13:00:50 +00:00
|
|
|
{{- $gates := list "CustomCPUCFSQuotaPeriod" "SidecarContainers" "PodAndContainerStatsFromCRI" }}
|
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 -}}
|