helm.mk

helm-lint

Synopsis: make helm-lint

Hooks: helm-pre-lint, helm-post-lint

Variables:

Variable

Description

HELM_CHARTS

<list of helm chart directories under ./charts/>

Perform lint checks on a list of Helm Charts found in the ./charts directory.

helm-helmfile-lint

Synopsis: make helm-helmfile-lint

Hooks: helm-helmfile-pre-lint, helm-helmfile-post-lint

Variables:

Variable

Description

HELM_CHARTS

<list of helm chart directories under ./charts/>

Perform lint checks on a list of Helmfiles Charts found in the ./charts directory.

helm-publish

Synopsis: make helm-publish

Hooks: helm-pre-publish, helm-post-publish

Variables:

Variable

Description

HELM_CHARTS_TO_PUBLISH

<list of helm chart directories under ./charts/>

CAR_HELM_REPOSITORY_URL

<repository URL to publish to> - defaults to https://artefact.skao.int/repository/helm-internal

For a list of Helm Charts (HELM_CHARTS_TO_PUBLISH), add SKAO metadata to the package, build the package, and publish it to the CAR_HELM_REPOSITORY_URL. This process does not update the Helm Chart version, which needs to be done independently (<chart name dir>/Chart.yaml).

helm-build

Synopsis: make helm-build

Hooks: helm-pre-build, helm-post-build

Variables:

Variable

Description

HELM_CHARTS_TO_PUBLISH

<list of helm chart directories under ./charts/ for building packages>

HELM_CHARTS_CHANNEL

<repository channel> - GitLab repository channel, defaults to dev

HELM_BUILD_PUSH_SKIP

[yes|<empty>] - Flag to skip publish to GitLab repository. Should be set when used in local builds as well to skip any dev publishing

VERSION

<semver tag of helm charts> - defaults to release key in .release file

HELM_REPOSITORY_URL

<repository URL to publish to> - defaults to https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/helm/api/${HELM_CHARTS_CHANNEL}/charts in pipeline, empty for local builds

BASE_YQ_VERSION

yq version to install - defaults to 4.14.1

BASE_YQ_INSTALL_DIR

directory for installing yq - defaults to /usr/local/bin.

For a list of Helm Charts (HELM_CHARTS_TO_PUBLISH), add SKAO metadata to the package, build the package, and publish it to the CAR_HELM_REPOSITORY_URL. This process does not update the Helm Chart version, which needs to be done independently (<chart name dir>/Chart.yaml).

helm-check-deps

Synopsis: make helm-check

Variables:

Variable

Description

HELM_CHARTS_TO_PUBLISH

<list of helm chart directories under ./charts/ for building packages>

For a list of Helm Charts (HELM_CHARTS_TO_PUBLISH), check what is the latest version of the used sub-charts

helm-convert-to-helmfile

Synopsis: make helm-convert-to-helmfile

Variables:

Variable

Description

HELM_CHARTS_TO_CONVERT

<name of charts in the charts folder to convert to helmfile>

Convert an umbrella chart into helmfile