Vladimir Kozhukalov 5b1bcd99ab Improve get-values-overrides help
Change-Id: I59b763b6109ad7af63c3d5484a03773915b23493
2024-05-09 11:55:28 -05:00

52 lines
1.6 KiB
Markdown

# Install
```
helm plugin install https://opendev.org/openstack/openstack-helm-plugin.git
```
# Uninstall
```
helm plugin uninstall osh
```
# Usage
## get-values-overrides
Get Helm values overrides for a set of features.
If 3 features are passed, then the overrides will be looked
up in the following order:
```
<overrides_path>/<chart>/values_overrides/<feature-3>.yaml
<overrides_path>/<chart>/values_overrides/<feature-2>.yaml
<overrides_path>/<chart>/values_overrides/<feature-2>-<feature-3>.yaml
<overrides_path>/<chart>/values_overrides/<feature-1>.yaml
<overrides_path>/<chart>/values_overrides/<feature-1>-<feature-3>.yaml
<overrides_path>/<chart>/values_overrides/<feature-1>-<feature-2>.yaml
<overrides_path>/<chart>/values_overrides/<feature-1>-<feature-2>-<feature-3>.yaml
```
If you think of the features as bits of a binary number where <feature3> is
the least significant bit, then the order corresponds to all numbers from 001
to 111 in binary representation.
Usage:
```
get-values-overrides <feature1> <feature2> ... [flags]
```
Flags:
```
-c, --chart string Chart to get the overrides for
-d, --download Download the overrides from the internet if not found in the path (default: false)
-h, --help help for get-values-overrides
-p, --path string Path to the overrides (default "$(pwd)")
-s, --subchart string Subchart to get the overrides for
-u, --url string Base url to download overrides (default "https://opendev.org/openstack/openstack-helm/raw/branch/master")
```
## wait-for-pods
KUBECONFIG must be set properly.
```
helm osh wait-for-pods <namespace> [timeout]
```