You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,17 @@ import (
11
11
)
12
12
13
13
funcmain() {
14
-
varnamespace, labels, groupstring
14
+
varnamespace, labels, group, containerstring
15
+
varallContainersbool
15
16
varhostPortOffsetint
16
17
varhelpbool
17
18
varversionbool
18
19
flag.StringVar(&namespace, "n", "", "namespace to filter resources, defaults to the current namespace ")
19
20
flag.StringVar(&labels, "l", "", "comma separated list of labels to filter resources, e.g. app=nginx, defaults to all resources")
20
21
flag.StringVar(&group, "g", "", "the group to watch, defaults to core resources")
21
-
flag.IntVar(&hostPortOffset, "p", 0, "the offset to add to the host port, e.g. if the container listens on 8080 and the host port is 30000, the offset is 38080, defaults to 0")
22
+
flag.StringVar(&container, "c", "", "the container to show logs for, defaults to the annotation")
23
+
flag.BoolVar(&allContainers, "a", false, "show logs for all containers")
24
+
flag.IntVar(&hostPortOffset, "p", 0, "the offset to add to the host port, e.g. if the container listens on 8080 and the host port is 30000, the offset is 38080")
0 commit comments