Merge pull request #267 from rbrtbnfgl/calico-dualstack

Fixed calico chart for dualstack
pull/268/head
Roberto Bonafiglia 2022-05-24 12:08:45 +02:00 committed by GitHub
commit d1d945b2fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: