File tree 1 file changed +16
-0
lines changed
pkg/KubeArmorOperator/internal/controller
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,22 @@ func (clusterWatcher *ClusterWatcher) WatchRequiredResources() {
534
534
controller := deployments .GetKubeArmorControllerDeployment (common .Namespace )
535
535
relayServer := deployments .GetRelayDeployment (common .Namespace )
536
536
537
+ // update relay env vars
538
+ relayServer .Spec .Template .Spec .Containers [0 ].Env = []corev1.EnvVar {
539
+ {
540
+ Name : "ENABLE_STDOUT_LOGS" ,
541
+ Value : common .KubearmorRelayEnvMap [common .EnableStdOutLogs ],
542
+ },
543
+ {
544
+ Name : "ENABLE_STDOUT_ALERTS" ,
545
+ Value : common .KubearmorRelayEnvMap [common .EnableStdOutAlerts ],
546
+ },
547
+ {
548
+ Name : "ENABLE_STDOUT_MSGS" ,
549
+ Value : common .KubearmorRelayEnvMap [common .EnableStdOutMsgs ],
550
+ },
551
+ }
552
+
537
553
if common .EnableTls {
538
554
relayServer .Spec .Template .Spec .Containers [0 ].VolumeMounts =
539
555
append (relayServer .Spec .Template .Spec .Containers [0 ].VolumeMounts , common .KubeArmorRelayTlsVolumeMount ... )
You can’t perform that action at this time.
0 commit comments