Skip to content

Commit 46e81a0

Browse files
authored
Fix probe name in kubectl ice probe output
Fix startup probe name in PROBE column of `kubectl ice probe` output Fixes: #16
1 parent 7bf0cb8 commit 46e81a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/plugin/probes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
var probesShort = "Shows details of configured startup, readiness and liveness probes of each container"
1313

14-
var probesDescription = ` Prints details of the currently configured startup, liveness and rediness probes for each
14+
var probesDescription = ` Prints details of the currently configured startup, liveness and readiness probes for each
1515
container. Details like the delay timeout and action are printed along with the configured probe
1616
type. If no name is specified the container probe details of all pods in the current namespace
1717
are shown.`
@@ -185,7 +185,7 @@ func (s *probes) buildProbeList(container v1.Container) map[string][]probeAction
185185
probes["readiness"] = s.buildProbeAction("readiness", container.ReadinessProbe)
186186
}
187187
if container.StartupProbe != nil {
188-
probes["startup"] = s.buildProbeAction("liveness", container.StartupProbe)
188+
probes["startup"] = s.buildProbeAction("startup", container.StartupProbe)
189189
}
190190

191191
return probes

0 commit comments

Comments
 (0)