You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy/kubernetes-distributed/deploy.sh
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -136,11 +136,21 @@ for component in CSI_PROVISIONER; do
136
136
run kubectl apply -f "${current}"
137
137
done
138
138
139
-
if kubectl get csistoragecapacities 2>&1| grep "the server doesn't have a resource type";then
140
-
have_csistoragecapacity=false
141
-
else
139
+
# The cluster must support exactly the version that the external-provisioner supports.
140
+
# The problem then becomes that the version of the external-provisioner might get
141
+
# changed via CSI_PROVISIONER_TAG, so we cannot just check for the version currently
142
+
# listed in the YAML file.
143
+
case"$CSI_PROVISIONER_TAG"in
144
+
"") csistoragecapacities_api=v1alpha1;; # unchanged, assume version from YAML
145
+
*) csistoragecapacities_api=v1beta1;; # set, assume that it is more recent *and* a version that uses v1beta1 (https://github.com/kubernetes-csi/external-provisioner/pull/584)
0 commit comments