Skip to content

Commit 03fdadc

Browse files
authored
Update the table headings in kubectl-pi plugin output (#3)
1 parent 523ec01 commit 03fdadc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ Warning PodInteraction 21s kube-exec-controller Pod will be evicted at time
5959
You can also utilize the `kubectl pi` plugin to get more detailed info or request an extension to the test Pod's eviction time:
6060
```
6161
$ kubectl pi get
62-
POD_NAME INTERACTOR POD_TTL EXTENSION EXTENSION_REQUESTER EVICTION_TIME
62+
POD-NAME INTERACTOR POD-TTL EXTENSION EXTENSION-REQUESTER EVICTION-TIME
6363
test kubernetes-admin 2m0s 2021-10-16 18:06:44 +0000 UTC
6464
6565
$ kubectl pi extend --duration=1m
6666
Successfully extended the termination time of pod/test with a duration=1m
6767
6868
$ kubectl pi get
69-
POD_NAME INTERACTOR POD_TTL EXTENSION EXTENSION_REQUESTER EVICTION_TIME
69+
POD-NAME INTERACTOR POD-TTL EXTENSION EXTENSION-REQUESTER EVICTION-TIME
7070
test kubernetes-admin 2m0s 1m kubernetes-admin 2021-10-16 18:07:44 +0000 UTC
7171
7272
$ kubectl describe pod test

pkg/plugin/pi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (o *CmdOptions) printTable(infoList []PodInteractionInfo) error {
219219
w := new(tabwriter.Writer)
220220
// format in tab-separated columns with a tab stop of 8
221221
w.Init(o.Out, 0, 8, 2, '\t', 0)
222-
fmt.Fprintln(w, "POD_NAME\tINTERACTOR\tPOD_TTL\tEXTENSION\tEXTENSION_REQUESTER\tEVICTION_TIME")
222+
fmt.Fprintln(w, "POD-NAME\tINTERACTOR\tPOD-TTL\tEXTENSION\tEXTENSION-REQUESTER\tEVICTION-TIME")
223223
for _, info := range infoList {
224224
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s",
225225
info.podName,

0 commit comments

Comments
 (0)