velero/pkg/builder
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_builder.go Add Labels field to BackupSpec (#3641) 2021-06-17 11:18:37 -07:00
backup_storage_location_builder.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08:00
config_map_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
container_builder.go Support pulling plugins by digest (#3803) 2021-05-18 13:27:49 +08:00
container_builder_test.go Support pulling plugins by digest (#3803) 2021-05-18 13:27:49 +08:00
customresourcedefinition_v1beta1_builder.go Use appropriate CRD API during readiness check (#4015) 2021-08-05 15:17:14 -04:00
deployment_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
download_request_builder.go Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
json_schema_props_builder.go Fix int/float conversion issues in CRD version remapping plugin (#2322) 2020-03-10 09:24:22 -06:00
namespace_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
node_builder.go add restore item action to update PVC selected-node annotation (#2377) 2020-04-03 08:01:34 -07:00
object_meta.go pass annotations from scheduler to created backup (#3067) 2020-11-19 13:19:42 -08:00
persistent_volume_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
persistent_volume_claim_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
pod_builder.go Restore hooks exec (#2804) 2020-09-08 11:33:15 -07:00
pod_volume_backup_builder.go 🐛 Use namespace and name to match PVB to Pod restore (#3051) 2020-11-10 11:36:49 -05:00
restore_builder.go Preserve nodePort support with --preserve-nodeports flag (#3095) 2020-12-09 09:32:34 -08:00
role_builder.go store backup resource list metadata in object storage (#1709) 2019-08-05 11:15:55 -06:00
schedule_builder.go use pointer types for metav1.Time fields (#1951) 2019-10-14 10:20:28 -06:00
secret_builder.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
secret_key_selector_builder.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
server_status_request_builder.go Migrate ServerStatusRequest controller and resource to kubebuilder (#2838) 2020-09-01 14:15:23 -07:00
service_account_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
storage_class_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
v1_customresourcedefinition_builder.go Fix int/float conversion issues in CRD version remapping plugin (#2322) 2020-03-10 09:24:22 -06:00
volume_builder.go Update tests to use object builders in pkg/builder (#1707) 2019-07-31 07:46:48 -07:00
volume_mount_builder.go Add resource limits to restic init container (#1677) 2019-08-05 13:18:11 -06:00
volume_snapshot_location_builder.go Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00