Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/kubedbcom-pgpool-editor-options/ui/create-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ step:
- loader: getAppBindings|postgres
label: Select Database Reference
watcher:
func: onRefChange
func: onRefChange|postgresRef
paths:
- discriminator/postgresRef
- temp/properties/postgresRef
refresh: true
validation:
type: required
schema: discriminator/postgresRef
schema: temp/properties/postgresRef
type: select
type: block-layout
- description: Configure Credentials, Deployment Mode etc.
Expand Down
1 change: 1 addition & 0 deletions charts/kubedbcom-pgpool-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ export const useFunc = (model) => {
hasAnnotations,
hasNoAnnotations,
onMachineChange,
onTriggerChange,

getOpsRequestUrl,
isValueExistInModel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = instance || {}
Expand Down Expand Up @@ -817,7 +817,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = instance || {}
Expand Down
72 changes: 22 additions & 50 deletions charts/opskubedbcom-mssqlserveropsrequest-editor/ui/create-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,58 +191,30 @@ step:
type: custom
name: isVerticalScaleTopologyRequired
schema: temp/topologyValue
- type: block-layout
label: Exporter
showLabels: true
hideBlock: true
elements:
- type: horizontal-layout
showLabels: true
elements:
- init:
type: func
value: setExporter|cpu
type: input
label: CPU
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/requests/properties/cpu
- type: input
init:
type: func
value: setExporter|memory
label: Memory
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/limits/properties/memory
watcher:
func: onExporterResourceChange|memory
paths:
- schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/limits/properties/memory
- type: horizontal-layout
showLabels: true
- type: block-layout
label: Exporter
showLabels: true
hideBlock: true
elements:
- type: input
label: CPU Requests
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/requests/cpu
init:
type: func
value: setValueFromDbDetails|/spec/monitor/prometheus/exporter/resources/requests/cpu|/spec/verticalScaling/exporter/resources/requests/cpu
- type: input
label: CPU Limits
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/limits/cpu
init:
type: func
value: setValueFromDbDetails|/spec/monitor/prometheus/exporter/resources/limits/cpu|/spec/verticalScaling/exporter/resources/limits/cpu
- type: input
label: Memory Requests
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/requests/memory
init:
type: func
value: setValueFromDbDetails|/spec/monitor/prometheus/exporter/resources/requests/memory|/spec/verticalScaling/exporter/resources/requests/memory
- type: input
label: Memory Limits
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/limits/memory
init:
type: func
value: setValueFromDbDetails|/spec/monitor/prometheus/exporter/resources/limits/memory|/spec/verticalScaling/exporter/resources/limits/memory
- type: horizontal-layout
showLabels: true
elements:
- init:
type: func
value: setExporter|cpu
type: input
label: CPU
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/requests/properties/cpu
- type: input
init:
type: func
value: setExporter|memory
label: Memory
schema: schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/limits/properties/memory
watcher:
func: onExporterResourceChange|memory
paths:
- schema/properties/spec/properties/verticalScaling/properties/exporter/properties/resources/properties/limits/properties/memory
- type: horizontal-layout
showLabels: true
label: Coordinator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = {}
Expand Down Expand Up @@ -1144,7 +1144,6 @@ export const useFunc = (model) => {

// direct model update required for reusable element.
// computed property is not applicable for reusable element
console.log('Setting value from dbDetails:', commitPath, retValue)
commit('wizard/model$update', {
path: commitPath,
value: retValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = {}
Expand Down Expand Up @@ -811,7 +811,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ step:
label: Database Ref
if:
type: function
name: showAnd InitDatabaseRef
name: showAndInitDatabaseRef
loader:
name: getDbs
watchPaths:
Expand Down
4 changes: 2 additions & 2 deletions charts/opskubedbcom-pgpoolopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = {}
Expand Down Expand Up @@ -820,7 +820,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let parsedInstance = {}
try {
if (instance) parsedInstance = JSON.parse(instance)
if (instance) parsedInstance = instance
} catch (e) {
console.log(e)
parsedInstance = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ export const useFunc = (model) => {
const instance = annotations['kubernetes.io/instance-type']
let machine = 'custom'
try {
if (instance) machine = JSON.parse(instance) || 'custom'
if (instance) machine = instance || 'custom'
} catch (e) {
console.log(e)
machine = 'custom'
Expand Down
Loading