Skip to content

Commit

Permalink
Adding a helm with git example. (#1596)
Browse files Browse the repository at this point in the history
## Description

This adds an example to pull in a Helm chart from a git repository.

## Related Issue

N/A

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: Wayne Starr <[email protected]>
  • Loading branch information
dgershman and Racer159 committed Apr 21, 2023
1 parent 583a3dd commit 7ea66c9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/helm-git-chart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Helm Git Chart
This example shows how you can specify a Git repository chart for a helm source within a component's `charts`.

:::info

To view the example source code, select the `Edit this page` link below the article and select the parent folder.

:::

``` yaml
components:
- name: component-name
charts:
- name: chart-name
url: url-to-git-repo.git
gitPath: path/to/chart/in/repo
```
15 changes: 15 additions & 0 deletions examples/helm-git-chart/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
kind: ZarfPackageConfig
metadata:
name: test-helm-git-chart
description: "Deploys a helm chart from git"
components:
- name: demo-helm-git-chart
required: true
charts:
- name: podinfo
url: https://github.com/stefanprodan/podinfo.git
gitPath: charts/podinfo
namespace: podinfo-from-git
version: 6.3.5
images:
- "ghcr.io/stefanprodan/podinfo:6.3.5"

0 comments on commit 7ea66c9

Please sign in to comment.