Private GitHub repo¶
Project structure
.
├── README.md
├── helmwave.yml
└── helmwave.yml.tpl
Suppose the helmwave.yml.tpl
looks like
helmwave.yml.tpl
project: "Example: private github repo"
version: "0.41.1"
repositories:
- name: your-private-git-repo-hosted-charts
url: https://{{ requiredEnv "GITHUB_TOKEN"}}@raw.githubusercontent.com/foo/bar/main/
.options: &options
namespace: {{ requiredEnv "NS" }}
create_namespace: true
wait: true
releases:
- name: hello
chart:
name: foo/bar
<<: *options
This command will render helmwave.yml.tpl
to helmwave.yml
$ export NS=stage
$ export GITHUB_TOKEN=my-secret-token
$ helmwave yml
[🙃 aka INFO]: 📄 YML is ready!
build plan with next command: helmwave build -f helmwave.yml
Once applied, your helmwave.yml
will look like
helmwave.yml
repositories:
- name: your-private-git-repo-hosted-charts
url: https://my-secret-token@raw.githubusercontent.com/foo/bar/main/
.options: &options
namespace: ips
create_namespace: true
wait: true
releases:
- name: hello
chart: foo/bar
<<: *options