Merge pull request #4694 from egafford/secure-port-for-ceph-object-manifests

ceph: add securePort values for objectstore integration tests
This commit is contained in:
Travis Nielsen authored and GitHub committed 2020-01-27 14:49:47 -07:00
commit d40cb217ae
5 files changed
+8 -20

No files matched your search

@@ -306,11 +306,7 @@ spec:
type: integer
minimum: 1
maximum: 65535
securePort:
type: integer
minimum: 1
maximum: 65535
nullable: true
securePort: {}
instances:
type: integer
annotations: {}
+1 -5
View File
@@ -360,11 +360,7 @@ spec:
type: integer
minimum: 1
maximum: 65535
securePort:
type: integer
minimum: 1
maximum: 65535
nullable: true
securePort: {}
instances:
type: integer
annotations: {}
@@ -290,11 +290,7 @@ spec:
type: integer
minimum: 1
maximum: 65535
securePort:
type: integer
minimum: 1
maximum: 65535
nullable: true
securePort: {}
instances:
type: integer
annotations: {}
+4
View File
@@ -349,6 +349,10 @@ func validateStore(context *clusterd.Context, s cephv1.CephObjectStore) error {
if s.Namespace == "" {
return errors.New("missing namespace")
}
securePort := s.Spec.Gateway.SecurePort
if securePort < 0 || securePort > 65535 {
return errors.Errorf("securePort value of %d must be between 0 and 65535", securePort)
}
if err := pool.ValidatePoolSpec(context, s.Namespace, &s.Spec.MetadataPool); err != nil {
return errors.Wrapf(err, "invalid metadata pool spec")
}
+1 -5
View File
@@ -379,11 +379,7 @@ spec:
type: integer
minimum: 1
maximum: 65535
securePort:
type: integer
minimum: 1
maximum: 65535
nullable: true
securePort: {}
instances:
type: integer
annotations: {}