From f3e247460a9719d3dbd11ab9176be7a5766f0d4d Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Fri, 14 Mar 2025 21:33:16 +0800 Subject: [PATCH] Fix envInjector to correctly handle non-Deployment inputs --- base/env.k | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/env.k b/base/env.k index 235df40..19e8e51 100644 --- a/base/env.k +++ b/base/env.k @@ -21,7 +21,7 @@ envInjector = lambda envs: Envs, input: appsv1.Deployment | any { """Inject envs to Deployment""" _result: any = {} if input.kind != "Deployment": - input + input = _result else: deploy: appsv1.Deployment = input as appsv1.Deployment secretEnv: [corev1.EnvVar] = [{