1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Fix image selection for side car injection.

This commit is contained in:
lamai93 2018-11-15 10:22:10 +01:00
parent 95fa59839d
commit 4df340bc54

View file

@ -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