Unverified Commit 744cda65 authored by Dillon Cullinan's avatar Dillon Cullinan Committed by GitHub
Browse files

ci: Shorten deploy test namespaces (#4254)


Signed-off-by: default avatarDillon Cullinan <dcullinan@nvidia.com>
parent 827b8c3e
...@@ -331,7 +331,7 @@ jobs: ...@@ -331,7 +331,7 @@ jobs:
run: | run: |
# Set namespace using test scenario # Set namespace using test scenario
export FRAMEWORK=${{ matrix.framework.name }} export FRAMEWORK=${{ matrix.framework.name }}
echo "NAMESPACE=gh-job-id-${{ github.run_id }}-ft-${FRAMEWORK}" >> $GITHUB_ENV echo "NAMESPACE=gh-id-${{ github.run_id }}-ft-${FRAMEWORK}" >> $GITHUB_ENV
set -x set -x
# Setup kubeconfig # Setup kubeconfig
...@@ -510,9 +510,12 @@ jobs: ...@@ -510,9 +510,12 @@ jobs:
run: | run: |
set -x set -x
# Set namespace using branch # Set namespace
BRANCH_SANITIZED="${BRANCH/\//-}" # Invalid patterns: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
NAMESPACE="gh-job-id-${{ github.run_id }}-${BRANCH_SANITIZED}-deploy-tests" BRANCH_SANITIZED="${BRANCH//\//-}"
BRANCH_SANITIZED="${BRANCH_SANITIZED/pull-request/pr}"
BRANCH_SANITIZED="${BRANCH_SANITIZED//./-}"
NAMESPACE="gh-id-${{ github.run_id }}-${BRANCH_SANITIZED}-dt"
echo "namespace=${NAMESPACE}" >> "$GITHUB_OUTPUT" echo "namespace=${NAMESPACE}" >> "$GITHUB_OUTPUT"
# Setup kubeconfig # Setup kubeconfig
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment