ceph: Add validation to cluster spec rgw port range
When creating a CephObjectStore object, operator will use .Gateway.Port or .Gateway.SecurePort to create k8s Service object, if the port is invalid, the Service will not be created. Note .Gateway.Port/.Gateway.SecurePort should in 1~65535, however .Dashboard.Port is 0~65535 because 0 will use default setting for .Dashboard.Port and there is no such mechanism for .Gateway.Port/.Gateway.SecurePort Closes: https://github.com/rook/rook/issues/4574 Signed-off-by: Yu Chih <secret104278@gmail.com>
This commit is contained in:
1 parent
352c433edd
commit
1f73d59dea
4 files changed
+28
-4
No files matched your search
@@ -316,7 +316,13 @@ spec:
|
||||
sslCertificateRef: {}
|
||||
port:
|
||||
type: integer
|
||||
securePort: {}
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
securePort:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
nullable: true
|
||||
instances:
|
||||
type: integer
|
||||
annotations: {}
|
||||
|
||||
@@ -370,7 +370,13 @@ spec:
|
||||
sslCertificateRef: {}
|
||||
port:
|
||||
type: integer
|
||||
securePort: {}
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
securePort:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
nullable: true
|
||||
instances:
|
||||
type: integer
|
||||
annotations: {}
|
||||
|
||||
@@ -288,7 +288,13 @@ spec:
|
||||
sslCertificateRef: {}
|
||||
port:
|
||||
type: integer
|
||||
securePort: {}
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
securePort:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
nullable: true
|
||||
instances:
|
||||
type: integer
|
||||
annotations: {}
|
||||
|
||||
@@ -389,7 +389,13 @@ spec:
|
||||
sslCertificateRef: {}
|
||||
port:
|
||||
type: integer
|
||||
securePort: {}
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
securePort:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
nullable: true
|
||||
instances:
|
||||
type: integer
|
||||
annotations: {}
|
||||
|
||||
Reference in new issue
Block a user