Use a standard annotation when getting the default container

Signed-off-by: Josiah Purtlebaugh <josiah.purtlebaugh@gmail.com>
pull/12113/head
Josiah Purtlebaugh 8 months ago
parent 6f94201e0c
commit 312e80e4c2

@ -133,7 +133,7 @@ func (r *ReleaseTesting) GetPodLogs(out io.Writer, rel *release.Release) error {
return errors.Wrapf(err, "unable to get pod info for %s", h.Name)
}
if container, ok := pod.Annotations["helm.sh/hook-logs-container"]; ok {
if container, ok := pod.Annotations["kubectl.kubernetes.io/default-container"]; ok {
podLogOptions.Container = container
}

Loading…
Cancel
Save