kubectl/pkg/cmd/taint
Manu Gupta 2e61cacc45 fix: 81134: display conflicted taint without a json representation.
1. string is formatted as unsafe json. Since this is created on the fly;
TaintKey and Effect are formatted as a 'key=effect' instead of '{key=effect}'
eliminating unsafe json representation.

2. Adds a fail test case for the case where a taint with same key and effect is added
and removed together.

Manual Testing

```
▶ ./_output/bin/kubectl taint nodes kind-control-plane key1=:NoSchedule key1=:NoSchedule-
error: can not both modify and remove the following taint(s) in the same command: key1=NoSchedule
```

Kubernetes-commit: 1a3eda9394b7ff473434506f2756cc9df6288cea
2021-07-29 23:26:07 +00:00
..
taint.go fix: 81134: display conflicted taint without a json representation. 2021-07-29 23:26:07 +00:00
taint_test.go fix: 81134: display conflicted taint without a json representation. 2021-07-29 23:26:07 +00:00
utils.go cleanup(kubectl taint): fix Errorf and comment error, and remove unnecessary bool flag 2019-12-17 19:41:18 +08:00
utils_test.go Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00