Skip to content

Commit

Permalink
Create snapshotclass based on snapshotter sidecar version
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Griffiths <grant@portworx.com>
  • Loading branch information
ggriffiths committed Dec 6, 2019
1 parent 03f4262 commit 7bb4d65
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions deploy/util/deploy-hostpath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,6 @@ while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l
done
# deploy snapshotclass
echo "deploying snapshotclass"
SNAPSHOTCLASS_PATH="${BASE_DIR}/snapshotter/csi-hostpath-snapshotclass.yaml"
kubectl apply -f $SNAPSHOTCLASS_PATH
echo "deploying snapshotclass based on snapshotter version"
snapshotter_version="$(rbac_version "${BASE_DIR}/hostpath/csi-hostpath-snapshotter.yaml" csi-snapshotter false)"
kubectl apply -f "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${snapshotter_version}/examples/kubernetes/snapshotclass.yaml"

0 comments on commit 7bb4d65

Please sign in to comment.