File tree 2 files changed +49
-0
lines changed
scalability_and_performance/cluster-compare
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Module included in the following assemblies:
2
+
3
+ // *scalability_and_performance/cluster-compare/creating-a-reference-configuration.adoc
4
+
5
+ :_mod-docs-content-type: REFERENCE
6
+
7
+ [id="cluster-compare-templating-reference_{context}"]
8
+ = Reference template functions
9
+
10
+ The `cluster-compare` plugin supports all `sprig` library functions, except for the `env` and `expandenv` functions.
11
+ See _Additional resources_ for the list of `sprig` library functions.
12
+
13
+ The following content describes the additional template functions for the `cluster-compare` plugin.
14
+
15
+ .Additional cluster-compare template functions
16
+ [options="header"]
17
+ [cols="2a,3a"]
18
+ |====
19
+ | Function | Description
20
+
21
+ |`fromJson`
22
+ |Parses the incoming string as a structured JSON object.
23
+
24
+ |`fromJsonArray`
25
+ |Parses the incoming string as a structured JSON array.
26
+
27
+ |`fromYaml`
28
+ |Parses the incoming string as a structured YAML object.
29
+
30
+ |`fromYamlArray`
31
+ |Parses the incoming string as a structured YAML array.
32
+
33
+ |`toJson`
34
+ |Renders incoming data as JSON while preserving object types.
35
+
36
+ |`toToml`
37
+ |Parses the incoming string as structured TOML data.
38
+
39
+ |`toYaml`
40
+ |Renders incoming data as YAML while preserving object types.
41
+
42
+ |====
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ include::modules/cluster-compare-template-groupings.adoc[leveloffset=+1]
14
14
15
15
include::modules/cluster-compare-templating.adoc[leveloffset=+1]
16
16
17
+ include::modules/cluster-compare-templating-reference.adoc[leveloffset=+2]
18
+
19
+ [role="_additional-resources"]
20
+ .Additional resources
21
+
22
+ * link:https://masterminds.github.io/sprig/[Sprig Function Documentation]
23
+
17
24
include::modules/cluster-compare-exclude-metadata.adoc[leveloffset=+1]
18
25
19
26
include::modules/cluster-compare-configure-inline-diff.adoc[leveloffset=+1]
You can’t perform that action at this time.
0 commit comments