@@ -134,6 +134,13 @@ class NodeSelectorStep : KeyValueStep {
134134 $this.config.notes [($this.GetType ().Name)] = " kubectl label nodes $ ( $this.nodeNameExample ) $ ( $keyValue.Item1 ) =$ ( $keyValue.Item2 ) "
135135 }
136136
137+ [void ]Reset() {
138+ $name = $this.GetType ().Name
139+ if ($this.config.notes.containskey ($name )) {
140+ $this.config.notes.remove ($name )
141+ }
142+ }
143+
137144 [bool ]CanRun() {
138145 return $this.config.useNodeSelectors
139146 }
@@ -161,6 +168,7 @@ Note: You can use the same node selector key and value for multiple workloads.
161168 }
162169
163170 [void ]Reset(){
171+ ([NodeSelectorStep ]$this ).Reset()
164172 $this.config.codeDxNodeSelector = $null
165173 }
166174}
@@ -191,6 +199,7 @@ Note: You can use the same node selector key and value for multiple workloads.
191199 }
192200
193201 [void ]Reset(){
202+ ([NodeSelectorStep ]$this ).Reset()
194203 $this.config.masterDatabaseNodeSelector = $null
195204 }
196205}
@@ -221,6 +230,7 @@ Note: You can use the same node selector key and value for multiple workloads.
221230 }
222231
223232 [void ]Reset(){
233+ ([NodeSelectorStep ]$this ).Reset()
224234 $this.config.subordinateDatabaseNodeSelector = $null
225235 }
226236}
@@ -251,6 +261,7 @@ Note: You can use the same node selector key and value for multiple workloads.
251261 }
252262
253263 [void ]Reset(){
264+ ([NodeSelectorStep ]$this ).Reset()
254265 $this.config.toolServiceNodeSelector = $null
255266 }
256267}
@@ -281,6 +292,7 @@ Note: You can use the same node selector key and value for multiple workloads.
281292 }
282293
283294 [void ]Reset(){
295+ ([NodeSelectorStep ]$this ).Reset()
284296 $this.config.minioNodeSelector = $null
285297 }
286298}
@@ -311,6 +323,7 @@ Note: You can use the same node selector key and value for multiple workloads.
311323 }
312324
313325 [void ]Reset(){
326+ ([NodeSelectorStep ]$this ).Reset()
314327 $this.config.workflowControllerNodeSelector = $null
315328 }
316329}
@@ -384,6 +397,13 @@ class PodTolerationStep : KeyValueStep {
384397 [bool ]CanRun() {
385398 return $this.config.useTolerations
386399 }
400+
401+ [void ]Reset() {
402+ $name = $this.GetType ().Name
403+ if ($this.config.notes.containskey ($name )) {
404+ $this.config.notes.remove ($name )
405+ }
406+ }
387407}
388408
389409class CodeDxTolerations : PodTolerationStep {
@@ -410,6 +430,7 @@ Note: You can use the same pod toleration key and value for multiple workloads.
410430 }
411431
412432 [void ]Reset(){
433+ ([PodTolerationStep ]$this ).Reset()
413434 $this.config.codeDxNoScheduleExecuteToleration = $null
414435 }
415436}
@@ -442,6 +463,7 @@ Note: You can use the same pod toleration key and value for multiple workloads.
442463 }
443464
444465 [void ]Reset(){
466+ ([PodTolerationStep ]$this ).Reset()
445467 $this.config.masterDatabaseNoScheduleExecuteToleration = $null
446468 }
447469}
@@ -474,6 +496,7 @@ Note: You can use the same pod toleration key and value for multiple workloads.
474496 }
475497
476498 [void ]Reset(){
499+ ([PodTolerationStep ]$this ).Reset()
477500 $this.config.subordinateDatabaseNoScheduleExecuteToleration = $null
478501 }
479502}
@@ -506,6 +529,7 @@ Note: You can use the same pod toleration key and value for multiple workloads.
506529 }
507530
508531 [void ]Reset(){
532+ ([PodTolerationStep ]$this ).Reset()
509533 $this.config.toolServiceNoScheduleExecuteToleration = $null
510534 }
511535}
@@ -538,6 +562,7 @@ Note: You can use the same pod toleration key and value for multiple workloads.
538562 }
539563
540564 [void ]Reset(){
565+ ([PodTolerationStep ]$this ).Reset()
541566 $this.config.minioNoScheduleExecuteToleration = $null
542567 }
543568}
@@ -570,6 +595,7 @@ Note: You can use the same pod toleration key and value for multiple workloads.
570595 }
571596
572597 [void ]Reset(){
598+ ([PodTolerationStep ]$this ).Reset()
573599 $this.config.workflowControllerNoScheduleExecuteToleration = $null
574600 }
575601}
0 commit comments