Skip to content

Commit 21e5990

Browse files
authored
Merge pull request #331 from KnVerey/helm-fields
Update docs to reflect helmCharts/helmGlobals split from long ago
2 parents 3ca7eb0 + 8eb7862 commit 21e5990

File tree

1 file changed

+38
-19
lines changed
  • site/content/en/references/kustomize/builtins

1 file changed

+38
-19
lines changed

site/content/en/references/kustomize/builtins/_index.md

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ secretGenerator:
731731
732732
### Usage via `kustomization.yaml`
733733
734-
#### field name: `helmChartInflationGenerator`
734+
#### field name: `helmCharts`
735735
736736
Each entry in the argument list results in the pulling
737737
and rendering of a helm chart.
@@ -742,7 +742,6 @@ Each entry can have following fields:
742742
- `repo`: [Optional] The URL of the repository which contains the chart. If
743743
this is provided, the generator will try to fetch remote charts. Otherwise it will
744744
try to load local chart in `chartHome`.
745-
- `chartHome`: [Optional] Provide the path to the parent directory for local chart.
746745
- `version`: [Optional] Version of the chart. Will use latest version
747746
if this is omitted.
748747
- `releaseName`: [Optional] The release name that will be set in the chart.
@@ -754,9 +753,6 @@ Each entry can have following fields:
754753
Legal values: 'merge', 'override', 'replace'. Defaults to 'override'.
755754
- `includeCRDs`: specifies if Helm should also generate CustomResourceDefinitions.
756755
Defaults to 'false'.
757-
- `configHome`: [Optional] The value that kustomize should pass to helm via
758-
`HELM_CONFIG_HOME` environment variable.
759-
If omitted, `{tmpDir}/helm` is used, where `{tmpDir}` is some temporary.
760756
- `skipHooks`: [Optional] Skips running hooks when inflating the chart. By
761757
default the inflation process used by Kustomize will render all the contents
762758
of the templates directory, which can result in output different than what
@@ -767,8 +763,8 @@ Each entry can have following fields:
767763
- `apiVersions`: [Optional] the kubernetes apiversions used for Capabilities.APIVersions
768764
- `nameTemplate`: [Optional] specifies the name template used to name the release
769765
770-
```
771-
helmChartInflationGenerator:
766+
```yaml
767+
helmCharts:
772768
- name: minecraft
773769
repo: https://kubernetes-charts.storage.googleapis.com
774770
version: v1.2.0
@@ -780,31 +776,54 @@ helmChartInflationGenerator:
780776
- values-file-2.yml
781777
```
782778
779+
#### field name: `helmGlobals`
780+
781+
Stores settings affecting all entries in the related `helmCharts` field:
782+
- `chartHome`: a file path, relative to the kustomization root, to a directory containing a subdirectory for each chart to be included in the kustomization. The default value of this field is "charts". So, for example, kustomize looks for the minecraft chart at `{kustomizationRoot}/{ChartHome}/minecraft`. If the chart is there at build time, kustomize will use it as found, and not check version numbers or dates. If the chart is not there, kustomize will attempt to pull it using the version number specified in the kustomization file, and put it there. To suppress the pull attempt, simply assure that the chart is already there.
783+
- `configHome`: a value that kustomize should pass to helm via the `HELM_CONFIG_HOME`environment variable. kustomize doesn't attempt to read or write this directory. If omitted, `{tmpDir}/helm` is used, where `{tmpDir}` is some temporary directory created by kustomize for the benefit of helm.
784+
785+
```yaml
786+
helmGlobals:
787+
chartHome: my-charts-dir
788+
```
789+
790+
783791
### Usage via `generators` field
784792
785793
#### Arguments
786-
794+
>
795+
> additionalValuesFiles []string
796+
>
797+
> apiVersions []string
798+
>
799+
> chartHome string
800+
>
801+
> configHome string
802+
>
803+
> includeCRDs bool
804+
>
787805
> name string
788806
>
789-
> version string
807+
> namespace string
790808
>
791-
> repo string
809+
> nameTemplate string
792810
>
793811
> releaseName string
794812
>
795-
> namespace string
813+
> repo string
814+
>
815+
> skipHooks bool
796816
>
797817
> valuesFile string
798-
>
818+
>
799819
> valuesInline map[string]interface{}
800-
>
820+
>
801821
> valuesMerge string
802-
>
803-
> includeCRDs bool
804-
>
805-
> configHome: string
806-
807-
822+
>
823+
> version string
824+
>
825+
> skipTests bool
826+
>
808827
809828
810829
#### Example

0 commit comments

Comments
 (0)