From 10e020c651f8a6e27852d0e348f5efe4fde05172 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 30 Nov 2022 17:37:14 -0500 Subject: [PATCH] Init containers should not be restarted This is causing podman to wait about 25 seconds before starting the primary container. Fixes: https://github.com/containers/podman/issues/16343 [NO NEW TESTS NEEDED] Signed-off-by: Daniel J Walsh --- pkg/domain/infra/abi/play.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index e73bf6614d..b26f553677 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -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(),