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:
Ali Maredia
2021-08-11 13:25:44 -04:00
parent b6404ae2ab
commit 7b8d3fd27b
3 changed files with 11 additions and 2 deletions
@@ -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
+1
View File
@@ -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"`
}