File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
util/src/main/java/io/kubernetes/client/util/taints Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public String toString() {
39
39
40
40
public static V1Taint findTaint (V1Node node , String key , Effect effect ) {
41
41
for (V1Taint taint : node .getSpec ().getTaints ()) {
42
- if (taint .getKey ().equals (key ) && taint .getEffect ().equals (effect )) {
42
+ if (taint .getKey ().equals (key ) && taint .getEffect ().equals (effect . toString () )) {
43
43
return taint ;
44
44
}
45
45
}
@@ -129,7 +129,7 @@ public TaintsBuilder removeTaint(String key, Effect effect) {
129
129
Iterator <V1Taint > taints = node .getSpec ().getTaints ().iterator ();
130
130
while (taints .hasNext ()) {
131
131
V1Taint taint = taints .next ();
132
- if (taint .getKey ().equals (key ) && taint .getEffect ().equals (effect )) {
132
+ if (taint .getKey ().equals (key ) && taint .getEffect ().equals (effect . toString () )) {
133
133
taints .remove ();
134
134
}
135
135
}
You can’t perform that action at this time.
0 commit comments