-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
Description
Describe the bug
the enum value Taints.Effect.NO_EXECUTE's toString() method returns "NoExcute" instead of "NoExecute".
Client Version
16.0.0
Kubernetes Version
1.24.3
Java Version
Java 8
To Reproduce
add a taint to a node with:
import io.kubernetes.client.extended.kubectl.Kubectl;
import io.kubernetes.client.extended.kubectl.exception.KubectlException;
import io.kubernetes.client.openapi.Configuration;
import io.kubernetes.client.util.Config;
import java.io.IOException;
class Main{
public static void main(String[] args) throws KubectlException, IOException {
Configuration.setDefaultApiClient(Config.defaultClient());
String nodeName = "myk8s-4nodes-worker";
// neither "NoExecute" or "NoExcute" will work
Kubectl.taint().name(nodeName).addTaint("key", "value", "NoExecute").execute();
}
}Expected behavior
taint (with Effect "NoExecute") should be added correctly
Metadata
Metadata
Assignees
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.