k3s/pkg/printers
Kubernetes Submit Queue a8968810fd Merge pull request #47380 from kevin-wangzefeng/pod-tolerations-with-no-value
Automatic merge from submit-queue

hide operator when describe pod with empty value tolerations

**What this PR does / why we need it**:
The tolerations printing in `kubectl descirbe pod` is not correct when toleration.value is empty, this PR is to fix it.

Before: 
```
Tolerations:	node.alpha.kubernetes.io/notReady=:Exists:NoExecute for 300s
		node.alpha.kubernetes.io/unreachable=:Exists:NoExecute for 300s
```
After:
```
Tolerations:	node.alpha.kubernetes.io/notReady:NoExecute for 300s
		node.alpha.kubernetes.io/unreachable:NoExecute for 300s
```

Also updated tests to cover all possible cases of describing pod with tolerations. See changes in of `TestDescribePodTolerations()` in `describe_test.go`

**Which issue this PR fixes**:

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-06-22 08:02:29 -07:00
..
internalversion Merge pull request #47380 from kevin-wangzefeng/pod-tolerations-with-no-value 2017-06-22 08:02:29 -07:00
storage Refactor printers to support rendering as a Table 2017-05-29 18:30:10 -04:00
.import-restrictions Restrict imports for printers 2017-02-23 00:28:31 -05:00
BUILD Refactor printers to support rendering as a Table 2017-05-29 18:30:10 -04:00
OWNERS Add pkg/printers OWNERS 2017-03-07 22:28:27 -05:00
common.go Fixed a tiny issue for ShortHumanDuration printer. 2017-04-18 16:11:41 +08:00
customcolumn.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
customcolumn_test.go
humanreadable.go Wrap HumanReadablePrinter in tab output unless explicitly asked not to 2017-06-05 22:06:38 -04:00
humanreadable_test.go Smarter get printer for generic resources 2017-04-17 15:42:47 -03:00
interface.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
json.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
jsonpath.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
name.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
printers.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
tabwriter.go
template.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
versioned.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30