Skip to content

Commit 4cbebbb

Browse files
include the infra namespace as a pod namespace for machine controller webhook (#3549)
Signed-off-by: moadqassem <[email protected]> Co-authored-by: moadqassem <[email protected]>
1 parent d807014 commit 4cbebbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

addons/machinecontroller/webhook.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ spec:
101101
value: "{{ .Config.Proxy.HTTPS }}"
102102
- name: NO_PROXY
103103
value: "{{ .Config.Proxy.NoProxy }}"
104+
{{ with .Config.CloudProvider.Kubevirt -}}
105+
{{ with .InfraNamespace }}
106+
- name: POD_NAMESPACE
107+
value: "{{ . }}"
108+
{{ end }}
109+
{{ end }}
104110
{{ .MachineControllerCredentialsEnvVars | indent 12 }}
105111
{{ if .Config.CABundle }}
106112
{{ caBundleEnvVar | indent 12 }}

0 commit comments

Comments
 (0)