forked from rook/rook
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user