object: allow new status endpoints to be null

For the upgrade case, allow the status endpoints to have null slices.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
This commit is contained in:
Blaine Gardner committed 2022-11-08 13:33:31 -07:00
1 parent cb10fe35fa
commit ecb0a92577
4 files changed
+7 -1

No files matched your search

@@ -12798,10 +12798,12 @@ spec:
insecure:
items:
type: string
nullable: true
type: array
secure:
items:
type: string
nullable: true
type: array
type: object
info:
+2
View File
@@ -12790,10 +12790,12 @@ spec:
insecure:
items:
type: string
nullable: true
type: array
secure:
items:
type: string
nullable: true
type: array
type: object
info:
+2
View File
@@ -1494,8 +1494,10 @@ type BucketStatus struct {
type ObjectEndpoints struct {
// +optional
// +nullable
Insecure []string `json:"insecure"`
// +optional
// +nullable
Secure []string `json:"secure"`
}
+1 -1
View File
@@ -258,7 +258,7 @@ func (k8sh *K8sHelper) DeleteResource(args ...string) error {
func (k8sh *K8sHelper) WaitForCustomResourceDeletion(namespace, name string, checkerFunc func() error) error {
// wait for the operator to finalize and delete the CRD
for i := 0; i < 60; i++ {
for i := 0; i < 90; i++ {
err := checkerFunc()
if err == nil {
logger.Infof("custom resource %q in namespace %q still exists", name, namespace)