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:
parent
95fa59839d
commit
4df340bc54
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue