Skip to content

Commit dcfc1f6

Browse files
Merge pull request openshift#6691 from eggfoobar/nto_bootstrap_render
CNF-6362: feat: add support for nto rendering during bootstrap
2 parents 5d11100 + b5d9575 commit dcfc1f6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

data/data/bootstrap/files/usr/local/bin/bootkube.sh.template

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ KUBE_APISERVER_OPERATOR_IMAGE=$(image_for cluster-kube-apiserver-operator)
5353
KUBE_CONTROLLER_MANAGER_OPERATOR_IMAGE=$(image_for cluster-kube-controller-manager-operator)
5454
KUBE_SCHEDULER_OPERATOR_IMAGE=$(image_for cluster-kube-scheduler-operator)
5555
INGRESS_OPERATOR_IMAGE=$(image_for cluster-ingress-operator)
56+
NODE_TUNING_OPERATOR_IMAGE=$(image_for cluster-node-tuning-operator)
5657

5758
CLOUD_CREDENTIAL_OPERATOR_IMAGE=$(image_for cloud-credential-operator)
5859

@@ -294,6 +295,30 @@ then
294295
record_service_stage_success
295296
fi
296297

298+
if [ ! -f node-tuning-bootstrap.done ]
299+
then
300+
record_service_stage_start "node-tuning-bootstrap"
301+
echo "Rendering Node Tuning core manifests..."
302+
303+
rm --recursive --force node-tuning-bootstrap
304+
305+
bootkube_podman_run \
306+
--name node-tuning-render \
307+
--volume "$PWD:/assets:z" \
308+
"${NODE_TUNING_OPERATOR_IMAGE}" \
309+
render \
310+
--asset-input-dir=/assets/manifests \
311+
--asset-output-dir=/assets/node-tuning-bootstrap
312+
313+
# Copy over manifests if they were generated by NTO
314+
if [ -n "$(ls -A node-tuning-bootstrap)" ]; then
315+
cp node-tuning-bootstrap/* manifests/
316+
fi
317+
318+
touch node-tuning-bootstrap.done
319+
record_service_stage_success
320+
fi
321+
297322
if [ ! -f mco-bootstrap.done ]
298323
then
299324
record_service_stage_start "mco-bootstrap"

0 commit comments

Comments
 (0)