Skip to content

Commit

Permalink
docs: add docs for template values
Browse files Browse the repository at this point in the history
  • Loading branch information
rajiteh committed Dec 1, 2022
1 parent 4a42b65 commit bb3f651
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/gitrepo-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ helm:
# The variable's value will be an empty string if the referenced cluster label does not
# exist on the targeted cluster
variableName: global.fleet.clusterLabels.LABELNAME
# It is possible to specify the keys and values as gotpl strings for advanced templating needs.
# Most of the functions from sprig templating library is available.
# The template context has following keys.
# `.ClusterValues` are retrieved from target cluster's `spec.templateValues`
# `.ClusterLabels` and `.ClusterAnnotations` are the labels and annoations in the cluster resource.
# `.ClusterName` as the fleet's cluster resource name.
# `.ClusterNamespace` as the namespace which the cluster resource exists.
templatedLabel: "{{ .ClusterLabels.LABELNAME }}-foo"
valueFromEnv:
"{{ .ClusterLabels.ENV }}": "{{ .Values.someValue | upper }}"
# Path to any values files that need to be passed to helm during install
valuesFiles:
- values1.yaml
Expand All @@ -114,6 +124,8 @@ helm:
force: false
# Set the Helm --atomic flag when upgrading
atomic: false
# Disable go template pre-processing on the fleet values
disablePreProcess: false

# A paused bundle will not update downstream clusters but instead mark the bundle
# as OutOfSync. One can then manually confirm that a bundle should be deployed to
Expand Down

0 comments on commit bb3f651

Please sign in to comment.