Fixed calico chart for dualstack

Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
pull/267/head
Roberto Bonafiglia 2022-05-24 11:44:11 +02:00
parent 948c80dd7e
commit 34d8771f0b
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
--- charts-original/templates/crs/custom-resources.yaml
+++ charts/templates/crs/custom-resources.yaml
@@ -6,6 +6,27 @@
@@ -6,6 +6,28 @@
{{ $secrets = append $secrets $item }}
{{ end }}
{{ $_ := set $installSpec "imagePullSecrets" $secrets }}
@ -13,7 +13,8 @@
+{{ $myIP4Dict := dict "natOutgoing" "Enabled" "encapsulation" "VXLAN" "cidr" .Values.global.clusterCIDRv4 }}
+{{ if not (empty .Values.global.clusterCIDRv6) }}
+{{ $myIP6Dict := dict "natOutgoing" "Enabled" "encapsulation" "VXLAN" "cidr" .Values.global.clusterCIDRv6 }}
+{{ $finalIpPoolList := append $myIP4Dict $myIP6Dict }}
+{{ $ipPoolList := list $myIP4Dict }}
+{{ $finalIpPoolList := append $ipPoolList $myIP6Dict }}
+{{ $_ := set $calicoNetwork "ipPools" $finalIpPoolList }}
+{{ else }}
+{{ $finalIpPoolList := list $myIP4Dict }}

View File

@ -1,5 +1,5 @@
url: https://github.com/projectcalico/calico/releases/download/v3.23.1/tigera-operator-v3.23.1.tgz
packageVersion: 02
packageVersion: 03
additionalCharts:
- workingDir: charts-crd
crdOptions: