Skip to content

Commit cec1a93

Browse files
committed
fixes tests
Signed-off-by: yue9944882 <[email protected]>
1 parent 6f66a6c commit cec1a93

File tree

1 file changed

+2
-2
lines changed
  • util/src/main/java/io/kubernetes/client/util/taints

1 file changed

+2
-2
lines changed

util/src/main/java/io/kubernetes/client/util/taints/Taints.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)