Skip to content

Commit

Permalink
🐛 allow setting env for node scan deployments (#1129)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Jun 14, 2024
1 parent 88fd3fb commit 7761955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/nodes/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func UpdateDeployment(
MountPath: "/tmp",
},
},
Env: []corev1.EnvVar{
Env: k8s.MergeEnv([]corev1.EnvVar{
{
Name: "DEBUG",
Value: "false",
Expand All @@ -265,7 +265,7 @@ func UpdateDeployment(
Name: "MONDOO_AUTO_UPDATE",
Value: "false",
},
},
}, m.Spec.Nodes.Env),
},
}
dep.Spec.Template.Spec.Volumes = []corev1.Volume{
Expand Down

0 comments on commit 7761955

Please sign in to comment.