Operator setting the pods' RestartPolicy cause gitops tools to fail health checks
The operator starts all its server pod with the RestartPolicy set to Never. This causes ArgoCD to fail to report it as running.
https://github.com/arangodb/kube-arangodb/blob/13f3e2a09b4c6c08f050efffc364d498b1293dcf/pkg/util/k8sutil/pods.go#L433
Can this be changed to Always and let the pod automatically restart itself on failure?
Related ticket with repro steps: https://github.com/argoproj/argo-cd/issues/7259
Hello!
We do not want to allow Pod restarts, full lifecycle is managed by Operator (Operator recreate pod, takes care about shards).
It is also used in Graceful shutdowns, when we send request thru API. This logic will change (to send Delete + handle it in finalizers), but ETA is next year.
Best Regards, Adam.