Skip to content

Commit eb85310

Browse files
committed
update website
1 parent 6317102 commit eb85310

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

website/content/en/docs/generators/helm.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ A few differences and restrictions arise from this:
3232
- for the `.Chart` builtin, only `.Chart.Name`, `.Chart.Version`, `.Chart.Type`, `.Chart.AppVersion`, `.Chart.Dependencies` are supported
3333
- for the `.Capabilities` builtin, only `.Capabilities.KubeVersion` and `.Capabilities.APIVersions` are supported
3434
- the `.Template` builtin is fully supported
35-
- the `.Files` builtin is not supported at all.
36-
- Regarding hooks, `pre-delete` and `post-delete` hooks are not allowed; test and rollback hooks are ignored, and `pre-install`, `post-install`, `pre-upgrade`, `post-upgrade` hooks might be handled in a sligthly different way; hook weights will be handled in a compatible way; hook deletion policy `hook-failed` is not allowed, but `before-hook-creation` and `hook-succeeded` should work as expected.
35+
- the `.Files` builtin is supported but does not return any of the paths reserved by Helm (such as `Chart.yaml`, `templates/` and so on)
36+
- Regarding hooks, `pre-delete` and `post-delete` hooks are not allowed; test and rollback hooks are ignored, and `pre-install`, `post-install`, `pre-upgrade`, `post-upgrade` hooks might be handled in a sligthly different way; hook weights will be handled in a compatible way; hook deletion policy `hook-failed` is not allowed, but `before-hook-creation` and `hook-succeeded` should work as expected.
37+
- The `.helmignore` file is currently not evaluated; in particular, files can be accessed through `.Files` altough they are listed in `.helmignore`.

website/content/en/docs/generators/kustomize.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ In addition, all (or selected; see below) files in the kustomization directory c
1313
That means, they will be considered as a common template group (where all templates are associated with each other),
1414
and the same template function set that is available on Helm can be used; so, all the [sprig](http://masterminds.github.io/sprig) functions, and custom functions such as `include`, `tpl`, `lookup` can be used. In addition:
1515
- parameterless functions `namespace` and `name` are defined, which return the corresponding arguments passed to `Generate()`
16-
- a function `kubernetesVersion` is available, which returns the version information of the target cluster, as a [version.Info](https://pkg.go.dev/k8s.io/apimachinery/pkg/version#Info) structure.
16+
- a function `kubernetesVersion` is available, which returns the version information of the target cluster, as a [version.Info](https://pkg.go.dev/k8s.io/apimachinery/pkg/version#Info) structure
17+
- files from the kustomization path can be retrieved using the template function `readFile`; there are auxiliary functions `existsFile` and `listFiles`,
18+
the latter one expecting a pattern as supported by the [gobwas/glob](https://pkg.go.dev/github.com/gobwas/glob) library.
1719

1820
In the generation step, first, all the go templates will be rendered, and the result of this pre-step will be passed to kustomize.
1921

0 commit comments

Comments
 (0)