From 6f9dac99c5d0e34b657823500062cf3a5a86a66f Mon Sep 17 00:00:00 2001 From: CrystalChun Date: Fri, 17 Nov 2023 09:59:03 -0800 Subject: [PATCH] HOSTEDCP-999: Minor fixes for disconnected CAPI CI https://issues.redhat.com/browse/HOSTEDCP-999 After the initial changes were merged and rehearsed, small bugs were found. This PR attempts to fix them. 1. Corrected pull secret file passed into hypershift command. 2. Added service-cidr flag for ipv6 --- deploy/operator/capi/deploy_capi_cluster.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/operator/capi/deploy_capi_cluster.sh b/deploy/operator/capi/deploy_capi_cluster.sh index c3ace19139..b35c4adfc6 100755 --- a/deploy/operator/capi/deploy_capi_cluster.sh +++ b/deploy/operator/capi/deploy_capi_cluster.sh @@ -59,8 +59,8 @@ elif [[ "${IP_STACK}" == "v4v6" ]]; then export CLUSTER_HOST_PREFIX_ADDITIONAL="${CLUSTER_HOST_PREFIX_V6}" export EXTERNAL_SUBNET_ADDITIONAL="${EXTERNAL_SUBNET_V6}" export SERVICE_SUBNET_ADDITIONAL="${SERVICE_SUBNET_V6}" - # IPv6 requires hypershift create cluster cidr override - export EXTRA_HYPERSHIFT_CREATE_COMMANDS="$EXTRA_HYPERSHIFT_CREATE_COMMANDS --cluster-cidr fd01::/48" + # IPv6 requires hypershift create cluster and service cidr overrides + export EXTRA_HYPERSHIFT_CREATE_COMMANDS="$EXTRA_HYPERSHIFT_CREATE_COMMANDS --cluster-cidr fd01::/48 --service-cidr fd02::/112" fi if [ "${DISCONNECTED}" = "true" ]; then @@ -158,7 +158,7 @@ function hypershift_cli() { then hypershift "$@" else - podman run -it --net host --rm --entrypoint /usr/bin/hypershift -v $KUBECONFIG:/root/.kube/config -v $ASSISTED_PULLSECRET_JSON:/root/pull-secret.json -v /root/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub $HYPERSHIFT_IMAGE "$@" + podman run -it --net host --rm --entrypoint /usr/bin/hypershift -v $KUBECONFIG:/root/.kube/config -v $ASSISTED_PULLSECRET_JSON:$ASSISTED_PULLSECRET_JSON -v /root/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub $HYPERSHIFT_IMAGE "$@" fi } @@ -191,7 +191,7 @@ else fi echo "Creating HostedCluster" -hypershift_cli create cluster agent --name $ASSISTED_CLUSTER_NAME --base-domain redhat.example --pull-secret /root/pull-secret.json \ +hypershift_cli create cluster agent --name $ASSISTED_CLUSTER_NAME --base-domain redhat.example --pull-secret $ASSISTED_PULLSECRET_JSON \ --ssh-key /root/.ssh/id_rsa.pub --agent-namespace $SPOKE_NAMESPACE --namespace $SPOKE_NAMESPACE \ --release-image ${ASSISTED_OPENSHIFT_INSTALL_RELEASE_IMAGE:-${RELEASE_IMAGE}} \ $CONTROL_PLANE_OPERATOR_FLAG_FOR_CREATE_COMMAND \