Skip to content

Private GitHub repo

Source

.
├── README.md
├── helmwave.yml
└── helmwave.yml.tpl

Suppose the helmwave.yml.tpl looks like

version: 0.17.2

repositories:
  - name: your-private-git-repo-hosted-charts
    url: https://{{ requiredEnv "GITHUB_TOKEN"}}@raw.githubusercontent.com/foo/bar/master/


.options: &options
  namespace: {{ requiredEnv "NS" }}
  createnamespace: 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

version: 0.17.2

repositories:
  - name: your-private-git-repo-hosted-charts
    url: https://my-secret-token@raw.githubusercontent.com/foo/bar/master/


.options: &options
  namespace: ips
  createnamespace: true


releases:
  - name: hello
    chart:
      name: foo/bar
    <<: *options