зеркало из https://github.com/Azure/kubectl-aks.git
Set env for TestConfigImport
This commit is contained in:
Родитель
db554c3c05
Коммит
1fb37c3880
|
@ -216,6 +216,8 @@ jobs:
|
|||
- name: Run integration tests
|
||||
shell: bash
|
||||
run: |
|
||||
export AZURE_RESOURCE_GROUP=${{ env.AZURE_PREFIX }}-rg
|
||||
export AZURE_CLUSTER_NAME=${{ env.AZURE_PREFIX }}-${{ matrix.arch }}-cluster
|
||||
make integration-test -o kubectl-aks
|
||||
|
||||
release:
|
||||
|
|
7
Makefile
7
Makefile
|
@ -4,6 +4,10 @@ GOHOSTARCH ?= $(shell go env GOHOSTARCH)
|
|||
TAG := `git describe --tags --always`
|
||||
VERSION :=
|
||||
|
||||
AZURE_SUBSCRIPTION_ID ?= $(shell az account show --query id -o tsv)
|
||||
AZURE_RESOURCE_GROUP ?=
|
||||
AZURE_CLUSTER_NAME ?=
|
||||
|
||||
# Adds a '-dirty' suffix to version string if there are uncommitted changes
|
||||
changes := $(shell git status --porcelain)
|
||||
ifeq ($(changes),)
|
||||
|
@ -74,6 +78,9 @@ unit-test:
|
|||
.PHONY: integration-test
|
||||
integration-test: kubectl-aks
|
||||
KUBECTL_AKS="$(shell pwd)/kubectl-aks" \
|
||||
AZURE_SUBSCRIPTION_ID=$(AZURE_SUBSCRIPTION_ID) \
|
||||
AZURE_RESOURCE_GROUP=$(AZURE_RESOURCE_GROUP) \
|
||||
AZURE_CLUSTER_NAME=$(AZURE_CLUSTER_NAME) \
|
||||
go test -v ./test/integration/... -integration
|
||||
|
||||
# Clean
|
||||
|
|
Загрузка…
Ссылка в новой задаче