Skip to content

Commit 6106d2e

Browse files
authored
add exposure switch info in preset & fix path (#1061)
Signed-off-by: shofiq <shofiq@appscode.com>
1 parent 0502f4b commit 6106d2e

49 files changed

Lines changed: 144 additions & 127 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

charts/chartsxhelmdev-clusterchartpreset-editor-options/ui/create-ui.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,10 +1609,22 @@ step:
16091609
type: block-layout
16101610
- elements:
16111611
- label: Can users modify Exposer via gateway?
1612-
schema: schema/properties/spec/properties/admin/properties/expose/properties/toggle
1612+
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/toggle
16131613
type: switch
16141614
- label: Expose via gateway?
1615-
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
1615+
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
1616+
type: switch
1617+
- label: Disable UI exposure?
1618+
schema: schema/properties/spec/properties/admin/properties/expose/properties/uiExposure/properties/disableUI
1619+
info:
1620+
type: info
1621+
label: UI will not be deployed for the database.
1622+
type: switch
1623+
- label: Disable Cost Efficiency exposure?
1624+
schema: schema/properties/spec/properties/admin/properties/expose/properties/uiExposure/properties/disableCostEfficiency
1625+
info:
1626+
type: info
1627+
label: UI pod for the database will always be running.
16161628
type: switch
16171629
hideBlock: true
16181630
label: Expose

charts/kubedbcom-cassandra-editor-options/ui/create-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ step:
320320
name: isToggleOn|expose
321321
type: function
322322
label: Expose via Gateway?
323-
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
323+
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
324324
type: switch
325325
if:
326326
name: showAdditionalSettings

charts/kubedbcom-cassandra-editor-options/ui/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ export const useFunc = (model) => {
806806
}
807807
if (!features.includes('binding')) {
808808
commit('wizard/model$update', {
809-
path: '/spec/admin/expose/default',
809+
path: '/spec/admin/expose/enable/default',
810810
value: false,
811811
force: true,
812812
})
@@ -894,7 +894,7 @@ export const useFunc = (model) => {
894894
let backupToolInitialValue = ''
895895
function checkIfFeatureOn(type) {
896896
let val = getValue(model, `/spec/admin/${type}/toggle`)
897-
if (type === 'backup' || type === 'archiver') {
897+
if (type === 'backup' || type === 'archiver' || type === 'expose') {
898898
val = getValue(model, `/spec/admin/${type}/enable/toggle`)
899899
}
900900
const backupVal = getValue(model, '/spec/backup/tool')

charts/kubedbcom-clickhouse-editor-options/ui/create-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ step:
398398
name: isToggleOn|expose
399399
type: function
400400
label: Expose via Gateway?
401-
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
401+
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
402402
type: switch
403403
if:
404404
name: showAdditionalSettings

charts/kubedbcom-clickhouse-editor-options/ui/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ export const useFunc = (model) => {
839839
}
840840
if (!features.includes('binding')) {
841841
commit('wizard/model$update', {
842-
path: '/spec/admin/expose/default',
842+
path: '/spec/admin/expose/enable/default',
843843
value: false,
844844
force: true,
845845
})
@@ -920,7 +920,7 @@ export const useFunc = (model) => {
920920
let backupToolInitialValue = ''
921921
function checkIfFeatureOn(type) {
922922
let val = getValue(model, `/spec/admin/${type}/toggle`)
923-
if (type === 'backup' || type === 'archiver') {
923+
if (type === 'backup' || type === 'archiver' || type === 'expose') {
924924
val = getValue(model, `/spec/admin/${type}/enable/toggle`)
925925
}
926926
const backupVal = getValue(model, '/spec/backup/tool')

charts/kubedbcom-db2-editor-options/ui/create-ui.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -239,29 +239,29 @@ step:
239239
label: Advanced Configuration
240240
showLabels: true
241241
type: block-layout
242-
- description: Enable Backup, Monitoring, TLS etc.
243-
elements:
244-
- elements:
245-
- if:
246-
name: isToggleOn|expose
247-
type: function
248-
init:
249-
type: func
250-
value: checkHostnameOrIP
251-
label: Expose via Gateway?
252-
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
253-
type: switch
254-
watcher:
255-
func: checkHostnameOrIP
256-
paths:
257-
- schema/properties/spec/properties/admin/properties/expose/properties/default
258-
type: block-layout
259-
if:
260-
name: showAdditionalSettings
261-
type: function
262-
label: Additional Options
263-
showLabels: true
264-
type: block-layout
242+
# - description: Enable Backup, Monitoring, TLS etc.
243+
# elements:
244+
# - elements:
245+
# - if:
246+
# name: isToggleOn|expose
247+
# type: function
248+
# init:
249+
# type: func
250+
# value: checkHostnameOrIP
251+
# label: Expose via Gateway?
252+
# schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
253+
# type: switch
254+
# watcher:
255+
# func: checkHostnameOrIP
256+
# paths:
257+
# - schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
258+
# type: block-layout
259+
# if:
260+
# name: showAdditionalSettings
261+
# type: function
262+
# label: Additional Options
263+
# showLabels: true
264+
# type: block-layout
265265
id: options
266266
loader: initBundle
267267
type: single-step-form

charts/kubedbcom-db2-editor-options/ui/functions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ export const useFunc = (model) => {
793793
}
794794
if (!features.includes('binding')) {
795795
commit('wizard/model$update', {
796-
path: '/spec/admin/expose/default',
796+
path: '/spec/admin/expose/enable/default',
797797
value: false,
798798
force: true,
799799
})
@@ -875,7 +875,7 @@ export const useFunc = (model) => {
875875
let backupOn = false
876876
function checkIfFeatureOn(type) {
877877
let val = getValue(model, `/spec/admin/${type}/toggle`)
878-
if (type === 'backup' || type === 'archiver') {
878+
if (type === 'backup' || type === 'archiver' || type === 'expose') {
879879
val = getValue(model, `/spec/admin/${type}/enable/toggle`)
880880
}
881881
const backupVal = getValue(model, '/spec/backup/tool')
@@ -1370,7 +1370,7 @@ export const useFunc = (model) => {
13701370

13711371
function checkHostnameOrIP(type) {
13721372
const tls = getValue(model, '/spec/admin/tls/default')
1373-
const expose = getValue(model, '/spec/admin/expose/default')
1373+
const expose = getValue(model, '/spec/admin/expose/enable/default')
13741374
if (tls && expose) {
13751375
if (hostName) {
13761376
commit('wizard/model$update', {

charts/kubedbcom-druid-editor-options/ui/create-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ step:
538538
type: block-layout
539539
- elements:
540540
- label: Expose via Gateway?
541-
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
541+
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
542542
type: switch
543543
if:
544544
name: isToggleOn|expose

charts/kubedbcom-druid-editor-options/ui/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ export const useFunc = (model) => {
837837
}
838838
if (!features.includes('binding')) {
839839
commit('wizard/model$update', {
840-
path: '/spec/admin/expose/default',
840+
path: '/spec/admin/expose/enable/default',
841841
value: false,
842842
force: true,
843843
})
@@ -911,7 +911,7 @@ export const useFunc = (model) => {
911911
let backupToolInitialValue = ''
912912
function checkIfFeatureOn(type) {
913913
let val = getValue(model, `/spec/admin/${type}/toggle`)
914-
if (type === 'backup' || type === 'archiver') {
914+
if (type === 'backup' || type === 'archiver' || type === 'expose') {
915915
val = getValue(model, `/spec/admin/${type}/enable/toggle`)
916916
}
917917
const backupVal = getValue(model, '/spec/backup/tool')

charts/kubedbcom-elasticsearch-editor-options/ui/create-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ step:
501501
name: isToggleOn|expose
502502
type: function
503503
label: Expose via Gateway?
504-
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
504+
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
505505
type: switch
506506
type: block-layout
507507
- elements:

0 commit comments

Comments
 (0)