Skip to content

Commit 4193dbf

Browse files
committed
Remove snapshotclass and snapshotter creation in deploy script
1 parent 8359099 commit 4193dbf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

deploy/util/deploy-hostpath.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,14 @@ for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER; do
107107
run kubectl apply -f "${current}"
108108
done
109109

110-
# deploy hostpath plugin and registrar sidecar
110+
# deploy hostpath plugin and CSI sidecars
111111
echo "deploying hostpath components"
112112
for i in $(ls ${BASE_DIR}/hostpath/*.yaml | sort); do
113113
echo " $i"
114+
if [[ $i == *"snapshotter"* ]] ; then
115+
continue
116+
fi
117+
114118
modified="$(cat "$i" | while IFS= read -r line; do
115119
nocomments="$(echo "$line" | sed -e 's/ *#.*$//')"
116120
if echo "$nocomments" | grep -q '^[[:space:]]*image:[[:space:]]*'; then
@@ -151,7 +155,7 @@ done
151155
# for: the expectation is that we run attacher, provisioner,
152156
# snapshotter, resizer, socat and hostpath plugin in the default namespace.
153157
cnt=0
154-
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
158+
while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) -lt 4 ]; do
155159
if [ $cnt -gt 30 ]; then
156160
echo "Running pods:"
157161
kubectl describe pods
@@ -163,7 +167,3 @@ while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l
163167
cnt=$(($cnt + 1))
164168
sleep 10
165169
done
166-
167-
# deploy snapshotclass
168-
echo "deploying snapshotclass"
169-
kubectl apply -f ${BASE_DIR}/snapshotter/csi-hostpath-snapshotclass.yaml

0 commit comments

Comments
 (0)