Fix envInjector to correctly assign input when not a Deployment
This commit is contained in:
parent
f3e247460a
commit
c62e160288
@ -21,7 +21,7 @@ envInjector = lambda envs: Envs, input: appsv1.Deployment | any {
|
|||||||
"""Inject envs to Deployment"""
|
"""Inject envs to Deployment"""
|
||||||
_result: any = {}
|
_result: any = {}
|
||||||
if input.kind != "Deployment":
|
if input.kind != "Deployment":
|
||||||
input = _result
|
_result = input
|
||||||
else:
|
else:
|
||||||
deploy: appsv1.Deployment = input as appsv1.Deployment
|
deploy: appsv1.Deployment = input as appsv1.Deployment
|
||||||
secretEnv: [corev1.EnvVar] = [{
|
secretEnv: [corev1.EnvVar] = [{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user