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
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,12 +876,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|documentdb
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,12 +875,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
10 changes: 6 additions & 4 deletions charts/opskubedbcom-druidopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,14 +929,16 @@ export const useFunc = (model) => {
}
}

const specPath = `/spec/verticalScaling/${type}/resources`
const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: specPath,
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// Update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ step:
type: machine-compare
validation:
name: isMachineValid|node
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1009,12 +1009,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-hanadbopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,12 +757,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|hazelcast
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-igniteopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ step:
type: machine-compare
validation:
name: isMachineValid|node
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-kafkaopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|mariadb
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-mariadbopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,12 +867,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|memcached
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,12 +847,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ step:
type: machine-compare
validation:
name: isMachineValid|node
type: custom
type: custom|required
watcher:
func: onMachineChange|node
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-milvusopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,12 +823,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

const annotations = getValue(model, '/metadata/annotations') || {}
const instance = annotations['kubernetes.io/instance-type']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ step:
type: machine-compare
validation:
name: isMachineValid|standalone
type: custom
type: custom|required
watcher:
func: onMachineChange|standalone
paths:
Expand Down Expand Up @@ -305,7 +305,7 @@ step:
type: machine-compare
validation:
name: isMachineValid|replicaSet
type: custom
type: custom|required
watcher:
func: onMachineChange|replicaSet
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-mongodbopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,12 +902,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|mssqlserver
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,12 +842,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ step:
type: machine-compare
validation:
name: isMachineValid
type: custom
type: custom|required
watcher:
func: onMachineChange|mysql
paths:
Expand Down
6 changes: 4 additions & 2 deletions charts/opskubedbcom-mysqlopsrequest-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,12 +873,14 @@ export const useFunc = (model) => {

const path = `/spec/verticalScaling/${type}/resources`

if (obj && Object.keys(obj).length)
if (obj && Object.keys(obj).length) {
commit('wizard/model$update', {
path: path,
value: obj,
force: true,
})
} else {
commit('wizard/model$delete', `/spec/verticalScaling/${type}`)
}

// update metadata.annotations
const annotations = getValue(model, '/metadata/annotations') || {}
Expand Down
Loading
Loading