File tree Expand file tree Collapse file tree
charts/opskubedbcom-igniteopsrequest-editor/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ step:
155155 name : isMachineValid
156156 type : custom
157157 watcher :
158- func : onMachineChange|ignite |/spec/podTemplate/spec/resources
158+ func : onMachineChange|node |/spec/podTemplate/spec/resources
159159 paths :
160160 - temp/properties/machine
161161 - elements :
@@ -172,7 +172,7 @@ step:
172172 value : LabelSelector
173173 - text : Taint
174174 value : Taint
175- schema : schema/properties/spec/properties/verticalScaling/properties/ignite /properties/nodeSelectionPolicy
175+ schema : schema/properties/spec/properties/verticalScaling/properties/node /properties/nodeSelectionPolicy
176176 type : select
177177 hideBorder : true
178178 showLabels : false
Original file line number Diff line number Diff line change @@ -812,7 +812,9 @@ export const useFunc = (model) => {
812812
813813 function setMachine ( ) {
814814 const dbDetails = getValue ( discriminator , '/dbDetails' )
815- const limits = dbDetails ?. spec ?. podTemplate ?. spec ?. resources ?. requests || { }
815+ const containers = dbDetails ?. spec ?. podTemplate ?. spec ?. containers || [ ]
816+ const igniteContainer = containers . find ( ( c ) => c . name === 'ignite' )
817+ const limits = igniteContainer ?. resources ?. requests || { }
816818 const annotations = dbDetails ?. metadata ?. annotations || { }
817819 const instance = annotations [ 'kubernetes.io/instance-type' ]
818820
@@ -1820,7 +1822,9 @@ export const useFunc = (model) => {
18201822
18211823 function isMachineValid ( ) {
18221824 const dbDetails = getValue ( discriminator , '/dbDetails' )
1823- let limits = setMachine ( )
1825+ const containers = dbDetails ?. spec ?. podTemplate ?. spec ?. containers || [ ]
1826+ const igniteContainer = containers . find ( ( c ) => c . name === 'ignite' )
1827+ const limits = igniteContainer ?. resources ?. requests || { }
18241828 delete limits . machine
18251829
18261830 const selectedMachine = getValue ( discriminator , '/machine' )
You can’t perform that action at this time.
0 commit comments