mirror of https://git.rancher.io/rke2-charts
Merge pull request #112 from manuelbuil/calico_systemDefaultRegistry
Bug: Propagate global.systemDefaultRegistry to calico imagespull/113/head
commit
d799ec4a50
|
@ -1,9 +1,12 @@
|
|||
--- charts-original/templates/crs/custom-resources.yaml
|
||||
+++ charts/templates/crs/custom-resources.yaml
|
||||
@@ -6,6 +6,10 @@
|
||||
@@ -6,6 +6,13 @@
|
||||
{{ $secrets = append $secrets $item }}
|
||||
{{ end }}
|
||||
{{ $_ := set $installSpec "imagePullSecrets" $secrets }}
|
||||
+{{ $defaultRegistry := get $installSpec "registry" }}
|
||||
+{{ $finalRegistry := coalesce .Values.global.systemDefaultRegistry $defaultRegistry }}
|
||||
+{{ $_ := set $installSpec "registry" $finalRegistry }}
|
||||
+{{ $defaultipPools := get .Values.installation.calicoNetwork "ipPools" | first }}
|
||||
+{{ $defaultCIDR := get $defaultipPools "cidr" }}
|
||||
+{{ $finalCIDR := coalesce .Values.global.clusterCIDR $defaultCIDR }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
url: https://github.com/projectcalico/calico/releases/download/v3.19.1/tigera-operator-v3.19.1-2.tgz
|
||||
packageVersion: 06
|
||||
packageVersion: 07
|
||||
additionalCharts:
|
||||
- workingDir: charts-crd
|
||||
crdOptions:
|
||||
|
|
Loading…
Reference in New Issue