Pass GKE parameters
@@ -86,7 +86,11 @@ install: $(GO_FILES) $(BUILD_DIR)
.PHONY: integration
integration: install
- go test -v -tags integration $(REPOPATH)/integration -timeout 10m --remote=$(REMOTE_INTEGRATION)
+ go test -v -tags integration $(REPOPATH)/integration -timeout 10m \
+ --remote=$(REMOTE_INTEGRATION) \
+ --gcp-project=$(GCP_PROJECT) \
+ --gke-cluster-name=$(GKE_CLUSTER_NAME) \
+ --gke-zone=$(GKE_ZONE)
.PHONY: coverage
coverage: $(BUILD_DIR)
@@ -152,6 +156,9 @@ integration-in-docker:
-v $(HOME)/.config/gcloud:/root/.config/gcloud \
-v $(GOOGLE_APPLICATION_CREDENTIALS):$(GOOGLE_APPLICATION_CREDENTIALS) \
-e REMOTE_INTEGRATION=true \
+ -e GCP_PROJECT=$(GCP_PROJECT) \
+ -e GKE_CLUSTER_NAME=$(GKE_CLUSTER_NAME) \
+ -e GKE_ZONE=$(GKE_ZONE) \
-e DOCKER_CONFIG=/root/.docker \
-e GOOGLE_APPLICATION_CREDENTIALS=$(GOOGLE_APPLICATION_CREDENTIALS) \
gcr.io/$(GCP_PROJECT)/skaffold-integration
