Skip to content

Commit f8f5ff7

Browse files
SamiulSouravArnobKumarSaha
authored andcommitted
fix mongodb horizons conditions (#1079)
* fix mongodb horizons conditions Signed-off-by: Samiul <samiul@appscode.com> * rm reduntant Signed-off-by: Samiul <samiul@appscode.com> --------- Signed-off-by: Samiul <samiul@appscode.com>
1 parent 4de5efd commit f8f5ff7

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

charts/enginekubevaultcom-secretengine-editor/ui/create-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ step:
6969
name: isDbSelected
7070
type: function
7171
label: Plugin Name
72-
schema: discriminator/properties/plugin-name
72+
schema: temp/properties/plugin-name
7373
type: input
7474
watcher:
7575
func: getPluginName

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ step:
4848
name: isTlsOn
4949
type: function
5050
label: Do you want to access mongodb+srv style DNS?
51-
schema: discriminator/enableHorizons
51+
schema: temp/enableHorizons
5252
type: switch
5353
watcher:
5454
func: onHorizonsChange
5555
paths:
56-
- discriminator/enableHorizons
56+
- temp/enableHorizons
5757
- if:
5858
name: isHorizonsOn
5959
type: function
6060
label: Horizons count should be equal to Replica Number.
61-
type: alert
61+
type: info
6262
- element:
6363
label: Add a new horizon dns for pod
6464
type: input
@@ -715,9 +715,6 @@ step:
715715
- if:
716716
name: isToggleOn|tls
717717
type: function
718-
init:
719-
type: func
720-
value: checkHostnameOrIP
721718
label: Enable TLS?
722719
schema: schema/properties/spec/properties/admin/properties/tls/properties/default
723720
type: switch
@@ -739,9 +736,6 @@ step:
739736
- if:
740737
name: isToggleOn|expose
741738
type: function
742-
init:
743-
type: func
744-
value: checkHostnameOrIP
745739
label: Expose via Gateway?
746740
schema: schema/properties/spec/properties/admin/properties/expose/properties/enable/properties/default
747741
type: switch

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ export const useFunc = (model) => {
15331533
function onHorizonsChange() {
15341534
const val = getValue(discriminator, '/enableHorizons')
15351535
if (!val) {
1536-
commit({
1536+
commit('wizard/model$update', {
15371537
path: '/spec/replicaSet/horizons',
15381538
value: [],
15391539
force: true,
@@ -1594,7 +1594,7 @@ export const useFunc = (model) => {
15941594

15951595
const common = getCommonPostfix(horizons)
15961596
if (!common) return 'Horizons must have a common dot (.) seperated suffix'
1597-
return true
1597+
return
15981598
}
15991599

16001600
return {

0 commit comments

Comments
 (0)