Skip to content

Commit 95df84b

Browse files
committed
test: fix helm chart verification
1 parent 27d30bb commit 95df84b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

hack/verify-helm-chart.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,14 @@ pip install --break-system-packages --ignore-installed --require-hashes -r ${PKG
6262

6363
# Extract images from csi-azurefile-controller.yaml
6464
expected_csi_provisioner_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[0].image | head -n 1)"
65-
expected_csi_attacher_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[1].image | head -n 1)"
66-
expected_csi_snapshotter_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[2].image | head -n 1)"
67-
expected_csi_resizer_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[3].image | head -n 1)"
68-
expected_liveness_probe_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[4].image | head -n 1)"
69-
expected_azurefile_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[5].image | head -n 1)"
65+
expected_csi_snapshotter_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[1].image | head -n 1)"
66+
expected_csi_resizer_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[2].image | head -n 1)"
67+
expected_liveness_probe_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[3].image | head -n 1)"
68+
expected_azurefile_image="$(cat ${PKG_ROOT}/deploy/csi-azurefile-controller.yaml | yq -r .spec.template.spec.containers[4].image | head -n 1)"
7069

7170
csi_provisioner_image="$(get_image_from_helm_chart ".image.csiProvisioner")"
7271
validate_image "${expected_csi_provisioner_image}" "${csi_provisioner_image}"
7372

74-
csi_attacher_image="$(get_image_from_helm_chart ".image.csiAttacher")"
75-
validate_image "${expected_csi_attacher_image}" "${csi_attacher_image}"
76-
7773
csi_snapshotter_image="$(get_image_from_helm_chart ".snapshot.image.csiSnapshotter")"
7874
validate_image "${expected_csi_snapshotter_image}" "${csi_snapshotter_image}"
7975

0 commit comments

Comments
 (0)