From 678a5d5696953b81a29d686ef5476e697b225d68 Mon Sep 17 00:00:00 2001 From: ranganathan-arumugam Date: Fri, 29 Apr 2022 21:21:59 +0530 Subject: [PATCH 1/2] upgrade script changes --- README.md | 4 ++++ upgrade/4-1_upgrade.md | 47 ++++++++++++++++++++++++++++++++++++++++++ upgrade/4-1_upgrade.sh | 36 ++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 upgrade/4-1_upgrade.md create mode 100644 upgrade/4-1_upgrade.sh diff --git a/README.md b/README.md index ca8a6dd..c17282a 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,7 @@ Bold Reports can be deployed on Kubernetes cluster. You can create Kubernetes cl * [Amazon Elastic Kubernetes Service (EKS)](docs/amazon-eks.md) * [Azure Kubernetes Service (AKS)](docs/microsoft-aks.md) * [On-premise](docs/on-premise.md) + +# Upgrade Bold Reports + +If you are upgrading Bold Reports to 4.1.78, please follow the steps in this [link](upgrade/upgrade.md). \ No newline at end of file diff --git a/upgrade/4-1_upgrade.md b/upgrade/4-1_upgrade.md new file mode 100644 index 0000000..428db83 --- /dev/null +++ b/upgrade/4-1_upgrade.md @@ -0,0 +1,47 @@ +# Upgrading Bold Reports to latest version + +This section explains how to upgrade Bold Reports to latest version in your Kubernetes cluster. You can refer to the features and enhancements from this [Release Notes](https://www.boldreports.com/release-history/embedded-reporting/4-1#4-1-78). + + +## Backup the existing data +Before upgrading the Bold Reports to latest version, make sure to take the backup of the following items. + +* Files and folders from the shared location, which you have mounted to the deployments by persistent volume claims (pvclaim_*.yaml). + +* Database backup - Take a backup of Database, to restore incase if the upgrade was not successful or if applications are not working properly after the upgrade. + + +## Proceeding with upgrade +Bold Reports updates the database schema of your current version to the latest version. The upgrade process will retain all the resources and settings from the previous deployment. + +You can download the upgrade script from this [link](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v4.1.78/upgrade/4-1_upgrade.sh) or use the below command. + +```sh +curl -o upgrade.sh https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v4.1.78/upgrade/4-1_upgrade.sh +``` + +Run the following command to execute the shell script to upgrade Bold Reports. + +```sh +./upgrade.sh --version="4.1.78" --namespace="default" +``` + + + + + + + + + + +
+ version + + Image tag of the current version, which you are going to upgrade. +
+ namespace (optional) + + namespace in which your existing Bold Reports application was running.
+ Default value: default +
\ No newline at end of file diff --git a/upgrade/4-1_upgrade.sh b/upgrade/4-1_upgrade.sh new file mode 100644 index 0000000..6500d47 --- /dev/null +++ b/upgrade/4-1_upgrade.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +# Copyright (c) Syncfusion Inc. All rights reserved. +# + +while [ $# -gt 0 ]; do + case "$1" in + --version=*) + version="${1#*=}" + ;; + --namespace=*) + namespace="${1#*=}" + ;; + *) + esac + shift +done + +[ -n "$version" ] || read -p 'Enter the version to upgrade: ' version + +if [ -z "$version" ] +then + echo "Version is empty." +else + if [ -z "$namespace" ] + then + namespace="default" + fi + + kubectl set image deployment/id-web-deployment id-web-container=gcr.io/boldreports/bold-identity:$version --namespace=$namespace --record + kubectl set image deployment/id-api-deployment id-api-container=gcr.io/boldreports/bold-idp-api:$version --namespace=$namespace --record + kubectl set image deployment/id-ums-deployment id-ums-container=gcr.io/boldreports/bold-ums:$version --namespace=$namespace --record + kubectl set image deployment/reports-web-deployment reports-web-container=gcr.io/boldreports/boldreports-server:$version --namespace=$namespace --record + kubectl set image deployment/reports-api-deployment reports-api-container=gcr.io/boldreports/boldreports-server-api:$version --namespace=$namespace --record + kubectl set image deployment/reports-jobs-deployment reports-jobs-container=gcr.io/boldreports/boldreports-server-jobs:$version --namespace=$namespace --record + kubectl set image deployment/reports-reportservice-deployment reports-reportservice-container=gcr.io/boldreports/boldreports-designer:$version --namespace=$namespace --record +fi From 89d2da6562329c9102674bb801f690ee8a5a88e9 Mon Sep 17 00:00:00 2001 From: ranganathan-arumugam Date: Fri, 29 Apr 2022 21:26:36 +0530 Subject: [PATCH 2/2] redirection changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c17282a..4d48cf2 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,4 @@ Bold Reports can be deployed on Kubernetes cluster. You can create Kubernetes cl # Upgrade Bold Reports -If you are upgrading Bold Reports to 4.1.78, please follow the steps in this [link](upgrade/upgrade.md). \ No newline at end of file +If you are upgrading Bold Reports to 4.1.78, please follow the steps in this [link](upgrade/4-1_upgrade.md). \ No newline at end of file