velero/pkg/cmd/cli
Bridget McErlean d98c65f69e
Use appropriate CRD API during readiness check (#4015)
* Use appropriate CRD API during readiness check

The readiness check for the Velero CRDs was still using the v1beta1 API.
This would cause the readiness check to fail on 1.22 clusters as the
v1beta1 API is no longer available. Previously, this error would be
ignored and the installation would proceed, however with #4002, we are
no longer ignoring errors from this check.

This change modifies the CRD readiness check to check the CRDs using the
same API version that was used when submitting the CRDs to the cluster.
It also introduces a new CRD builder using the V1 API for testing.

This change also fixes a bug that was identified in the polling code
where if the CRDs were not ready on the first polling iteration, they
would be added again to the list of CRDs to check resulting in
duplicates. This would cause the length check to fail on all subsequent
polls and the timeout would always be reached.

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>

* Remove duplicate V1 CRD builder and update comment

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
2021-08-05 15:17:14 -04:00
..
backup Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
backuplocation Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
bug Add up and down votes to the issue templates and contributing guide (#2583) 2020-05-27 14:09:07 -07:00
client Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
completion Support fish shell completion (#3231) 2021-01-25 12:45:53 -05:00
create Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
delete feat: add delete sub-command for backup-location (#3073) 2020-11-30 13:59:42 -05:00
describe Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
get Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
install Use appropriate CRD API during readiness check (#4015) 2021-08-05 15:17:14 -04:00
plugin Select the velero deployment with both label and container name (#3996) 2021-07-29 12:01:48 -04:00
restic Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
restore Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
schedule Capitalize all help messages (#3209) 2021-01-05 16:36:15 -08:00
serverstatus Migrate ServerStatusRequest controller and resource to kubebuilder (#2838) 2020-09-01 14:15:23 -07:00
snapshotlocation Partially revert adding credentials to VSL (#3561) 2021-03-11 10:10:27 -08:00
uninstall Updated uninstall to remove both v1beta1 and v1 CRDs if present (#3997) 2021-07-29 22:01:13 +08:00
version Capitalize all help messages (#3209) 2021-01-05 16:36:15 -08:00
delete_options.go Improve and clarify cmd help documentation, flags, and examples (#2736) 2020-08-12 18:13:44 -04:00