Skip to content

Commit 21d54b5

Browse files
committed
fixup! Use capzicommunity ACR cache references for calico/tigera images
1 parent cef4469 commit 21d54b5

File tree

4 files changed

+7
-663
lines changed

4 files changed

+7
-663
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,9 @@ generate-e2e-templates: $(KUSTOMIZE) ## Generate Azure infrastructure templates
559559
$(KUSTOMIZE) build $(AZURE_TEMPLATES)/v1beta1/cluster-template-aks --load-restrictor LoadRestrictionsNone > $(AZURE_TEMPLATES)/v1beta1/cluster-template-aks.yaml
560560

561561
.PHONY: generate-addons
562-
generate-addons: fetch-calico-manifests ## Generate metric-server, calico, calico-ipv6, azure cni v1 addons.
563-
$(KUSTOMIZE) build $(ADDONS_DIR)/metrics-server > $(ADDONS_DIR)/metrics-server/metrics-server.yaml
564-
$(KUSTOMIZE) build $(ADDONS_DIR)/calico > $(ADDONS_DIR)/calico.yaml
562+
generate-addons: fetch-calico-manifests $(ENVSUBST)
565563
$(KUSTOMIZE) build $(ADDONS_DIR)/metrics-server > $(ADDONS_DIR)/metrics-server/metrics-server.yaml
564+
$(KUSTOMIZE) build $(ADDONS_DIR)/calico | $(ENVSUBST) > $(ADDONS_DIR)/calico.yaml
566565
$(KUSTOMIZE) build $(ADDONS_DIR)/azure-cni-v1 > $(ADDONS_DIR)/azure-cni-v1.yaml
567566

568567
.PHONY: generate-aso-crds
@@ -577,7 +576,6 @@ generate-aso-crds: $(YQ)
577576
sed 's/\$$\$$/$$$$$$$$/g' \
578577
> $(ASO_CRDS_PATH)
579578

580-
# When updating this, make sure to also update the Windows image version in templates/addons/windows/calico.
581579
export CALICO_VERSION := v3.29.4
582580
# Where all downloaded Calico manifests are unpacked and stored.
583581
CALICO_RELEASES := $(ARTIFACTS)/calico

templates/addons/calico/patches/use-capz-acr.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ spec:
88
spec:
99
initContainers:
1010
- name: upgrade-ipam
11-
image: capzcicommunity.azurecr.io/calico/cni:v3.29.4
11+
image: capzcicommunity.azurecr.io/calico/cni:${CALICO_VERSION}
1212
- name: install-cni
13-
image: capzcicommunity.azurecr.io/calico/cni:v3.29.4
13+
image: capzcicommunity.azurecr.io/calico/cni:${CALICO_VERSION}
1414
- name: mount-bpffs
15-
image: capzcicommunity.azurecr.io/calico/node:v3.29.4
15+
image: capzcicommunity.azurecr.io/calico/node:${CALICO_VERSION}
1616
containers:
1717
- name: calico-node
18-
image: capzcicommunity.azurecr.io/calico/node:v3.29.4
18+
image: capzcicommunity.azurecr.io/calico/node:${CALICO_VERSION}
1919
---
2020
apiVersion: apps/v1
2121
kind: Deployment
@@ -27,4 +27,4 @@ spec:
2727
spec:
2828
containers:
2929
- name: calico-kube-controllers
30-
image: capzcicommunity.azurecr.io/calico/kube-controllers:v3.29.4
30+
image: capzcicommunity.azurecr.io/calico/kube-controllers:${CALICO_VERSION}

0 commit comments

Comments
 (0)