Skip to content

Commit 80a2eb0

Browse files
Piyush Nimbalkarpiyush-nimbalkar
authored andcommitted
Correct validation for integer fields and add more
Signed-off-by: Piyush Nimbalkar <piyush@portworx.com>
1 parent 62a957b commit 80a2eb0

File tree

2 files changed

+68
-28
lines changed

2 files changed

+68
-28
lines changed

deploy/crds/core_v1alpha1_storagecluster_crd.yaml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,55 @@ spec:
3333
type: string
3434
imagePullPolicy:
3535
type: string
36-
imagePullSecret: {}
37-
secretsProvider: {}
38-
startPort: {}
36+
imagePullSecret:
37+
type: string
38+
secretsProvider:
39+
type: string
40+
startPort:
41+
type: integer
42+
format: int32
3943
updateStrategy: {}
40-
revisionHistoryLimit: {}
44+
revisionHistoryLimit:
45+
type: integer
46+
format: int32
4147
placement: {}
4248
kvdb:
4349
properties:
4450
internal:
4551
type: boolean
46-
endpoints: {}
52+
endpoints:
53+
type: array
54+
items:
55+
type: string
4756
authSecret:
4857
type: string
4958
storage:
5059
properties:
51-
useAll: {}
52-
useAllWithPartitions: {}
53-
forceUseDisks: {}
60+
useAll:
61+
type: boolean
62+
useAllWithPartitions:
63+
type: boolean
64+
forceUseDisks:
65+
type: boolean
5466
devices: {}
55-
journalDevice: {}
56-
systemMetadataDevice: {}
57-
dataStorageType: {}
58-
raidLevel: {}
67+
journalDevice:
68+
type: string
69+
systemMetadataDevice:
70+
type: string
71+
dataStorageType:
72+
type: string
73+
raidLevel:
74+
type: string
5975
cloudStorage:
6076
properties:
6177
maxStorageNodes:
62-
type: int32
78+
type: integer
79+
format: int32
80+
minimum: 0
6381
maxStorageNodesPerZone:
64-
type: int32
82+
type: integer
83+
format: int32
84+
minimum: 0
6585
deviceSpecs: {}
6686
journalDeviceSpec:
6787
type: string

deploy/olm-catalog/portworx/1.0.3/core_v1alpha1_storagecluster_crd.yaml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,55 @@ spec:
3333
type: string
3434
imagePullPolicy:
3535
type: string
36-
imagePullSecret: {}
37-
secretsProvider: {}
38-
startPort: {}
36+
imagePullSecret:
37+
type: string
38+
secretsProvider:
39+
type: string
40+
startPort:
41+
type: integer
42+
format: int32
3943
updateStrategy: {}
40-
revisionHistoryLimit: {}
44+
revisionHistoryLimit:
45+
type: integer
46+
format: int32
4147
placement: {}
4248
kvdb:
4349
properties:
4450
internal:
4551
type: boolean
46-
endpoints: {}
52+
endpoints:
53+
type: array
54+
items:
55+
type: string
4756
authSecret:
4857
type: string
4958
storage:
5059
properties:
51-
useAll: {}
52-
useAllWithPartitions: {}
53-
forceUseDisks: {}
60+
useAll:
61+
type: boolean
62+
useAllWithPartitions:
63+
type: boolean
64+
forceUseDisks:
65+
type: boolean
5466
devices: {}
55-
journalDevice: {}
56-
systemMetadataDevice: {}
57-
dataStorageType: {}
58-
raidLevel: {}
67+
journalDevice:
68+
type: string
69+
systemMetadataDevice:
70+
type: string
71+
dataStorageType:
72+
type: string
73+
raidLevel:
74+
type: string
5975
cloudStorage:
6076
properties:
6177
maxStorageNodes:
62-
type: int32
78+
type: integer
79+
format: int32
80+
minimum: 0
6381
maxStorageNodesPerZone:
64-
type: int32
82+
type: integer
83+
format: int32
84+
minimum: 0
6585
deviceSpecs: {}
6686
journalDeviceSpec:
6787
type: string

0 commit comments

Comments
 (0)