Skip to content

Commit

Permalink
Update documentation to use graphing.grafana.baseImage (#306)
Browse files Browse the repository at this point in the history
* Update documentation to use graphing.grafana.baseImage

Update the documentation to use the built in baseImage configuration
within the graphing parameter of the ServiceTelemetry object instead of
patching the Grafana object directly.

Resolves: STF-597
Signed-off-by: Leif Madsen <[email protected]>

* Update doc-Service-Telemetry-Framework/modules/proc_setting-up-grafana-to-host-the-dashboard.adoc

Co-authored-by: JoanneOFlynn2018 <[email protected]>

Cherry picked from commit 987784a
  • Loading branch information
leifmadsen committed Oct 5, 2021
1 parent 36c6cb1 commit b634c5b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ $ oc get pod -l "app=grafana" -ojsonpath='{.items[0].spec.containers[0].image}'
docker.io/grafana/grafana:7.3.10
----

. If the running image is older than 8.1.0, patch the Grafana object to update the image:
. If the running image is older than 8.1.0, patch the ServiceTelemetry object to update the image:
+
[source,bash,options="nowrap"]
----
$ oc patch grafana/default --type merge -p '{"spec":{"baseImage":"docker.io/grafana/grafana:8.1.0"}}'
$ oc patch stf/default --type merge -p '{"spec":{"graphing":{"grafana":{"baseImage":"docker.io/grafana/grafana:8.1.5"}}}}'
----
+
The Grafana deployment restarts.
Service Telemetry Operator updates the Grafana manifest, resulting in the Grafana deployment restarting.

. Verify that a new Grafana pod exists and has a `STATUS` value of `Running`:
+
Expand Down

0 comments on commit b634c5b

Please sign in to comment.