Skip to content

Commit 451363f

Browse files
committed
Rename bmo-ironic-configmap to metal3-config.
metal3-config is a better name for the configmap and better matches other configmap names. This also matches the patch that was applied to the MAO.
1 parent 7814965 commit 451363f

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

08_deploy_bmo.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ cp -r $BMOPATH/deploy ocp/.
2020
sed -i 's/namespace: .*/namespace: openshift-machine-api/g' ocp/deploy/role_binding.yaml
2121

2222
cp $SCRIPTDIR/operator_ironic.yaml ocp/deploy
23-
cp $SCRIPTDIR/ironic_bmo_configmap.yaml ocp/deploy
24-
sed -i "s#__RHCOS_IMAGE_URL__#${RHCOS_IMAGE_URL}#" ocp/deploy/ironic_bmo_configmap.yaml
25-
sed -i "s#provisioning_interface: \"ens3\"#provisioning_interface: \"${CLUSTER_PRO_IF}\"#" ocp/deploy/ironic_bmo_configmap.yaml
26-
sed -i "s#cache_url: \"http://192.168.111.1/images\"#cache_url: \"http://${BAREMETAL_IP}/images\"#" ocp/deploy/ironic_bmo_configmap.yaml
23+
cp $SCRIPTDIR/metal3-config.yaml ocp/deploy
24+
sed -i "s#__RHCOS_IMAGE_URL__#${RHCOS_IMAGE_URL}#" ocp/deploy/metal3-config.yaml
25+
sed -i "s#provisioning_interface: \"ens3\"#provisioning_interface: \"${CLUSTER_PRO_IF}\"#" ocp/deploy/metal3-config.yaml
26+
sed -i "s#cache_url: \"http://192.168.111.1/images\"#cache_url: \"http://${BAREMETAL_IP}/images\"#" ocp/deploy/metal3-config.yaml
2727

2828
# Kill the dnsmasq container on the host since it is performing DHCP and doesn't
2929
# allow our pod in openshift to take over. We don't want to take down all of ironic
@@ -38,7 +38,7 @@ oc --config ocp/auth/kubeconfig apply -f ocp/deploy/role.yaml --namespace=opensh
3838
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/role_binding.yaml
3939
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/crds/metal3_v1alpha1_baremetalhost_crd.yaml
4040

41-
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/ironic_bmo_configmap.yaml --namespace=openshift-machine-api
41+
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/metal3-config.yaml --namespace=openshift-machine-api
4242
# I'm leaving this as is for debugging but we could easily generate a random password here.
4343
oc --config ocp/auth/kubeconfig delete secret mariadb-password --namespace=openshift-machine-api || true
4444
oc --config ocp/auth/kubeconfig create secret generic mariadb-password --from-literal password=password --namespace=openshift-machine-api

ironic_bmo_configmap.yaml renamed to metal3-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: ConfigMap
22
apiVersion: v1
33
metadata:
4-
name: ironic-bmo-configmap
4+
name: metal3-config
55
data:
66
http_port: "6180"
77
provisioning_interface: "ens3"

operator_ironic.yaml

