Skip to content

Commit 2936df8

Browse files
w3amanKiran Mova
authored andcommitted
refact(e2e): Cleanup csi-driver CR before applying update operator yaml (#148)
Signed-off-by: w3aman <[email protected]>
1 parent 75e80d6 commit 2936df8

File tree

1 file changed

+9
-0
lines changed
  • e2e-tests/experiments/upgrade-lvm-localpv

1 file changed

+9
-0
lines changed

e2e-tests/experiments/upgrade-lvm-localpv/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@
9797
regexp: "replicas: 1"
9898
replace: "replicas: {{ lvm_ctrl_replicas }}"
9999

100+
## Due to Newly added `storageCapacity` Parameter in csidriver spec
101+
## Reapply with updated yaml will fail due to change in immutable field.
102+
- name: Clean up the CSIDriver CR before upgrade operator
103+
shell: kubectl delete csidriver local.csi.openebs.io
104+
args:
105+
executable: /bin/bash
106+
register: csidriver
107+
failed_when: "csidriver.rc != 0"
108+
100109
- name: Apply the lvm_operator file to deploy lvm-driver components to the newer version
101110
shell:
102111
kubectl apply -f ./new_lvm_operator.yml

0 commit comments

Comments
 (0)