forked from rook/rook
ceph: change required pattern for pull realm endpoint
Ensure that the endpoint for the pull realm spec starts with "http" or "https". Also update object-multisite-pull-realm(-test).yaml with updated comments. Signed-off-by: Ali Maredia <amaredia@redhat.com>
This commit is contained in:
@@ -20,8 +20,12 @@ metadata:
|
||||
namespace: rook-ceph-secondary
|
||||
spec:
|
||||
# This endpoint in this section needs is an endpoint from the master zone in the master zone group of realm-a. See object-multisite.md for more details.
|
||||
# This value must include http(s):// at the beginning
|
||||
# ex:
|
||||
# pull:
|
||||
# endpoint: http://10.103.133.16:80
|
||||
pull:
|
||||
endpoint: http://10.103.133.16:80
|
||||
endpoint: <endpoint>
|
||||
---
|
||||
apiVersion: ceph.rook.io/v1
|
||||
kind: CephObjectZoneGroup
|
||||
|
||||
@@ -21,8 +21,12 @@ metadata:
|
||||
namespace: rook-ceph-secondary
|
||||
spec:
|
||||
# This endpoint in this section needs is an endpoint from the master zone in the master zone group of realm-a. See object-multisite.md for more details.
|
||||
# This value must include http(s):// at the beginning
|
||||
# ex:
|
||||
# pull:
|
||||
# endpoint: http://10.103.133.16:80
|
||||
pull:
|
||||
endpoint: http://10.103.133.16:80
|
||||
endpoint: <endpoint>
|
||||
---
|
||||
apiVersion: ceph.rook.io/v1
|
||||
kind: CephObjectZoneGroup
|
||||
|
||||
@@ -1469,6 +1469,7 @@ type ObjectRealmSpec struct {
|
||||
|
||||
// PullSpec represents the pulling specification of a Ceph Object Storage Gateway Realm
|
||||
type PullSpec struct {
|
||||
// +kubebuilder:validation:Pattern=`^https*://`
|
||||
Endpoint string `json:"endpoint"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user