Skip to content

Commit

Permalink
CI: fix the AlreadyExists error during snapshot installation
Browse files Browse the repository at this point in the history
In the recent CI, an error occasionally pops up saying
serviceaccounts snapshot-controller already exists.
not sure if the public CI has some caching mechanism.
Using kubectl apply instead of create solves this problem

Signed-off-by: Xin Yang <[email protected]>
Change-Id: I952fcf1df46a953ba67f4922a2ec12cf510c06c4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk-csi/+/20432
Reviewed-by: Yibo Cai <[email protected]>
Tested-by: SPDK CI Jenkins <[email protected]>
Reviewed-by: Jim Harris <[email protected]>
  • Loading branch information
xinydev authored and cyb70289 committed Nov 2, 2023
1 parent a7f312c commit 729574c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function install_snapshot_controller() {
namespace="default"
fi

create_or_delete_resource "create" ${namespace}
create_or_delete_resource "apply" ${namespace}

pod_ready=false
INC=0
Expand Down

0 comments on commit 729574c

Please sign in to comment.