Skip to content

Commit

Permalink
Starting the integration tests for the chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipsj committed Feb 25, 2022
1 parent fd00e98 commit 2783858
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions admission-webhook/run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@ run_integration_tests() {
fi
fi

if [[ "$DEPLOY_METHOD" == 'chart' ]]; then
export K8S_GMSA_DEPLOY_METHOD='chart'

if [ "GITHUB_HEAD_REF" ]; then
# GITHUB_HEAD_REF is only set if it's a pull request
# Similar logic goes here, but installs the chart using the repo.
#export K8S_GMSA_DEPLOY_DOWNLOAD_REPO="$GITHUB_REPOSITORY"
#export K8S_GMSA_DEPLOY_DOWNLOAD_REV="$GITHUB_SHA"
#echo "Running pull request: $K8S_GMSA_DEPLOY_DOWNLOAD_REPO $K8S_GMSA_DEPLOY_DOWNLOAD_REV"
else
# not a pull request
# Installs the chart using the local copy.
#export K8S_GMSA_DEPLOY_DOWNLOAD_REPO="kubernetes-sigs/windows-gmsa"
#export K8S_GMSA_DEPLOY_DOWNLOAD_REV="$(git rev-parse HEAD)"
#echo "Running: $K8S_GMSA_DEPLOY_DOWNLOAD_REPO $K8S_GMSA_DEPLOY_DOWNLOAD_REV"
fi
fi

export DEPLOYMENT_NAME=windows-gmsa-dev
export NAMESPACE=windows-gmsa-dev

Expand Down

0 comments on commit 2783858

Please sign in to comment.