Since we choose to run the chart-testing/ct container, as a non privileged user, we rewrite Helm's repository-config and repository-cache directories, to a non root owned directory.
This fixes errors such as:
Error: Error installing charts: Error adding repo: incubator=https://charts.helm.sh/incubator: Error waiting for process: exit status 1
Error installing charts: Error adding repo: incubator=https://charts.helm.sh/incubator: Error waiting for process: exit status 1
Summary
Since we choose to run the
chart-testing/ct
container, as a non privileged user, we rewrite Helm's repository-config and repository-cache directories, to a non root owned directory.This fixes errors such as:
https://github.com/mattermost/mattermost-helm/pull/370#issuecomment-1274400372
We also fix, a problem exposing kind's
kubeconfig
to the CT container, and anentrypoint
typo argument.Ticket Link
Ticket: https://mattermost.atlassian.net/browse/CLD-4282