From 9cc2f01e6ec5863430f68d167adc73ae83c7604b Mon Sep 17 00:00:00 2001 From: Honza Pokorny Date: Tue, 12 May 2026 18:17:19 -0300 Subject: [PATCH] Add WORKER_POOL_OS_IMAGE_STREAM Allow deploying worker nodes with a different CoreOS stream than the default. When WORKER_POOL_OS_IMAGE_STREAM is set (e.g. "rhel-10"), the worker BMH manifests and MachineSet hostSelector are configured to use the specified stream label, and a MachineConfigPool manifest is generated to set osImageStream for the worker pool. This enables testing heterogeneous clusters where workers boot with a different IPA and on-disk OS stream than control-plane nodes. Co-Authored-By: Claude Opus 4.6 --- config_example.sh | 8 ++++++++ ocp_install_env.sh | 1 + 2 files changed, 9 insertions(+) diff --git a/config_example.sh b/config_example.sh index 2cfbf4f7f..521e822ed 100755 --- a/config_example.sh +++ b/config_example.sh @@ -638,6 +638,14 @@ set -x #export WORKER_DISK=60 #export WORKER_VCPU=4 +# WORKER_POOL_OS_IMAGE_STREAM - +# Set osImageStream on the worker compute pool in install-config.yaml. +# For example, set to "rhel-10" to deploy workers with a different OS +# stream than the control plane. +# Default: unset (omitted from install-config). +# +#export WORKER_POOL_OS_IMAGE_STREAM=rhel-10 + # NUM_EXTRA_WORKERS - Indicate number of extra VMs to create but not deploy. # Default: 0 # diff --git a/ocp_install_env.sh b/ocp_install_env.sh index f81a8f090..e1851b914 100644 --- a/ocp_install_env.sh +++ b/ocp_install_env.sh @@ -411,6 +411,7 @@ compute: - name: worker replicas: $NUM_WORKERS architecture: $(get_arch install_config) +$([ -n "${WORKER_POOL_OS_IMAGE_STREAM:-}" ] && echo " osImageStream: $WORKER_POOL_OS_IMAGE_STREAM") controlPlane: name: master replicas: ${NUM_MASTERS}