mirror of https://git.rancher.io/rke2-charts
Fix canal network configuration when ipv6 not enabled
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/155/head
parent
378155b673
commit
1b70ad7d67
|
@ -5,9 +5,3 @@
|
||||||
{{- "" -}}
|
{{- "" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "enableIPv6?" -}}
|
|
||||||
{{- $cidrv6 := coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 -}}
|
|
||||||
{{- ternary "false" "true" (empty .Values.global.clusterCIDRv6) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,10 @@ data:
|
||||||
net-conf.json: |
|
net-conf.json: |
|
||||||
{
|
{
|
||||||
"Network": {{ coalesce .Values.global.clusterCIDRv4 .Values.podCidr | quote }},
|
"Network": {{ coalesce .Values.global.clusterCIDRv4 .Values.podCidr | quote }},
|
||||||
|
{{- if coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 }}
|
||||||
"IPv6Network": {{ coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 | quote }},
|
"IPv6Network": {{ coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 | quote }},
|
||||||
"EnableIPv6": {{ template "enableIPv6?" . }},
|
"EnableIPv6": true,
|
||||||
|
{{- end }}
|
||||||
"Backend": {
|
"Backend": {
|
||||||
"Type": {{ .Values.flannel.backend | quote }}
|
"Type": {{ .Values.flannel.backend | quote }}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
url: local
|
url: local
|
||||||
packageVersion: 09
|
packageVersion: 10
|
||||||
# This repository does not use releaseCandidateVersions, so you can leave this as 00.
|
# This repository does not use releaseCandidateVersions, so you can leave this as 00.
|
||||||
releaseCandidateVersion: 00
|
releaseCandidateVersion: 00
|
||||||
|
|
Loading…
Reference in New Issue