Skip to content

Commit

Permalink
Rename post verify target for warden (#160)
Browse files Browse the repository at this point in the history
* Rename post verify target for warden

* Rename post verify target for warden
  • Loading branch information
kwiatekus authored Jan 2, 2024
1 parent 1ce2041 commit 439cde5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 107 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ vendor
.vscode

# modularization generated files
moduletemplate-k3d.yaml
moduletemplate.yaml
warden-manifest.yaml
module-config.yaml
25 changes: 15 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ docker-buildx: test ## Build and push docker image for the manager for cross-pla
##@ Module

.PHONY: module-build
module-build: kyma helm ## create moduletemplate and push manifest artifacts
@KYMA=${KYMA} HELM=${HELM} RELEASE_SUFFIX=${MODULE_SHA} ./hack/create-module.sh
module-build: helm ## renders warden-manifest.yaml
${HELM} template --namespace kyma-system warden charts/warden --set admission.enabled=true > warden-manifest.yaml

##@ CI

.PHONY: ci-module-build
ci-module-build: configure-git-origin module-build
@echo "=======MODULE TEMPLATE======="
@cat moduletemplate.yaml
@echo "=======WARDEN MANIFEST======="
@cat warden-manifest.yaml
@echo "============================="

.PHONY: configure-git-origin
Expand All @@ -127,13 +127,18 @@ configure-git-origin:
git remote add origin https://github.com/kyma-project/warden


.PHONY: k3d-lm-integration-test
k3d-lm-integration-test: ## Run integration tests on self-prepared k3d cluster with lifecycle-manager.
k3d-lm-integration-test: run-with-lifecycle-manager verify-status run-integration-tests
.PHONY: k3d-integration-test
k3d-integration-test: ## Run integration tests on self-prepared k3d cluster.
k3d-integration-test: run-on-k3d verify-status run-integration-tests

.PHONY: run-with-lifecycle-manager
run-with-lifecycle-manager: kyma helm configure-git-origin
@KYMA=${KYMA} HELM=${HELM} ./hack/run-module-locally.sh
.PHONY: create-k3d
create-k3d: ## Create k3d
${KYMA} provision k3d --ci -p 6080:8080@loadbalancer -p 6433:8433@loadbalancer
kubectl create namespace kyma-system

.PHONY: run-on-k3d
run-on-k3d: kyma create-k3d configure-git-origin module-build
kubectl apply -f warden-manifest.yaml

.PHONY: verify-status
verify-status:
Expand Down
43 changes: 0 additions & 43 deletions hack/create-module.sh

This file was deleted.

52 changes: 0 additions & 52 deletions hack/run-module-locally.sh

This file was deleted.

0 comments on commit 439cde5

Please sign in to comment.