mirror of https://git.rancher.io/rke2-charts
Merge pull request #150 from manuelbuil/fix_dual_stack_canal
Provide dual-stack support for canalpull/151/head
commit
3440cd9e50
|
@ -5,3 +5,9 @@
|
||||||
{{- "" -}}
|
{{- "" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "enableIPv6?" -}}
|
||||||
|
{{- $cidrv6 := coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 -}}
|
||||||
|
{{- ternary "false" "true" (empty .Values.global.clusterCIDRv6) -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,9 @@ data:
|
||||||
# Flannel network configuration. Mounted into the flannel container.
|
# Flannel network configuration. Mounted into the flannel container.
|
||||||
net-conf.json: |
|
net-conf.json: |
|
||||||
{
|
{
|
||||||
"Network": {{ coalesce .Values.global.clusterCIDR .Values.podCidr | quote }},
|
"Network": {{ coalesce .Values.global.clusterCIDRv4 .Values.podCidr | quote }},
|
||||||
|
"IPv6Network": {{ coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 | quote }},
|
||||||
|
"EnableIPv6": {{ template "enableIPv6?" . }},
|
||||||
"Backend": {
|
"Backend": {
|
||||||
"Type": {{ .Values.flannel.backend | quote }}
|
"Type": {{ .Values.flannel.backend | quote }}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,3 +78,5 @@ calico:
|
||||||
|
|
||||||
global:
|
global:
|
||||||
systemDefaultRegistry: ""
|
systemDefaultRegistry: ""
|
||||||
|
clusterCIDRv4: ""
|
||||||
|
clusterCIDRv6: ""
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
url: local
|
url: local
|
||||||
packageVersion: 07
|
packageVersion: 08
|
||||||
# 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