From 0ed022c9df4e6665709b22f7ef8f140a296f0c4f Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 10 Apr 2019 11:22:39 +0200 Subject: [PATCH] deploy: use "apply" instead of "create" for snapshotter class This makes it possible to run the script repeatedly to update a deployment. "kubectl apply" was already used for the other .yaml files. --- deploy/util/deploy-hostpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/util/deploy-hostpath.sh b/deploy/util/deploy-hostpath.sh index 7070d2d69..6a6135356 100755 --- a/deploy/util/deploy-hostpath.sh +++ b/deploy/util/deploy-hostpath.sh @@ -164,4 +164,4 @@ done # deploy snapshotclass echo "deploying snapshotclass" -kubectl create -f ${BASE_DIR}/snapshotter/csi-hostpath-snapshotclass.yaml +kubectl apply -f ${BASE_DIR}/snapshotter/csi-hostpath-snapshotclass.yaml