+21-21
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
- name: CACHEURL
3030
valueFrom:
3131
configMapKeyRef:
32-
name: ironic-bmo-configmap
32+
name: metal3-config
3333
key: cache_url
3434
- name: rhcos-downloader
3535
image: quay.io/openshift-metal3/rhcos-downloader:master
@@ -45,12 +45,12 @@ spec:
4545
- name: RHCOS_IMAGE_URL
4646
valueFrom:
4747
configMapKeyRef:
48-
name: ironic-bmo-configmap
48+
name: metal3-config
4949
key: rhcos_image_url
5050
- name: CACHEURL
5151
valueFrom:
5252
configMapKeyRef:
53-
name: ironic-bmo-configmap
53+
name: metal3-config
5454
key: cache_url
5555
- name: static-ip-set
5656
image: quay.io/metal3-io/static-ip-manager:latest
@@ -63,12 +63,12 @@ spec:
6363
- name: PROVISIONING_IP
6464
valueFrom:
6565
configMapKeyRef:
66-
name: ironic-bmo-configmap
66+
name: metal3-config
6767
key: provisioning_ip
6868
- name: PROVISIONING_INTERFACE
6969
valueFrom:
7070
configMapKeyRef:
71-
name: ironic-bmo-configmap
71+
name: metal3-config
7272
key: provisioning_interface
7373
containers:
7474
- name: baremetal-operator
@@ -93,22 +93,22 @@ spec:
9393
- name: DEPLOY_KERNEL_URL
9494
valueFrom:
9595
configMapKeyRef:
96-
name: ironic-bmo-configmap
96+
name: metal3-config
9797
key: deploy_kernel_url
9898
- name: DEPLOY_RAMDISK_URL
9999
valueFrom:
100100
configMapKeyRef:
101-
name: ironic-bmo-configmap
101+
name: metal3-config
102102
key: deploy_ramdisk_url
103103
- name: IRONIC_ENDPOINT
104104
valueFrom:
105105
configMapKeyRef:
106-
name: ironic-bmo-configmap
106+
name: metal3-config
107107
key: ironic_endpoint
108108
- name: IRONIC_INSPECTOR_ENDPOINT
109109
valueFrom:
110110
configMapKeyRef:
111-
name: ironic-bmo-configmap
111+
name: metal3-config
112112
key: ironic_inspector_endpoint
113113
- name: ironic-dnsmasq
114114
image: quay.io/metal3-io/ironic:master
@@ -124,17 +124,17 @@ spec:
124124
- name: HTTP_PORT
125125
valueFrom:
126126
configMapKeyRef:
127-
name: ironic-bmo-configmap
127+
name: metal3-config
128128
key: http_port
129129
- name: PROVISIONING_INTERFACE
130130
valueFrom:
131131
configMapKeyRef:
132-
name: ironic-bmo-configmap
132+
name: metal3-config
133133
key: provisioning_interface
134134
- name: DHCP_RANGE
135135
valueFrom:
136136
configMapKeyRef:
137-
name: ironic-bmo-configmap
137+
name: metal3-config
138138
key: dhcp_range
139139
- name: mariadb
140140
image: quay.io/metal3-io/ironic:master
@@ -166,12 +166,12 @@ spec:
166166
- name: HTTP_PORT
167167
valueFrom:
168168
configMapKeyRef:
169-
name: ironic-bmo-configmap
169+
name: metal3-config
170170
key: http_port
171171
- name: PROVISIONING_INTERFACE
172172
valueFrom:
173173
configMapKeyRef:
174-
name: ironic-bmo-configmap
174+
name: metal3-config
175175
key: provisioning_interface
176176
- name: ironic-conductor
177177
image: quay.io/metal3-io/ironic:master
@@ -192,12 +192,12 @@ spec:
192192
- name: HTTP_PORT
193193
valueFrom:
194194
configMapKeyRef:
195-
name: ironic-bmo-configmap
195+
name: metal3-config
196196
key: http_port
197197
- name: PROVISIONING_INTERFACE
198198
valueFrom:
199199
configMapKeyRef:
200-
name: ironic-bmo-configmap
200+
name: metal3-config
201201
key: provisioning_interface
202202
- name: ironic-api
203203
image: quay.io/metal3-io/ironic:master
@@ -218,12 +218,12 @@ spec:
218218
- name: HTTP_PORT
219219
valueFrom:
220220
configMapKeyRef:
221-
name: ironic-bmo-configmap
221+
name: metal3-config
222222
key: http_port
223223
- name: PROVISIONING_INTERFACE
224224
valueFrom:
225225
configMapKeyRef:
226-
name: ironic-bmo-configmap
226+
name: metal3-config
227227
key: provisioning_interface
228228
- name: ironic-inspector
229229
image: quay.io/metal3-io/ironic-inspector:master
@@ -237,7 +237,7 @@ spec:
237237
- name: PROVISIONING_INTERFACE
238238
valueFrom:
239239
configMapKeyRef:
240-
name: ironic-bmo-configmap
240+
name: metal3-config
241241
key: provisioning_interface
242242
- name: static-ip-refresh
243243
image: quay.io/metal3-io/static-ip-manager:latest
@@ -250,12 +250,12 @@ spec:
250250
- name: PROVISIONING_IP
251251
valueFrom:
252252
configMapKeyRef:
253-
name: ironic-bmo-configmap
253+
name: metal3-config
254254
key: provisioning_ip
255255
- name: PROVISIONING_INTERFACE
256256
valueFrom:
257257
configMapKeyRef:
258-
name: ironic-bmo-configmap
258+
name: metal3-config
259259
key: provisioning_interface
260260
volumes:
261261
- name: ironic-data-volume

0 commit comments

Comments
 (0)