@@ -16,8 +16,6 @@ BASE_DIR=$(dirname "$0")
16
16
# If set, the following env variables override image registry and/or tag for each of the images.
17
17
# They are named after the image name, with hyphen replaced by underscore and in upper case.
18
18
#
19
- # - CSI_ATTACHER_REGISTRY
20
- # - CSI_ATTACHER_TAG
21
19
# - CSI_NODE_DRIVER_REGISTRAR_REGISTRY
22
20
# - CSI_NODE_DRIVER_REGISTRAR_TAG
23
21
# - CSI_PROVISIONER_REGISTRY
@@ -56,7 +54,6 @@ function rbac_version () {
56
54
57
55
# get version from `image: quay.io/k8scsi/csi-attacher:v1.0.1`, ignoring comments
58
56
version=" $( sed -e ' s/ *#.*$//' " $yaml " | grep " image:.*$image " | sed -e ' s/ *#.*//' -e ' s/.*://' ) "
59
-
60
57
if $update_rbac ; then
61
58
# apply overrides
62
59
varname=$( echo $image | tr - _ | tr a-z A-Z)
@@ -75,8 +72,6 @@ function rbac_version () {
75
72
# In addition, the RBAC rules can be overridden separately.
76
73
CSI_PROVISIONER_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-provisioner/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-provisioner.yaml" csi-provisioner false) /deploy/kubernetes/rbac.yaml"
77
74
: ${CSI_PROVISIONER_RBAC:= https:// raw.githubusercontent.com/ kubernetes-csi/ external-provisioner/ $(rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-provisioner.yaml" csi-provisioner " ${UPDATE_RBAC_RULES} " )/ deploy/ kubernetes/ rbac.yaml}
78
- CSI_ATTACHER_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-attacher/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-attacher.yaml" csi-attacher false) /deploy/kubernetes/rbac.yaml"
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
75
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
76
: ${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
77
@@ -95,7 +90,7 @@ run () {
95
90
96
91
# rbac rules
97
92
echo " applying RBAC rules"
98
- for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER; do
93
+ for component in CSI_PROVISIONER CSI_SNAPSHOTTER; do
99
94
eval current=" \$ {${component} _RBAC}"
100
95
eval original=" \$ {${component} _RBAC_YAML}"
101
96
if [ " $current " != " $original " ]; then
@@ -146,10 +141,10 @@ done
146
141
147
142
# Wait until all pods are running. We have to make some assumptions
148
143
# about the deployment here, otherwise we wouldn't know what to wait
149
- # for: the expectation is that we run attacher, provisioner ,
150
- # snapshotter, socat and hostpath plugin in the default namespace.
144
+ # for: the expectation is that we run provisioner, snapshotter ,
145
+ # socat and hostpath plugin in the default namespace.
151
146
cnt=0
152
- 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
147
+ while [ $( kubectl get pods 2> /dev/null | grep ' ^csi-hostpath.* Running ' | wc -l) -lt 4 ] || ! kubectl describe volumesnapshotclasses.snapshot.storage.k8s.io 2>/dev/null >/dev/null; do
153
148
if [ $cnt -gt 30 ]; then
154
149
echo " Running pods:"
155
150
kubectl describe pods
0 commit comments