diff --git a/.github/workflows/push-e2e-upgrade-test.yaml b/.github/workflows/push-e2e-upgrade-test.yaml index 0ad179cd..56e09b11 100644 --- a/.github/workflows/push-e2e-upgrade-test.yaml +++ b/.github/workflows/push-e2e-upgrade-test.yaml @@ -1,4 +1,4 @@ -name: push-with-lifecycle-manager +name: push-e2e-upgrade-test env: DOCKER_IMAGE: "europe-docker.pkg.dev/kyma-project/prod/nats-manager" @@ -34,6 +34,7 @@ jobs: - name: Install the latest released NATS manager run: | + make -C hack/ci/ create-kyma-system-ns make -C hack/ci/ install-nats-manager - name: Setup & test NATS CR diff --git a/hack/ci/Makefile b/hack/ci/Makefile index 80825ab8..d3e667f2 100644 --- a/hack/ci/Makefile +++ b/hack/ci/Makefile @@ -23,45 +23,18 @@ module-build: ## Build the Module, push it to a registry and print it based on t @cat ${ARTIFACTS}/module-template.yaml @echo "\n~~~~~~~~~~~~~~~END OF MODULE TEMPLATE~~~~~~~~~~~~~~~~" -.PHONY: download-module-template -download-module-template: ## Downloads the module-template from the module-build prow job. - export PROJECT_ROOT="${PROJECT_ROOT}" \ - && ../get_module_template_from_build_job.sh - -.PHONY: install-latest-module-template-fast -install-latest-module-template-fast: ## Downloads and applies the latest released module-template from fast channel. - kubectl apply -f https://github.com/kyma-project/nats-manager/releases/latest/download/module-template.yaml - .PHONY: create-kyma-system-ns create-kyma-system-ns: ## Create kyma-system namespace. kubectl create ns kyma-system -.PHONY: install-module-template -install-module-template: ## Apply NATS moduletemplate. - kubectl apply -f ${PROJECT_ROOT}/module-template.yaml - -.PHONY: enable-module-without-default-cr -enable-module-without-default-cr: ## Enable NATS module without creating default NATS CR. - "${KYMA_CLI}" alpha enable module nats -c fast -n kyma-system -p Ignore - .PHONY: install-nats-manager install-nats-manager: ## Install nats-manager only. kubectl apply -f https://github.com/kyma-project/nats-manager/releases/latest/download/nats-manager.yaml -.PHONY: install-lifecycle-manager -install-lifecycle-manager: ## Deploys lifecycle-manager. - "${KYMA_CLI}" alpha deploy \ - --ci \ - --force-conflicts - .PHONY: create-k3d create-k3d: ## Create k3d with kyma CRDs. "${KYMA_CLI}" provision k3d -p 8081:80@loadbalancer -p 8443:443@loadbalancer --registry-port ${REGISTRY_PORT} --name ${CLUSTER_NAME} --ci -.PHONY: verify-kyma -verify-kyma: ## Wait for Kyma CR to be in Ready state. - ../verify_kyma_status.sh - .PHONY: install-k3d-tools install-k3d-tools: ## Create k3d with kyma CRDs. curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | TAG=${K3D_VERSION} bash