From 4b9928ccdfce7b643c9694774873bfb11d9824d251bc10117340b7ccf62cb73f Mon Sep 17 00:00:00 2001 From: Marco Chiappero Date: Tue, 8 Jul 2025 14:21:01 +0000 Subject: [PATCH] metal3-chart: cleanup ironic-bmo ConfigMap Apparently the ironic-bmo ConfigMap used to be shared with both Ironic and the BareMetalOperator. Since it is no longer the case and many variables are not used by Ironic, remove them. Also, rename the ConfigMap, so that it is clearer it is for Ironic only. Signed-off-by: Marco Chiappero --- .../charts/ironic/templates/configmap.yaml | 14 +------------- .../charts/ironic/templates/deployment.yaml | 6 +++--- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/metal3-chart/charts/ironic/templates/configmap.yaml b/metal3-chart/charts/ironic/templates/configmap.yaml index c5846db..ba43d20 100644 --- a/metal3-chart/charts/ironic/templates/configmap.yaml +++ b/metal3-chart/charts/ironic/templates/configmap.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: ironic-bmo + name: ironic labels: {{- include "ironic.labels" . | nindent 4 }} data: @@ -9,7 +9,6 @@ data: {{- $enableVMediaTLS := .Values.global.enable_vmedia_tls }} {{- $protocol := ternary "https" "http" $enableTLS }} {{- $ironicIP := .Values.global.ironicIP | default "" }} - {{- $ironicApiHost := print $ironicIP ":6385" }} {{- $ironicBootHost := print $ironicIP ":6180" }} {{- $ironicCacheHost := print $ironicIP ":6180" }} {{- $deployArch := .Values.global.deployArchitecture }} @@ -25,11 +24,6 @@ data: {{- end }} HTTP_PORT: "6180" PREDICTABLE_NIC_NAMES: "{{ .Values.global.predictableNicNames }}" - USE_IRONIC_INSPECTOR: "false" - IRONIC_API_BASE_URL: {{ $protocol }}://{{ $ironicApiHost }} - IRONIC_API_HOST: {{ $ironicApiHost }} - IRONIC_API_HTTPD_SERVER_NAME: {{ $ironicApiHost }} - IRONIC_ENDPOINT: {{ $protocol }}://{{ $ironicApiHost }}/v1/ # Switch VMedia to HTTP if enable_vmedia_tls is false {{- if and $enableTLS $enableVMediaTLS }} {{- $ironicBootHost = print $ironicIP ":" .Values.global.vmediaTLSPort }} @@ -39,12 +33,8 @@ data: {{- $protocol = "http" }} {{- end }} IRONIC_EXTERNAL_HTTP_URL: {{ $protocol }}://{{ $ironicCacheHost }} - CACHEURL: {{ $protocol }}://{{ $ironicCacheHost }}/images - DEPLOY_KERNEL_URL: {{ $protocol }}://{{ $ironicBootHost }}/images/ironic-python-agent-{{ $deployArch }}.kernel - DEPLOY_RAMDISK_URL: {{ $protocol }}://{{ $ironicBootHost }}/images/ironic-python-agent-{{ $deployArch }}.initramfs DEPLOY_ARCHITECTURE: {{ $deployArch }} IRONIC_BOOT_BASE_URL: {{ $protocol }}://{{ $ironicBootHost }} - IRONIC_VMEDIA_HTTPD_SERVER_NAME: {{ $ironicBootHost }} ENABLE_PXE_BOOT: "{{ .Values.global.enable_pxe_boot }}" {{- if .Values.global.provisioningInterface }} PROVISIONING_INTERFACE: {{ .Values.global.provisioningInterface }} @@ -52,8 +42,6 @@ data: {{- if .Values.global.provisioningIP }} PROVISIONING_IP: {{ .Values.global.provisioningIP }} {{- end }} - IRONIC_ILO_USE_SWIFT: "false" - IRONIC_ILO_USE_WEB_SERVER_FOR_IMAGES: "true" IRONIC_FAST_TRACK: "true" LISTEN_ALL_INTERFACES: "true" {{- if .Values.global.ironicIP }} diff --git a/metal3-chart/charts/ironic/templates/deployment.yaml b/metal3-chart/charts/ironic/templates/deployment.yaml index 3e6e2cd..56ca391 100644 --- a/metal3-chart/charts/ironic/templates/deployment.yaml +++ b/metal3-chart/charts/ironic/templates/deployment.yaml @@ -39,7 +39,7 @@ spec: - /bin/runhttpd envFrom: - configMapRef: - name: ironic-bmo + name: ironic livenessProbe: exec: command: ["sh", "-c", "curl -sSfk https://127.0.0.1:6385"] @@ -97,7 +97,7 @@ spec: - /bin/runironic envFrom: - configMapRef: - name: ironic-bmo + name: ironic env: {{- if .Values.global.enable_basicAuth }} - name: IRONIC_HTPASSWD @@ -170,7 +170,7 @@ spec: - /bin/rundnsmasq envFrom: - configMapRef: - name: ironic-bmo + name: ironic livenessProbe: exec: command: -- 2.49.0