Init containers should not be restarted
This is causing podman to wait about 25 seconds before starting
the primary container.
Fixes:
[NO NEW TESTS NEEDED]
@@ -620,7 +620,7 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY
PodInfraID: podInfraID,
PodName: podName,
PodSecurityContext: podYAML.Spec.SecurityContext,
- RestartPolicy: ctrRestartPolicy,
+ RestartPolicy: define.RestartPolicyNo,
SeccompPaths: seccompPaths,
SecretsManager: secretsManager,
UserNSIsHost: p.Userns.IsHost(),
