Created
March 27, 2025 20:50
-
-
Save sjenning/2b621878b1d73d36e7d9a3b60b029ad6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
# Requirements | |
# * podman | |
# * az (logged in) | |
# KUBECONFIG set to the mgmt cluster | |
# Only need the edit these variables | |
AKS_NAME=usw3sjen-mgmt-1 | |
HYPERSHIFT_IMAGE=quay.io/hypershift/hypershift-operator:latest | |
RESOURCEGROUP=hcp-underlay-${AKS_NAME} | |
CSI_SECRET_STORE_CLIENT_ID=$(az aks show -n ${AKS_NAME} -g ${RESOURCEGROUP} --query 'addonProfiles.azureKeyvaultSecretsProvider.identity.clientId' -o tsv) | |
podman pull ${HYPERSHIFT_IMAGE} | |
podman create --name hypershift ${HYPERSHIFT_IMAGE} | |
podman cp hypershift:/usr/bin/hypershift ./hypershift | |
podman rm hypershift | |
./hypershift install \ | |
--enable-conversion-webhook=false \ | |
--managed-service ARO-HCP \ | |
--aro-hcp-key-vault-users-client-id ${CSI_SECRET_STORE_CLIENT_ID} \ | |
--hypershift-image ${HYPERSHIFT_IMAGE} \ | |
--registry-overrides "quay.io/openshift-release-dev/ocp-v4.0-art-dev=arohcpocpdev.azurecr.io/openshift/release,quay.io/openshift-release-dev/ocp-release=arohcpocpdev.azurecr.io/openshift/release-images,registry.redhat.io/redhat=arohcpocpdev.azurecr.io/redhat" \ | |
--platform-monitoring=None | |
rm hypershift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment