-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update chart deps and add Makefile with common commands * Update service-ui image tag to 5.11.1-r1
- Loading branch information
1 parent
db872c4
commit 596be3a
Showing
3 changed files
with
119 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
APP_NAME=reportportal | ||
SUPERADMIN_PASSWORD=superadmin | ||
STORAGE_TYPE=filesystem | ||
MINIKUBE_CPUS=4 | ||
MINIKUBE_MEMORY=8192 | ||
MINIKUBE_DISK_SIZE=50g | ||
REPO_URL=oci://us-docker.pkg.dev | ||
CHART_NAME=$(shell yq e '.name' reportportal/Chart.yaml) | ||
CHART_VERSION=$(shell yq e '.version' reportportal/Chart.yaml) | ||
CHART_BUMP_VERSION=$(shell yq e '.version | split(".") | .[0] + "." + .[1] + "." + (.[2] | tonumber + 1 | tostring)' reportportal/Chart.yaml) | ||
HELM_PACKAGE=${CHART_NAME}-${CHART_VERSION}.tgz | ||
|
||
ifeq ($(STORAGE_TYPE), minio) | ||
MINIO_INSTALL=true | ||
else | ||
MINIO_INSTALL=false | ||
endif | ||
|
||
default: package | ||
|
||
install: install-source | ||
|
||
# Helm commands | ||
package: | ||
@ echo "Packaging ReportPortal as ${HELM_PACKAGE}" | ||
@ helm package ./reportportal | ||
|
||
push: | ||
@ echo "Pushing ReportPortal as ${HELM_PACKAGE} to ${REPO_URL}" | ||
@helm push ${HELM_PACKAGE} ${REPO_URL} | ||
|
||
install-source: deps-update deps-build | ||
@ echo "Installing ReportPortal as ${APP_NAME} from source." | ||
@ echo "Superadmin password: ${SUPERADMIN_PASSWORD}, storage type: ${STORAGE_TYPE}" | ||
@ helm install ${APP_NAME} \ | ||
./reportportal \ | ||
--set uat.superadminInitPasswd.password=${SUPERADMIN_PASSWORD} \ | ||
--set storage.type=${STORAGE_TYPE} \ | ||
--set minio.install=${MINIO_INSTALL} | ||
|
||
install-repo: repo-add repo-update | ||
@ echo "Installing ReportPortal as ${APP_NAME} from repository." | ||
@ echo "Superadmin password: ${SUPERADMIN_PASSWORD}, storage type: ${STORAGE_TYPE}" | ||
@ helm install ${APP_NAME} \ | ||
reportportal/reportportal \ | ||
--set uat.superadminInitPasswd.password=${SUPERADMIN_PASSWORD} \ | ||
--set storage.type=${STORAGE_TYPE} \ | ||
--set minio.install=${MINIO_INSTALL} | ||
|
||
test: | ||
@ echo "Testing ReportPortal as ${APP_NAME}" | ||
@ helm test ${APP_NAME} | ||
|
||
update: | ||
@ echo "Updating ReportPortal as ${APP_NAME}" | ||
@ helm upgrade ${APP_NAME} ./reportportal | ||
|
||
uninstall: | ||
@ echo "Uninstalling reportportal" | ||
@ helm uninstall reportportal | ||
|
||
deps-update: | ||
@ echo "Updating dependencies for ReportPortal" | ||
@ helm dependency update ./reportportal | ||
|
||
deps-build: | ||
@ echo "Building dependencies for ReportPortal" | ||
@ helm dependency build ./reportportal | ||
|
||
repo-add: | ||
@ echo "Adding ReportPortal repository" | ||
@ helm repo add reportportal https://reportportal.io/kubernetes | ||
|
||
repo-update: | ||
@ echo "Updating ReportPortal repository" | ||
@ helm repo update reportportal | ||
|
||
# Chart versioning | ||
chart-info: | ||
@ echo "Chart name: ${CHART_NAME}" | ||
@ echo "Chart version: ${CHART_VERSION}" | ||
|
||
chart-version-update: chart-info | ||
@ echo "Updating chart version to ${NEW_VERSION}" | ||
@ yq e -i '.version = "${NEW_VERSION}"' reportportal/Chart.yaml | ||
|
||
chart-version-bump: chart-info | ||
@ echo "Bumping chart version to ${CHART_BUMP_VERSION}" | ||
@ yq e -i '.version = "${CHART_BUMP_VERSION}"' reportportal/Chart.yaml | ||
|
||
chart-appversion-update: | ||
@ echo "Updating chart app version to ${NEW_VERSION}" | ||
@ yq e -i '.appVersion = "${NEW_VERSION}"' reportportal/Chart.yaml | ||
|
||
# Minikube commands | ||
minikube-start: | ||
@ echo "Starting minikube with ${MINIKUBE_CPUS} CPUs, ${MINIKUBE_MEMORY} memory" | ||
@ minikube start --cpus ${MINIKUBE_CPUS} --memory ${MINIKUBE_MEMORY} --addons ingress | ||
|
||
minikube-stop: | ||
@ echo "Stopping minikube" | ||
@ minikube stop | ||
|
||
minikube-delete: | ||
@ echo "Deleting minikube" | ||
@ minikube delete | ||
|
||
minikube-address: | ||
@ echo "Minikube address http://$(shell minikube ip)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters