55# authoritative and all updates for this process should be
66# done here and referenced elsewhere.
77
8- # The script assumes that kubectl is available on the OS path
8+ # The script assumes that kubectl is available on the OS path
99# where it is executed.
1010
1111set -e
@@ -79,6 +79,8 @@ CSI_ATTACHER_RBAC_YAML="https://raw.githubusercontent.com/kubernetes-csi/externa
7979: ${CSI_ATTACHER_RBAC:= https:// raw.githubusercontent.com/ kubernetes-csi/ external-attacher/ $(rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-attacher.yaml" csi-attacher " ${UPDATE_RBAC_RULES} " )/ deploy/ kubernetes/ rbac.yaml}
8080CSI_SNAPSHOTTER_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-snapshotter.yaml" csi-snapshotter false) /deploy/kubernetes/rbac.yaml"
8181: ${CSI_SNAPSHOTTER_RBAC:= https:// raw.githubusercontent.com/ kubernetes-csi/ external-snapshotter/ $(rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-snapshotter.yaml" csi-snapshotter " ${UPDATE_RBAC_RULES} " )/ deploy/ kubernetes/ rbac.yaml}
82+ CSI_RESIZER_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-resizer/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-resizer.yaml" csi-resizer false) /deploy/kubernetes/rbac.yaml"
83+ : ${CSI_RESIZER_RBAC:= https:// raw.githubusercontent.com/ kubernetes-csi/ external-resizer/ $(rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-resizer.yaml" csi-resizer " ${UPDATE_RBAC_RULES} " )/ deploy/ kubernetes/ rbac.yaml}
8284
8385INSTALL_CRD=${INSTALL_CRD:- " false" }
8486
@@ -95,7 +97,7 @@ run () {
9597
9698# rbac rules
9799echo " applying RBAC rules"
98- for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER; do
100+ for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER ; do
99101 eval current=" \$ {${component} _RBAC}"
100102 eval original=" \$ {${component} _RBAC_YAML}"
101103 if [ " $current " != " $original " ]; then
147149# Wait until all pods are running. We have to make some assumptions
148150# about the deployment here, otherwise we wouldn't know what to wait
149151# for: the expectation is that we run attacher, provisioner,
150- # snapshotter, socat and hostpath plugin in the default namespace.
152+ # snapshotter, resizer, socat and hostpath plugin in the default namespace.
151153cnt=0
152154while [ $( 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
153155 if [ $cnt -gt 30 ]; then
0 commit comments