Ported from Garden’s documentation: garden-for/kubernetes/install-helm-chart.md, gliss-cli at
3bc62a036 (Garden 0.14). Gliss runs Garden under the hood; the notes on this page say where Gliss differs.In Gliss,
helm Deploy actions are available at level 2 only. Your IT team enables level 2 per project, and every release is checked against IT’s policy instead of the catalog. The project still uses the gliss provider: the deploy becomes a signed release request, and the cluster agent applies it. You don’t configure Garden’s kubernetes provider or a kubeconfig.kubernetes Deploy action instead. The full field list is in Garden’s helm Deploy reference.
Reference external charts
To use a chart whose sources aren’t in your project, point to the chart and provide values as inputs. Charts can come from Helm chart repositories (overhttps) or from OCI-based registries. Your IT team’s policy may restrict which sources you can use.
Example: Redis from an OCI registry
Example: Redis from a Helm repository
Reference a chart repository with therepo field, for example your organization’s own repository:
Local charts
Often you’ll keep the chart sources in your project. Add agarden.yml in the chart directory, next to Chart.yaml, and give the action a name:
Provide values to the chart
The simplest way to pass parameters to the chart is thespec.values field:
garden.yml:
some.key is "prod-value" in the prod environment, and other.key keeps the default from values.default.yaml. Values in the values field take precedence over both value files.
In Gliss, don’t put secret values in
values or value files. Secret values are set through Gliss secret requests, and your configuration refers to secrets by name only.Link container builds and Helm deploys
When acontainer Build produces an image that a helm Deploy uses, make the Build a dependency, so the image is built first, and pass its name and version to the chart:
values.yaml decides how you pass the image (this example follows the default template from helm create). If the chart uses several images, add each Build as a dependency and reference it under values.
For a complete example, see Garden’s vote-helm project.
Tests and runs
To run tests against a chart, see Tests and runs.In Gliss, Garden’s sync mode and
spec.sync don’t apply. Live code changes are Git-backed and work in Preview only, through gliss dev.