Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ if [[ "$DISCONNECTED" == "true" ]]; then
RELEASE_IMAGE=$(oc get clusterversion version -ojsonpath='{.status.desired.image}')
fi

if [[ -n "$MULTISTAGE_PARAM_OVERRIDE_OVERRIDE_CPO_IMAGE" ]]; then
OVERRIDE_CPO_IMAGE="$MULTISTAGE_PARAM_OVERRIDE_OVERRIDE_CPO_IMAGE"
fi

if [[ -n "${OVERRIDE_CPO_IMAGE}" ]]; then
EXTRA_ARGS+=" --annotations=hypershift.openshift.io/control-plane-operator-image=${OVERRIDE_CPO_IMAGE} "
fi

if [[ -n "${HYPERSHIFT_NETWORK_TYPE}" ]]; then
EXTRA_ARGS+=" --network-type=${HYPERSHIFT_NETWORK_TYPE} "
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ ref:
- name: AGENT_NAMESPACE
default: ""
documentation: "namespace of the agent. If the default is an empty string, it will be HOSTED_CONTROL_PLANE_NAMESPACE."
- name: OVERRIDE_CPO_IMAGE
default: ""
documentation: |-
Override the Control Plane Operator image for the HostedCluster. If empty, no override is applied.
E.g: quay.io/hypershift/control-plane-operator:latest
- name: MULTISTAGE_PARAM_OVERRIDE_OVERRIDE_CPO_IMAGE
documentation: |-
Optional. Used to override OVERRIDE_CPO_IMAGE, with higher priority than OVERRIDE_CPO_IMAGE.
When using the Gangway API, pass it as:
"pod_spec_options": {
"envs": {
"MULTISTAGE_PARAM_OVERRIDE_OVERRIDE_CPO_IMAGE": "quay.io/hypershift/control-plane-operator:latest"
}
}
default: ""
- name: EXTRA_ARGS
default: ""
documentation: "Extra args to pass to the create cluster agent command"
Expand Down