Skip to content

Commit 17298e1

Browse files
committed
Dedup pod name const
Remove the duplicate "POD" const for the pod name. Signed-off-by: Sascha Grunert <[email protected]>
1 parent 5c35c71 commit 17298e1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cmd/crictl/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ func OutputContainers(runtimeClient internalapi.RuntimeService, imageClient inte
12091209

12101210
display := newDefaultTableDisplay()
12111211
if !opts.verbose && !opts.quiet {
1212-
display.AddRow([]string{columnContainer, columnImage, columnCreated, columnState, columnName, columnAttempt, columnPodID, columnPodname})
1212+
display.AddRow([]string{columnContainer, columnImage, columnCreated, columnState, columnName, columnAttempt, columnPodID, columnPodName})
12131213
}
12141214
for _, c := range r {
12151215
if match, err := matchesImage(imageClient, opts.image, c.GetImage().GetImage()); err != nil {

cmd/crictl/display.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const (
4343
columnInodes = "INODES"
4444
columnDisk = "DISK"
4545
columnCPU = "CPU %"
46-
columnPodname = "POD"
4746
columnKey = "KEY"
4847
columnValue = "VALUE"
4948
)

0 commit comments

Comments
 (0)