Skip to content

Commit

Permalink
HARVESTER: fix podAffinity can not update match expressions
Browse files Browse the repository at this point in the history
(cherry picked from commit 09fc2f4)
  • Loading branch information
DaiYuzeng authored and WuJun2016 committed Jun 30, 2023
1 parent 0eb377c commit a0e98b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shell/components/form/PodAffinity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ export default {
this.queueUpdate();
},
updateLabelSelector(e, props) {
this.set(props.row.value, 'labelSelector.matchExpressions', e);
this.queueUpdate();
},
isEmpty,
get,
set
Expand Down Expand Up @@ -439,7 +444,7 @@ export default {
:value="get(props.row.value, 'labelSelector.matchExpressions')"
:show-remove="false"
:data-testid="`pod-affinity-expressions-index${props.i}`"
@input="e=>set(props.row.value, 'labelSelector.matchExpressions', e)"
@input="e=>updateLabelSelector(e, props)"
/>
<div class="row mt-20">
<div class="col span-9">
Expand Down

0 comments on commit a0e98b9

Please sign in to comment.