File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,14 @@ for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER; do
107
107
run kubectl apply -f " ${current} "
108
108
done
109
109
110
- # deploy hostpath plugin and registrar sidecar
110
+ # deploy hostpath plugin and CSI sidecars
111
111
echo " deploying hostpath components"
112
112
for i in $( ls ${BASE_DIR} /hostpath/* .yaml | sort) ; do
113
113
echo " $i "
114
+ if [[ $i == * " snapshotter" * ]] ; then
115
+ continue
116
+ fi
117
+
114
118
modified=" $( cat " $i " | while IFS= read -r line; do
115
119
nocomments=" $( echo " $line " | sed -e ' s/ *#.*$//' ) "
116
120
if echo " $nocomments " | grep -q ' ^[[:space:]]*image:[[:space:]]*' ; then
151
155
# for: the expectation is that we run attacher, provisioner,
152
156
# snapshotter, resizer, socat and hostpath plugin in the default namespace.
153
157
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
155
159
if [ $cnt -gt 30 ]; then
156
160
echo " Running pods:"
157
161
kubectl describe pods
@@ -163,7 +167,3 @@ while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l
163
167
cnt=$(( $cnt + 1 ))
164
168
sleep 10
165
169
done
166
-
167
- # deploy snapshotclass
168
- echo " deploying snapshotclass"
169
- kubectl apply -f ${BASE_DIR} /snapshotter/csi-hostpath-snapshotclass.yaml
You can’t perform that action at this time.
0 commit comments