Skip to content

Commit

Permalink
Starting the integration tests for the chart.
Browse files Browse the repository at this point in the history
Just stubbing out all of the items needed.

Signed-off-by: Jamie Phillips <[email protected]>
  • Loading branch information
phillipsj committed Feb 27, 2022
1 parent fd00e98 commit 53734a4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion admission-webhook/run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ run_integration_tests() {
if [[ "$DEPLOY_METHOD" == 'download' ]]; then
export K8S_GMSA_DEPLOY_METHOD='download'

if [ "GITHUB_HEAD_REF" ]; then
if [ "$GITHUB_HEAD_REF" ]; then
# GITHUB_HEAD_REF is only set if it's a pull request
export K8S_GMSA_DEPLOY_DOWNLOAD_REPO="$GITHUB_REPOSITORY"
export K8S_GMSA_DEPLOY_DOWNLOAD_REV="$GITHUB_SHA"
Expand All @@ -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 53734a4

Please sign in to comment.