5
5
# authoritative and all updates for this process should be
6
6
# done here and referenced elsewhere.
7
7
8
- # The script assumes that kubectl is available on the OS path
8
+ # The script assumes that kubectl is available on the OS path
9
9
# where it is executed.
10
10
11
11
set -e
@@ -79,6 +79,8 @@ CSI_ATTACHER_RBAC_YAML="https://raw.githubusercontent.com/kubernetes-csi/externa
79
79
: ${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}
80
80
CSI_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"
81
81
: ${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}
82
84
83
85
INSTALL_CRD=${INSTALL_CRD:- " false" }
84
86
@@ -95,7 +97,7 @@ run () {
95
97
96
98
# rbac rules
97
99
echo " 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
99
101
eval current=" \$ {${component} _RBAC}"
100
102
eval original=" \$ {${component} _RBAC_YAML}"
101
103
if [ " $current " != " $original " ]; then
147
149
# Wait until all pods are running. We have to make some assumptions
148
150
# about the deployment here, otherwise we wouldn't know what to wait
149
151
# 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.
151
153
cnt=0
152
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
153
155
if [ $cnt -gt 30 ]; then
0 commit comments