Skip to content

Commit 341c6ad

Browse files
Merge pull request openshift#7924 from deads2k/pass-clsuter-profile
OCPBUGS-27366: set the --cluster-profile flag for openshift/api rendering
2 parents 7be2cf7 + f7b8cb2 commit 341c6ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,21 @@ then
9393

9494
rm --recursive --force api-bootstrap
9595

96+
# A more desireable end state would be require wiring up the infrastructure in some way and read it from rendered-manifest-dir
97+
CLUSTER_PROFILE_ANNOTATION="self-managed-high-availability"
98+
if [ "$BOOTSTRAP_INPLACE" = true ]
99+
then
100+
CLUSTER_PROFILE_ANNOTATION="single-node-developer"
101+
fi
102+
96103
bootkube_podman_run \
97104
--name api-render \
98105
--volume "$PWD:/assets:z" \
99106
"${API_IMAGE}" \
100107
/usr/bin/render \
101108
--asset-output-dir=/assets/api-bootstrap \
102109
--rendered-manifest-dir=/assets/manifests \
110+
--cluster-profile=${CLUSTER_PROFILE_ANNOTATION} \
103111
--payload-version=$VERSION
104112

105113
cp api-bootstrap/manifests/* manifests/

0 commit comments

Comments
 (0)