mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
refact(e2e): Cleanup csi-driver CR before applying update operator yaml (#379)
Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
parent
4cef9edd73
commit
605d075b9f
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue