Skip to content

Commit

Permalink
(ESPSTUDIO-8126) Update grafana version and make it an enc car that c…
Browse files Browse the repository at this point in the history
…an be set

Change-Id: Id8e5dcab89b27ce5ea95da99b1d70cc8bab4e76e
  • Loading branch information
mtlljm committed Nov 8, 2023
1 parent 7e1f872 commit 290af9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions install/configure-grafana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export ESP_PLUGIN_SOURCE

DRY_RUN="${DRY_RUN:-false}"
INSTALL_GRAFANA="${INSTALL_GRAFANA:-false}"
GRAFANA_VERSION="${GRAFANA_VERSION:-'9.5.13'}"

# Fetch access token to perform admin tasks:
function fetch_uaa_admin_token() {
Expand Down Expand Up @@ -104,6 +105,7 @@ find ./manifests/ -type f -name "*.yaml" -exec perl -pi -e 's/\QTEMPLATE_ESP_DOM
find ./manifests/ -type f -name "*.yaml" -exec perl -pi -e 's/\QTEMPLATE_OAUTH_CLIENT_ID/$ENV{"OAUTH_CLIENT_ID"}/g' '{}' +
find ./manifests/ -type f -name "*.yaml" -exec perl -pi -e 's/\QTEMPLATE_OAUTH_CLIENT_SECRET/$ENV{"OAUTH_CLIENT_SECRET"}/g' '{}' +
find ./manifests/ -type f -name "*.yaml" -exec perl -pi -e 's/\QTEMPLATE_ESP_PLUGIN_SOURCE/$ENV{"ESP_PLUGIN_SOURCE"}/g' '{}' +
find ./manifests/ -type f -name "*.yaml" -exec perl -pi -e 's/\QTEMPLATE_GRAFANA_VERSION/$ENV{"GRAFANA_VERSION"}/g' '{}' +

if [[ "${DRY_RUN}" == true ]]; then
echo "Dry run specified. Printing manifests to be applied:"
Expand Down
2 changes: 1 addition & 1 deletion install/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- 0
containers:
- name: grafana
image: docker.io/grafana/grafana:9.4.7
image: docker.io/grafana/grafana:TEMPLATE_GRAFANA_VERSION
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
Expand Down

0 comments on commit 290af9e

Please sign in to comment.