Skip to content

Commit

Permalink
Fix image selection for side car injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
maierlars committed Nov 15, 2018
1 parent 95fa598 commit 4df340b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func getMyPodInfo(kubecli kubernetes.Interface, namespace, name string) (string,
return maskAny(err)
}
sa = pod.Spec.ServiceAccountName
image = k8sutil.ConvertImageID2Image(pod.Status.ContainerStatuses[0].ImageID)
image = k8sutil.GetArangoDBImageIDFromPod(pod)
if image == "" {
// Fallback in case we don't know the id.
image = pod.Spec.Containers[0].Image
Expand Down

0 comments on commit 4df340b

Please sign in to comment.