Skip to content

Commit

Permalink
ci: pao-hypershift lane
Browse files Browse the repository at this point in the history
A new lane for exercising e2e test for performance-profile operator
on hypershift cluster.

The ci exposes 3 must-to-have environment variable
which will be using later by the tests:

1. HYPERSHIFT_MANAGEMENT_CLUSTER_KUBECONFIG - kubeconfig path of the management cluster
2. HYPERSHIFT_MANAGEMENT_CLUSTER_NAMESPACE - namespace name on the management cluster on which the control-plane objects of the hosted-cluster reside.
3. HYPERSHIFT_HOSTED_CLUSTER_KUBECONFIG - kubeconfig path of the hosted cluster

Signed-off-by: Talor Itzhak <titzhak@redhat.com>
  • Loading branch information
Tal-or committed Mar 17, 2024
1 parent f1c78a1 commit 9e9abdd
Showing 1 changed file with 2 additions and 16 deletions.
Expand Up @@ -87,25 +87,11 @@ tests:
- as: e2e-hypershift-pao
cli: latest
commands: |-
# CLI_DIR
# SHARED_DIR
# CLUSTER_TYPE=hypershift
export CLUSTER_NAME="$(echo -n $PROW_JOB_ID|sha256sum|cut -c-20)"
echo CLUSTER_NAME ${CLUSTER_NAME}
export HYPERSHIFT_MANAGEMENT_CLUSTER_KUBECONFIG="${SHARED_DIR}/management_cluster_kubeconfig"
echo HYPERSHIFT_MANAGEMENT_CLUSTER_KUBECONFIG
cat ${HYPERSHIFT_MANAGEMENT_CLUSTER_KUBECONFIG}
export HYPERSHIFT_MANAGEMENT_CLUSTER_NAMESPACE="$(${CLI_DIR}/oc get hcp -A -o=jsonpath="{.items[?(@.metadata.name==\"$CLUSTER_NAME\")].metadata.namespace}")"
echo HYPERSHIFT_MANAGEMENT_CLUSTER_NAMESPACE ${HYPERSHIFT_MANAGEMENT_CLUSTER_NAMESPACE}
export KUBECONFIG=${SHARED_DIR}/nested_kubeconfig
echo KUBECONFIG
cat ${KUBECONFIG}
make cluster-label-worker-cnf test-unit
sleep 3600
export HYPERSHIFT_HOSTED_CLUSTER_KUBECONFIG=${SHARED_DIR}/nested_kubeconfig
make pao-functests-hypershift
from: src
resources:
requests:
Expand Down

0 comments on commit 9e9abdd

Please sign in to comment.