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>
This commit is contained in:
Travis Nielsen
2022-04-22 08:08:12 -06:00
parent 202b14730c
commit 7f709776b5
3 changed files with 2 additions and 10 deletions
@@ -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