Skip to main content

Step 3: Package the Helm Chart

Next, add the Replicated SDK as a dependency of the Helm chart and then package the chart into a .tgz archive. The purpose of this step is to prepare the Helm chart to be added to a release.

To add the Replicated SDK and package the Helm chart:

  1. In your local file system, go to the grafana directory that was created as part of Step 1: Get the Sample Chart and Test.

  2. In the Chart.yaml file, add the Replicated SDK as a dependency:

    # Chart.yaml
    dependencies:
    - name: replicated
    repository: oci://registry.replicated.com/library
    version: 1.0.0-beta.32

    For the latest version information for the Replicated SDK, see the replicated-sdk repository in GitHub.

  3. Update dependencies and package the Helm chart to a .tgz chart archive:

    helm package . --dependency-update
    note

    If you see a 401 Unauthorized error message, log out of the Replicated registry by running helm registry logout registry.replicated.com and then run helm package . --dependency-update again.

Next Step

Create a release using the Helm chart archive. See Step 4: Add the Chart Archive to a Release.