update chart examples

This commit is contained in:
Donny Xia
2020-11-02 11:03:31 -08:00
parent e75d4fc87d
commit d2c7db6ca0

View File

@@ -253,13 +253,17 @@ rm -r $DEMO_HOME
## How to migrate from old plugin to builtin plugin ## How to migrate from old plugin to builtin plugin
Before, we have [chartinflator](https://github.com/kubernetes-sigs/kustomize/tree/master/plugin/someteam.example.com/v1/chartinflator) [bash-based helm chart inflator]: https://github.com/kubernetes-sigs/kustomize/tree/master/plugin/someteam.example.com/v1/chartinflator
plugin which servers as an external plugin. Although you can continue [go-based builtin helm chart inflator]: https://github.com/kubernetes-sigs/kustomize/tree/master/plugin/builtin/helmchartinflationgenerator
using it but we recommend to migrate to builtin one if you are using
Helm V3. For Helm V2 user, we haven't implemented V2 support in builtin
plugin.
What you need to do for your generator config file: The [bash-based helm chart inflator] is intended as an example of using bash
to write a generator plugin.
- Change the `apiVersion` to `builtin`. It proved to be popular for inflating helm charts,
- Change the `kind` to `HelmChartInflationGenerator` so there's now a [go-based builtin helm chart inflator].
This newer generator is supported as part of the core code, so anyone using the
old bash-based example plugin would probably benefit from switching to the
newer built-in plugin.
Be advised that at the time of writing, the built-in plugin only supports helm v3.