Skip to content

How to upgrade the Grafana Package chart📜

Grafana is a modified/customized version of an upstream chart. The below details the steps required to update to a new version of the Grafana package.

  1. Navigate to the upstream chart repo and folder and find the tag (e.g., grafana-x.x.x) that corresponds with the new chart version for this update.

  2. From the root of the repo run kpt pkg update chart@<tag> --strategy alpha-git-patch replacing <tag> with the tag you got in step 1. You may be prompted to resolve some conflicts - choose what makes sense (if there are BB additions/changes keep them, if there are upstream additions/changes keep them).

  3. Modify the version in Chart.yaml - you will want to append -bb.0 to the chart version from upstream.

  4. Update adding an entry for the new version and noting all changes (at minimum should include Updated Grafana chart to x.x.x and Updated image versions to latest in IB (grafana: x.x.x, etc).

  5. Generate the updates by following the guide in gluon.

  6. Push up your changes, validate that CI passes. If there are any failures follow the information in the pipeline to make the necessary updates and reach out to the team if needed.

  7. Perform the steps below for manual testing. CI provides a good set of basic smoke tests but it is beneficial to run some additional checks.

Testing a new Grafana version📜

  1. TBD, per Codeowners

Modifications made to upstream chart📜

The following section is added to the grafana.ini section of values.yaml

    enabled: false
    client_id: grafana    #this is a sample client_id, review docs/
    client_secret: secret #this is a sample secret, review docs/
    scopes: Grafana       #this is a sample client scope, review docs/
    allow_sign_up: true
    role_attribute_path: Viewer
    # tls_skip_verify_insecure: false
    # tls_client_cert: ""
    # tls_client_key: ""
    # tls_client_ca : /etc/oidc/ca.pem
    # allowed_domains:
    # empty_scopes: false
    path: /var/lib/bb-plugins/piechart-panel
    path: /var/lib/bb-plugins/polystat-panel
    path: /var/lib/bb-plugins/redis-datasource

Last update: 2023-11-14 by Ryan Garcia