OSH plugin for Helm
Go to file
Vladimir Kozhukalov 4b4f8c3412 Initial commit
The plugin provides some convenience for end users
when they deploy Openstack using OSH charts.

There are two plugin subcommands:
- get-values-overrides - generates values
  overrides file names from a set of given feature gates.
  If these files not found then it can try to
  download them via HTTP.
- wait-for-pods - checks if all the containers of all running pods
  are ready and if all jobs are successfully completed.

Change-Id: Idae742ec7945ea367ed0c989b36576f63eb7288c
2024-04-17 13:44:44 -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 Initial commit 2024-04-17 13:44:44 -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 Initial commit 2024-04-17 13:44:44 -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]