Skip to content

Commit

Permalink
test(e2e): Update the CCM Manifests to v0.4.1 (#479)
Browse files Browse the repository at this point in the history
Also add a update-ccm target to automate updating CCM Version in future.
  • Loading branch information
thunderboltsid authored Aug 26, 2024
1 parent 0883e55 commit 0e42e21
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ CNI_PATH_CILIUM ?= "${E2E_DIR}/data/cni/cilium/cilium.yaml"
CNI_PATH_CILIUM_NO_KUBEPROXY ?= "${E2E_DIR}/data/cni/cilium/cilium-no-kubeproxy.yaml"
CNI_PATH_FLANNEL ?= "${E2E_DIR}/data/cni/flannel/flannel.yaml"
CNI_PATH_KINDNET ?= "${E2E_DIR}/data/cni/kindnet/kindnet.yaml"
CCM_VERSION ?= v0.4.1

# CRD_OPTIONS define options to add to the CONTROLLER_GEN
CRD_OPTIONS ?= "crd:crdVersions=v1"
Expand Down Expand Up @@ -188,6 +189,12 @@ update-kindnet-cni: ## Updates the kindnet CNI manifests
@echo "Updating kindnet CNI manifest"
@curl -sL https://github.com/kubernetes-sigs/cluster-api/raw/main/test/e2e/data/cni/kindnet/kindnet.yaml -o $(CNI_PATH_KINDNET)

.PHONY: update-ccm
update-ccm: ## Updates the Nutanix CCM tag in all the template manifests to CCM_VERSION
@echo "Updating Nutanix CCM tag"
@find $(TEMPLATES_DIR) -type f -exec sed -i 's|CCM_TAG=[^}]*|CCM_TAG=$(CCM_VERSION)|g' {} +
@find $(NUTANIX_E2E_TEMPLATES) -type f -exec sed -i 's|CCM_TAG=[^}]*|CCM_TAG=$(CCM_VERSION)|g' {} +

.PHONY: update-cni-manifests ## Updates all the CNI manifests to latest variants from upstream
update-cni-manifests: update-calico-cni update-cilium-cni update-flannel-cni update-kindnet-cni ## Updates all the CNI manifests to latest variants from upstream

Expand Down
2 changes: 1 addition & 1 deletion templates/ccm/nutanix-ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ spec:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.1}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.1}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-csi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.1}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.1}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.1}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/data/infrastructure-nutanix/ccm-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ data:
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.0}"
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.4.1}"
imagePullPolicy: IfNotPresent
name: nutanix-cloud-controller-manager
env:
Expand Down

0 comments on commit 0e42e21

Please sign in to comment.