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() {
3939
4040 public static V1Taint findTaint (V1Node node , String key , Effect effect ) {
4141 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 () )) {
4343 return taint ;
4444 }
4545 }
@@ -129,7 +129,7 @@ public TaintsBuilder removeTaint(String key, Effect effect) {
129129 Iterator <V1Taint > taints = node .getSpec ().getTaints ().iterator ();
130130 while (taints .hasNext ()) {
131131 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 () )) {
133133 taints .remove ();
134134 }
135135 }
You can’t perform that action at this time.
0 commit comments