Skip to content

Commit

Permalink
Remove snapshot class creation in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
ggriffiths committed Oct 18, 2019
1 parent 8359099 commit b74eb54
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions deploy/util/deploy-hostpath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER; do
run kubectl apply -f "${current}"
done

# deploy hostpath plugin and registrar sidecar
# deploy hostpath plugin and CSI sidescars
echo "deploying hostpath components"
for i in $(ls ${BASE_DIR}/hostpath/*.yaml | sort); do
echo " $i"
Expand Down Expand Up @@ -151,7 +151,7 @@ done
# for: the expectation is that we run attacher, provisioner,
# snapshotter, resizer, socat and hostpath plugin in the default namespace.
cnt=0
while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) -lt 5 ] || ! kubectl describe volumesnapshotclasses.snapshot.storage.k8s.io 2>/dev/null >/dev/null; do
while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) -lt 4 ]; do
if [ $cnt -gt 30 ]; then
echo "Running pods:"
kubectl describe pods
Expand All @@ -163,7 +163,3 @@ while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l
cnt=$(($cnt + 1))
sleep 10
done
# deploy snapshotclass
echo "deploying snapshotclass"
kubectl apply -f ${BASE_DIR}/snapshotter/csi-hostpath-snapshotclass.yaml

0 comments on commit b74eb54

Please sign in to comment.