core: rgw realm pull spec is optional

The endpoint on the rgw realm pull spec is causing a failure
if not specified even when it is not expected to be
required. Now the endpoint has the json property to be
ommitted if not specified.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7f709776b5)
This commit is contained in:
Travis Nielsen authored and mergify-bot committed 2022-04-25 13:49:58 +00:00
1 parent c2083af215
commit 07ea7139eb
3 files changed
+2 -10

No files matched your search

@@ -7338,11 +7338,7 @@ spec:
endpoint:
pattern: ^https*://
type: string
required:
- endpoint
type: object
required:
- pull
type: object
status:
description: Status represents the status of an object
-4
View File
@@ -7331,11 +7331,7 @@ spec:
endpoint:
pattern: ^https*://
type: string
required:
- endpoint
type: object
required:
- pull
type: object
status:
description: Status represents the status of an object
+2 -2
View File
@@ -1568,13 +1568,13 @@ type CephObjectRealmList struct {
// ObjectRealmSpec represent the spec of an ObjectRealm
type ObjectRealmSpec struct {
Pull PullSpec `json:"pull"`
Pull PullSpec `json:"pull,omitempty"`
}
// PullSpec represents the pulling specification of a Ceph Object Storage Gateway Realm
type PullSpec struct {
// +kubebuilder:validation:Pattern=`^https*://`
Endpoint string `json:"endpoint"`
Endpoint string `json:"endpoint,omitempty"`
}
// CephObjectZoneGroup represents a Ceph Object Store Gateway Zone Group