From af081efcecdc575fe0a75f1686fffd03c6c74084 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sat, 19 Oct 2024 21:32:24 -0500 Subject: [PATCH] fix: Copy database security context Ref #194 --- internal/util/cmd_setup.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/util/cmd_setup.go b/internal/util/cmd_setup.go index eb8ff1d..2608687 100644 --- a/internal/util/cmd_setup.go +++ b/internal/util/cmd_setup.go @@ -360,8 +360,10 @@ func createJob(ctx context.Context, conf *config.Global, actionName string) erro Image: image, ImagePullPolicy: corev1.PullIfNotPresent, Command: []string{"sleep", "infinity"}, + SecurityContext: conf.DBPod.Spec.Containers[0].SecurityContext, }, }, + SecurityContext: conf.DBPod.Spec.SecurityContext, }, }, },