From 95ba50d02159fc1cebd547eccbc8d9a1b92d88ff Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Wed, 11 Jun 2025 13:04:07 +0200 Subject: [PATCH] Fixup POD_DEBUG var According to the spec the default value for POD_DEBUG should be false but this value is not passed properly to the pod, so we end up using the default entrypoint script value (true). --- controllers/ansibletest_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/ansibletest_controller.go b/controllers/ansibletest_controller.go index 934c3e1d..15d6dc32 100644 --- a/controllers/ansibletest_controller.go +++ b/controllers/ansibletest_controller.go @@ -281,6 +281,8 @@ func (r *AnsibleTestReconciler) PrepareAnsibleEnv( debug := instance.Spec.Debug if debug { envVars["POD_DEBUG"] = env.SetValue("true") + } else { + envVars["POD_DEBUG"] = env.SetValue("false") } // strings