Skip to content

Commit 996e554

Browse files
Sourav-Kumar-19Sourav-Kumar-19Nihal-Azmain
authored
validation added for backup (#983)
* validation added for backup Signed-off-by: Sourav-Kumar-19 <1902036.souravroy@gmail.com> * validation added for backup Signed-off-by: Sourav-Kumar-19 <1902036.souravroy@gmail.com> --------- Signed-off-by: Sourav-Kumar-19 <1902036.souravroy@gmail.com> Co-authored-by: Sourav-Kumar-19 <1902036.souravroy@gmail.com> Co-authored-by: Nihal Azmain <nihal@appscode.com>
1 parent 63541a5 commit 996e554

5 files changed

Lines changed: 42 additions & 0 deletions

File tree

charts/corekubestashcom-backupconfiguration-editor-options/ui/create-ui.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ step:
44
loader: getNamespaces
55
schema: schema/properties/metadata/properties/release/properties/namespace
66
type: select
7+
validation:
8+
type: required
79
- label: Name
810
schema: schema/properties/metadata/properties/release/properties/name
911
type: input
12+
validation:
13+
type: required
1014
- label: Storage Ref
1115
loader: getData|storageRef
1216
schema: schema/properties/spec/properties/backend/properties/storageRef

charts/corekubestashcom-backupsession-editor-options/ui/create-ui.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ step:
55
loader: fetchNamespaces
66
schema: schema/properties/metadata/properties/release/properties/namespace
77
type: select
8+
validation:
9+
type: required
810
- elements:
911
- label: Labels
1012
schema: schema/properties/spec/properties/labels

charts/corekubestashcom-restoresession-editor-options/ui/create-ui.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ step:
1111
- temp/properties/nameSpaceApi
1212
schema: schema/properties/metadata/properties/release/properties/namespace
1313
type: select
14+
validation:
15+
type: required
1416
- if:
1517
name: isConsole
1618
type: function
1719
label: Name
1820
schema: schema/properties/metadata/properties/release/properties/name
1921
type: input
22+
validation:
23+
type: required
2024
- elements:
2125
- label: ""
2226
subtitle: Configure the backup repository and snapshot to restore your data
@@ -127,6 +131,8 @@ step:
127131
schema: schema/properties/spec/properties/target/properties/name
128132
subtitle: Select the specific resource to restore to
129133
type: select
134+
validation:
135+
type: required
130136
if:
131137
name: isConsole
132138
type: function

charts/storagekubestashcom-backupstorage-editor-options/ui/create-ui.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ step:
55
loader: getNamespaces
66
schema: schema/properties/metadata/properties/release/properties/namespace
77
type: select
8+
validation:
9+
type: required
810
- label: Name
911
schema: schema/properties/metadata/properties/release/properties/name
1012
type: input
13+
validation:
14+
type: required
1115
- elements:
1216
- label: Labels
1317
schema: schema/properties/spec/properties/labels
@@ -58,16 +62,22 @@ step:
5862
- label: Account Key
5963
schema: schema/properties/spec/properties/backend/properties/azure/properties/auth/properties/AZURE_ACCOUNT_KEY
6064
type: input
65+
validation:
66+
type: required
6167
- label: Account Name
6268
schema: schema/properties/spec/properties/backend/properties/azure/properties/auth/properties/AZURE_ACCOUNT_NAME
6369
type: input
70+
validation:
71+
type: required
6472
label: Auth
6573
showLabels: true
6674
type: block-layout
6775
- elements:
6876
- label: Container
6977
schema: schema/properties/spec/properties/backend/properties/azure/properties/spec/properties/container
7078
type: input
79+
validation:
80+
type: required
7181
- label: Max Connections
7282
schema: schema/properties/spec/properties/backend/properties/azure/properties/spec/properties/maxConnections
7383
type: input
@@ -88,16 +98,22 @@ step:
8898
- label: Google Project ID
8999
schema: schema/properties/spec/properties/backend/properties/gcs/properties/auth/properties/GOOGLE_PROJECT_ID
90100
type: input
101+
validation:
102+
type: required
91103
- label: Google Service Account JSON Key
92104
schema: schema/properties/spec/properties/backend/properties/gcs/properties/auth/properties/GOOGLE_SERVICE_ACCOUNT_JSON_KEY
93105
type: input
106+
validation:
107+
type: required
94108
label: Auth
95109
showLabels: true
96110
type: block-layout
97111
- elements:
98112
- label: Bucket
99113
schema: schema/properties/spec/properties/backend/properties/gcs/properties/spec/properties/bucket
100114
type: input
115+
validation:
116+
type: required
101117
- label: Max Connections
102118
schema: schema/properties/spec/properties/backend/properties/gcs/properties/spec/properties/maxConnections
103119
type: input
@@ -118,9 +134,13 @@ step:
118134
- label: AWS Access Key ID
119135
schema: schema/properties/spec/properties/backend/properties/s3/properties/auth/properties/AWS_ACCESS_KEY_ID
120136
type: input
137+
validation:
138+
type: required
121139
- label: AWS Secret Access Key
122140
schema: schema/properties/spec/properties/backend/properties/s3/properties/auth/properties/AWS_SECRET_ACCESS_KEY
123141
type: input
142+
validation:
143+
type: required
124144
- label: CA Cert Data
125145
schema: schema/properties/spec/properties/backend/properties/s3/properties/auth/properties/CA_CERT_DATA
126146
type: textarea
@@ -134,9 +154,13 @@ step:
134154
- label: Bucket
135155
schema: schema/properties/spec/properties/backend/properties/s3/properties/spec/properties/bucket
136156
type: input
157+
validation:
158+
type: required
137159
- label: End Point
138160
schema: schema/properties/spec/properties/backend/properties/s3/properties/spec/properties/endpoint
139161
type: input
162+
validation:
163+
type: required
140164
- label: Prefix
141165
schema: schema/properties/spec/properties/backend/properties/s3/properties/spec/properties/prefix
142166
type: input

charts/storagekubestashcom-repository-editor-options/ui/create-ui.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ step:
55
loader: getNamespacesApi
66
schema: schema/properties/metadata/properties/release/properties/namespace
77
type: select
8+
validation:
9+
type: required
810
- label: Repository Name
911
schema: schema/properties/metadata/properties/release/properties/name
1012
type: input
13+
validation:
14+
type: required
1115
- elements:
1216
- label: Labels
1317
schema: schema/properties/spec/properties/labels
@@ -114,6 +118,8 @@ step:
114118
- schema/properties/spec/properties/appRef/properties/namespace
115119
schema: schema/properties/spec/properties/appRef/properties/name
116120
type: select
121+
validation:
122+
type: required
117123
label: App Ref
118124
showLabels: true
119125
type: block-layout

0 commit comments

Comments
 (0)