Skip to content

Commit

Permalink
add KUBECONFIG to version script
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
  • Loading branch information
alexandreLamarre committed Feb 3, 2025
1 parent c65c63e commit d2683e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/integration
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ echo "Starting integration tests"
# condition that causes the helm-locker tests to fail, because either controller can acquire and harden a helm-release.

echo "Running helm-locker integration tests"
KUBECONFIG=$KUBECONFIG go test -cover ./internal/helm-locker
go test -cover ./internal/helm-locker

# expects the dev image $IMAGE to be available to the cluster pointed to by $KUBECONFIG
echo "Running helm-project-operator integration tests with image : $IMAGE"
KUBECONFIG=$KUBECONFIG IMAGE=$IMAGE go test -cover ./internal/helm-project-operator
IMAGE=$IMAGE go test -cover ./internal/helm-project-operator
2 changes: 2 additions & 0 deletions scripts/version
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

BUILD_TARGET=${BUILD_TARGET:-"prometheus-federator"}

export KUBECONFIG=$KUBECONFIG

if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
DIRTY="-dirty"
fi
Expand Down

0 comments on commit d2683e7

Please sign in to comment.