From a3f5dcb66b83645a248e237ad838a0f002e5bc5d Mon Sep 17 00:00:00 2001 From: Stephen Benjamin Date: Tue, 11 Aug 2020 16:02:20 -0400 Subject: [PATCH] baremetal: configure containers with provisioning_ip When the provisioning network is disabled, provisioning IP is on a machine network, and we automatically detect the interface to use. We need to pass the IP into these containers, as well as the interface (if any is set). --- pkg/operator/baremetal_pod.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/operator/baremetal_pod.go b/pkg/operator/baremetal_pod.go index ad1a42fb6e..524e0f7233 100644 --- a/pkg/operator/baremetal_pod.go +++ b/pkg/operator/baremetal_pod.go @@ -337,6 +337,7 @@ func createContainerMetal3Httpd(config *OperatorConfig, baremetalProvisioningCon VolumeMounts: volumeMounts, Env: []corev1.EnvVar{ buildEnvVar("HTTP_PORT", baremetalProvisioningConfig), + buildEnvVar("PROVISIONING_IP", baremetalProvisioningConfig), buildEnvVar("PROVISIONING_INTERFACE", baremetalProvisioningConfig), }, } @@ -357,6 +358,7 @@ func createContainerMetal3IronicConductor(config *OperatorConfig, baremetalProvi Env: []corev1.EnvVar{ setMariadbPassword(), buildEnvVar("HTTP_PORT", baremetalProvisioningConfig), + buildEnvVar("PROVISIONING_IP", baremetalProvisioningConfig), buildEnvVar("PROVISIONING_INTERFACE", baremetalProvisioningConfig), }, } @@ -377,6 +379,7 @@ func createContainerMetal3IronicApi(config *OperatorConfig, baremetalProvisionin Env: []corev1.EnvVar{ setMariadbPassword(), buildEnvVar("HTTP_PORT", baremetalProvisioningConfig), + buildEnvVar("PROVISIONING_IP", baremetalProvisioningConfig), buildEnvVar("PROVISIONING_INTERFACE", baremetalProvisioningConfig), }, } @@ -394,6 +397,7 @@ func createContainerMetal3IronicInspector(config *OperatorConfig, baremetalProvi }, VolumeMounts: volumeMounts, Env: []corev1.EnvVar{ + buildEnvVar("PROVISIONING_IP", baremetalProvisioningConfig), buildEnvVar("PROVISIONING_INTERFACE", baremetalProvisioningConfig), }, }