You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/content/en/docs/generators/kustomize.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ This generator allows to generate the manifests of the component's resources fro
11
11
As a special case, one or more simple Kubernetes manifests (without a `kustomization.yaml`) are supported as well.
12
12
In addition, all (or selected; see below) files in the kustomization directory can be templatized in a helm'ish way.
13
13
That means, they will be considered as a common template group (where all templates are associated with each other),
14
-
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, parameterless functions `namespace` and `name` are defined, which return the corresponding arguments passed to `Generate()`.
14
+
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:
15
+
- 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.
15
17
16
18
In the generation step, first, all the go templates will be rendered, and the result of this pre-step will be passed to kustomize.
0 commit comments