OSH plugin for Helm
Go to file
Vladimir Kozhukalov 611f0cefdc Add subchart cli argument
This is necessary for the umbrella chart
which contains overrides for multiple subcharts.

Change-Id: Ic36c807b12abfb3147912ecee1626c54e781ef73
2024-04-18 17:26:06 -05:00
playbooks Initial commit 2024-04-17 13:44:44 -05:00
zuul.d Initial commit 2024-04-17 13:44:44 -05:00
.gitignore Initial commit 2024-04-17 13:44:44 -05:00
.gitreview Added .gitreview 2024-04-17 12:42:06 +00:00
.golangci.yaml Initial commit 2024-04-17 13:44:44 -05:00
get-values-overrides Add subchart cli argument 2024-04-18 17:26:06 -05:00
go.mod Initial commit 2024-04-17 13:44:44 -05:00
go.sum Initial commit 2024-04-17 13:44:44 -05:00
LICENSE Initial commit 2024-04-17 13:44:44 -05:00
main.go Add subchart cli argument 2024-04-18 17:26:06 -05:00
Makefile Initial commit 2024-04-17 13:44:44 -05:00
osh.sh Initial commit 2024-04-17 13:44:44 -05:00
plugin.yaml Initial commit 2024-04-17 13:44:44 -05:00
README.md Initial commit 2024-04-17 13:44:44 -05:00
wait-for-pods.sh Initial commit 2024-04-17 13:44:44 -05:00

Install

helm plugin install https://github.com/kubepro/helm-plugin-osh.git

Uninstall

helm plugin uninstall osh

Usage

get-values-overrides

helm osh get-values-overrides [-d/--download] [-p/--path <lookup_path>] [-u/--url <base_url>] <chart> <feature-1> <feature-2> ...
  • -d/--download download overrides if not found locally in the path
  • -u/--url <base_url> the base url from where the plugin tries to download overrides. The resulting url is <base_url>/<chart>/values_overrides/<override_candidate>
  • -p/--path <lookup_path> the path where the plugin tries to find override files and puts downloaded override files. The resulting path is <lookup_path>/<chart>/values_overrides/<override_candidate>
  • <chart> the chart name for which the plugin tries to find overrides
  • <feature-X> features in the beginning of the list are of higher priority

If there are 3 features in the list, then the order of override candidates will be like follows:

<lookup_path>/<chart>/values_overrides/<feature-3>.yaml
<lookup_path>/<chart>/values_overrides/<feature-2>.yaml
<lookup_path>/<chart>/values_overrides/<feature-2>-<feature-3>.yaml
<lookup_path>/<chart>/values_overrides/<feature-1>.yaml
<lookup_path>/<chart>/values_overrides/<feature-1>-<feature-3>.yaml
<lookup_path>/<chart>/values_overrides/<feature-1>-<feature-2>.yaml
<lookup_path>/<chart>/values_overrides/<feature-1>-<feature-2>-<feature-3>.yaml

wait-for-pods

KUBECONFIG must be set properly.

helm osh wait-for-pods <namespace> [timeout]