mirror of https://git.rancher.io/rke2-charts
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
--- charts-original/templates/cilium-configmap.yaml
|
|
+++ charts/templates/cilium-configmap.yaml
|
|
@@ -1,3 +1,11 @@
|
|
+{{- if empty .Values.global.clusterCIDRv4 }}
|
|
+{{- $_ := set .Values.ipv4 "enabled" false -}}
|
|
+{{- end }}
|
|
+
|
|
+{{- if not (empty .Values.global.clusterCIDRv6) }}
|
|
+{{- $_ := set .Values.ipv6 "enabled" true -}}
|
|
+{{- end }}
|
|
+
|
|
{{- if and (.Values.agent) (not .Values.preflight.enabled) }}
|
|
{{- /* Default values with backwards compatibility */ -}}
|
|
{{- $defaultEnableCnpStatusUpdates := "true" -}}
|
|
@@ -199,7 +207,11 @@
|
|
|
|
# Enable IPv6 addressing. If enabled, all endpoints are allocated an IPv6
|
|
# address.
|
|
- enable-ipv6: {{ .Values.ipv6.enabled | quote }}
|
|
+{{- if coalesce .Values.global.clusterCIDRv6 .Values.ipv6.enabled }}
|
|
+ enable-ipv6: "true"
|
|
+{{ else }}
|
|
+ enable-ipv6: "false"
|
|
+{{- end }}
|
|
|
|
{{- if .Values.cleanState }}
|
|
# If a serious issue occurs during Cilium startup, this
|
|
@@ -361,8 +373,12 @@
|
|
enable-endpoint-routes: "true"
|
|
enable-local-node-route: "false"
|
|
{{- else }}
|
|
+{{- if not .Values.ipv4.enabled }}
|
|
+ tunnel: "disabled"
|
|
+{{- else }}
|
|
tunnel: {{ .Values.tunnel }}
|
|
{{- end }}
|
|
+{{- end }}
|
|
|
|
{{- if hasKey .Values "tunnelPort" }}
|
|
tunnel-port: "{{ .Values.tunnelPort }}"
|