Updating plugins/kustomized-helm example (#156)
Updating the `helm template` command with a more complete example. This command more resembles the helm command that is executed by the built-in helm tooling. Signed-off-by: John Win <jpaulodit@hotmail.com>
This commit is contained in:
1 parent
ce918f91b3
commit
ba44faf0a7
1 file changed
+6
-2
@@ -14,10 +14,14 @@ Use following steps to try the application:
|
|||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args: ["helm dependency build"]
|
args: ["helm dependency build"]
|
||||||
generate:
|
generate:
|
||||||
command: [sh, -c]
|
command: ["/bin/sh", "-c"]
|
||||||
args: ["helm template --release-name release-name . > all.yaml && kustomize build"]
|
args: ["helm template . --name-template $ARGOCD_APP_NAME --namespace $ARGOCD_APP_NAMESPACE --kube-version $KUBE_VERSION > all.yaml && kustomize build"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- `$ARGOCD_APP_NAME`, `$ARGOCD_APP_NAMESPACE` and `$KUBE_VERSION` are environment variables that exists in the context of the plugin.
|
||||||
|
- setting `--kube-version` is important as helm template can mock up data which may not match the actual cluster version.
|
||||||
|
|
||||||
* create application using `kustomized-helm` as a config management plugin name:
|
* create application using `kustomized-helm` as a config management plugin name:
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user