Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy: fix CSIStorageCapacity version check
Checking via "kubectl get" and parsing its output was broken in combination with "-o pipefail" because then the overall result of the pipe was false even when the expected error occurred. Checking the output of "kubectl api-resources" and failing the install when that command fails (i.e. not using it inside an if) is better. The check also failed on clusters that had the v1beta1 API but not the v1alpha1. We need to be very careful about which version we need for the external-provisioner that is going to be installed. Unfortunately some heuristics are needed to determine that.
- Loading branch information