Skip to content

Commit

Permalink
refact(e2e): Cleanup csi-driver CR before applying update operator ya…
Browse files Browse the repository at this point in the history
…ml (#379)

Signed-off-by: w3aman <[email protected]>
  • Loading branch information
w3aman authored and kmova committed Sep 13, 2021
1 parent cf1f267 commit a85eed0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e-tests/experiments/upgrade-zfs-localpv/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@
regexp: "replicas: 1"
replace: "replicas: {{ zfs_ctrl_replicas }}"

## Due to Newly added `storageCapacity` Parameter in csidriver spec
## Reapply with updated yaml will fail due to change in immutable field.
- name: Clean up the CSIDriver CR before upgrade operator
shell: kubectl delete csidriver zfs.csi.openebs.io
args:
executable: /bin/bash
register: csidriver
failed_when: "csidriver.rc != 0"

- name: Apply the zfs_operator file to deploy zfs-driver components to the newer version
shell:
kubectl apply -f ./new_zfs_operator.yml
Expand Down

0 comments on commit a85eed0

Please sign in to comment.