Skip to content

Commit

Permalink
Fix 'linkerd version --proxy'
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeb committed Apr 23, 2024
1 parent 42dbdad commit 6269496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/k8s/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ func GetProxyReady(pod corev1.Pod) bool {

// GetProxyVersion returns the container proxy's version, if any
func GetProxyVersion(pod corev1.Pod) string {
for _, container := range pod.Spec.Containers {
containers := append(pod.Spec.InitContainers, pod.Spec.Containers...)
for _, container := range containers {
if container.Name == ProxyContainerName {
if strings.Contains(container.Image, "@") {
// Proxy container image is specified with digest instead of
Expand Down

0 comments on commit 6269496

Please sign in to comment.