Skip to content

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.36.3"

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