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
deploy: fix CSIStorageCapacity check on alpha clusters
"kubectl api-resources" does not list v1alpha1.storage.k8s.io even
when it is enabled, presumably because it gets superseeded by
v1beta1.storage.k8s.io. That means we need to go back to trying to use
the resource and grepping the output. To get around "-o pipefail", the
return code is explicitly ignored inside the pipe.
Copy file name to clipboardExpand all lines: deploy/kubernetes-distributed/deploy.sh
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -144,13 +144,19 @@ case "$CSI_PROVISIONER_TAG" in
144
144
"") csistoragecapacities_api=v1alpha1;; # unchanged, assume version from YAML
145
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