diff --git a/frontend/env.js b/frontend/env.js index f7c49c874..10513c3b1 100644 --- a/frontend/env.js +++ b/frontend/env.js @@ -13,7 +13,7 @@ const oss = { ORIGIN: () => 'window.location.origin', API_EDP: () => 'window.location.origin + "/api"', ASSETS_HOST: () => 'window.location.origin + "/assets"', - VERSION: '1.3.6', + VERSION: '1.4.0', SOURCEMAP: true, MINIO_ENDPOINT: process.env.MINIO_ENDPOINT, MINIO_PORT: process.env.MINIO_PORT, diff --git a/scripts/helm/helmcharts/init.sh b/scripts/helm/helmcharts/init.sh index 8b926cf50..c284fab92 100644 --- a/scripts/helm/helmcharts/init.sh +++ b/scripts/helm/helmcharts/init.sh @@ -15,7 +15,7 @@ fatal() exit 1 } -version=${OPENREPLAY_VERSION:-'v1.4.0'} +version="v1.4.0" usr=`whoami` # Installing k3s @@ -76,7 +76,7 @@ randomPass() { }|| { info " Downloading vars file" -curl -L -O vars.yaml https://raw.githubusercontent.com/rjshrjndrn/openreplay/${version}/scripts/helm/helm/vars.yaml +curl -L -O vars.yaml https://raw.githubusercontent.com/rjshrjndrn/openreplay/${version="v1.4.0" } diff --git a/scripts/helm/helmcharts/openreplay/Chart.yaml b/scripts/helm/helmcharts/openreplay/Chart.yaml index 70783afea..d7bfd0074 100644 --- a/scripts/helm/helmcharts/openreplay/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/Chart.yaml @@ -22,4 +22,4 @@ version: 0.1.0 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. # Ref: https://github.com/helm/helm/issues/7858#issuecomment-608114589 -AppVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/alerts/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/alerts/Chart.yaml index 101e24ac1..4cda7945b 100644 --- a/scripts/helm/helmcharts/openreplay/charts/alerts/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/alerts/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/assets/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/assets/Chart.yaml index 924e9d634..fe932b71c 100644 --- a/scripts/helm/helmcharts/openreplay/charts/assets/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/assets/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/chalice/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/chalice/Chart.yaml index 4516f0b9b..42ec55dec 100644 --- a/scripts/helm/helmcharts/openreplay/charts/chalice/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/chalice/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/db/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/db/Chart.yaml index 816ccccb9..af2db8c06 100644 --- a/scripts/helm/helmcharts/openreplay/charts/db/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/db/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/ender/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/ender/Chart.yaml index 0e3fadd03..92e286a7d 100644 --- a/scripts/helm/helmcharts/openreplay/charts/ender/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/ender/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/http/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/http/Chart.yaml index 54a567e21..91b9ce66f 100644 --- a/scripts/helm/helmcharts/openreplay/charts/http/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/http/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/integrations/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/integrations/Chart.yaml index 48fffed45..a643daa69 100644 --- a/scripts/helm/helmcharts/openreplay/charts/integrations/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/integrations/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/nginx-ingress/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/nginx-ingress/Chart.yaml index 0019ec4f2..3c824500e 100644 --- a/scripts/helm/helmcharts/openreplay/charts/nginx-ingress/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/nginx-ingress/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/sink/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/sink/Chart.yaml index ac86f8910..2b9f71d56 100644 --- a/scripts/helm/helmcharts/openreplay/charts/sink/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/sink/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/storage/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/storage/Chart.yaml index 3d122333f..329af9ad0 100644 --- a/scripts/helm/helmcharts/openreplay/charts/storage/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/storage/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/openreplay/charts/utilities/Chart.yaml b/scripts/helm/helmcharts/openreplay/charts/utilities/Chart.yaml index 062a1ea73..4c00e90b2 100644 --- a/scripts/helm/helmcharts/openreplay/charts/utilities/Chart.yaml +++ b/scripts/helm/helmcharts/openreplay/charts/utilities/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v1.3.6" +AppVersion: "v1.4.0" diff --git a/scripts/helm/helmcharts/vars.yaml b/scripts/helm/helmcharts/vars.yaml index f15033aa3..47ec01afe 100644 --- a/scripts/helm/helmcharts/vars.yaml +++ b/scripts/helm/helmcharts/vars.yaml @@ -1,4 +1,4 @@ -fromVersion: "v1.3.6" +fromVersion: "v1.4.0" # Databases specific variables postgresql: &postgres # For genrating psswords diff --git a/scripts/helm/helmcharts/versionUpdater.sh b/scripts/helm/helmcharts/versionUpdater.sh new file mode 100644 index 000000000..5fc8230a2 --- /dev/null +++ b/scripts/helm/helmcharts/versionUpdater.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# This script will update the version of openreplay components. +currentVersion=$1 +[[ -z $currentVersion ]] && { + echo "Usage: $0 " + echo "eg: $0 v1.5.0" +} +find ./openreplay -type f -iname chart.yaml -exec sed -i "s/AppVersion.*/AppVersion: \"$currentVersion\"/g" {} \; +sed -i "s/fromVersion.*/fromVersion: \"$currentVersion\"/g" vars.yaml +sed -i "s/version.*/version=\"$currentVersion\"/g" init.sh