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:
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:
|
||||
|
||||
@@ -12790,10 +12790,12 @@ spec:
|
||||
insecure:
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
secure:
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
info:
|
||||
|
||||
@@ -1494,8 +1494,10 @@ type BucketStatus struct {
|
||||
|
||||
type ObjectEndpoints struct {
|
||||
// +optional
|
||||
// +nullable
|
||||
Insecure []string `json:"insecure"`
|
||||
// +optional
|
||||
// +nullable
|
||||
Secure []string `json:"secure"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user