From 596be3a6a0fbf042347125e593e7d0627e8078cc Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel <13565058+raikbitters@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:09:10 +0200 Subject: [PATCH] Hotfix 24.1.5 (#420) * Update chart deps and add Makefile with common commands * Update service-ui image tag to 5.11.1-r1 --- Makefile | 109 +++++++++++++++++++++++++++++++++++++++ reportportal/Chart.yaml | 15 +++--- reportportal/values.yaml | 8 +-- 3 files changed, 119 insertions(+), 13 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e582d62 --- /dev/null +++ b/Makefile @@ -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)" \ No newline at end of file diff --git a/reportportal/Chart.yaml b/reportportal/Chart.yaml index c8bbd9d..953a72a 100644 --- a/reportportal/Chart.yaml +++ b/reportportal/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "24.1" description: ReportPortal.io AI-powered Test Automation Dashboard name: reportportal -version: 24.1.4 +version: 24.1.5 sources: - https://github.com/reportportal/kubernetes keywords: @@ -11,24 +11,21 @@ maintainers: - name: reportportal email: support@reportportal.io dependencies: - # If you update version, please update also postgresql.image.tag in values.yaml + # If you update version, please update also postgresql.image.tag in values.yaml - name: postgresql - version: 15.5.26 + version: 15.5.28 repository: https://charts.bitnami.com/bitnami condition: postgresql.install - # If you update version, please update also rabbitmq.image.tag in values.yaml - name: rabbitmq - version: 14.6.7 + version: 14.6.9 repository: https://charts.bitnami.com/bitnami condition: rabbitmq.install - - name: opensearch - version: 2.23.0 + version: 2.24.0 repository: https://opensearch-project.github.io/helm-charts/ condition: opensearch.install - - name: minio - version: 14.7.2 + version: 14.7.7 repository: https://charts.bitnami.com/bitnami condition: minio.install diff --git a/reportportal/values.yaml b/reportportal/values.yaml index 3f6e957..17ebac3 100644 --- a/reportportal/values.yaml +++ b/reportportal/values.yaml @@ -54,7 +54,7 @@ serviceui: name: ui image: repository: reportportal/service-ui - tag: 5.11.1 + tag: 5.11.1-r1 pullPolicy: Always resources: requests: @@ -832,7 +832,7 @@ postgresql: install: true image: repository: bitnami/postgresql - tag: 16.4.0-debian-12-r4 + tag: 16.4.0-debian-12-r7 auth: postgresPassword: *dbpassword username: *dbuser @@ -850,7 +850,7 @@ rabbitmq: install: true image: repository: bitnami/rabbitmq - tag: 3.13.7-debian-12-r0 + tag: 3.13.7-debian-12-r2 auth: username: *msgbrokerUser password: *msgbrokerPass @@ -895,7 +895,7 @@ minio: install: true image: repository: bitnami/minio - tag: 2024.8.26-debian-12-r0 + tag: 2024.9.9-debian-12-r0 auth: rootUser: *storageAccessKey rootPassword: *storageSecretKey