File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,34 @@ k14s_ytt data source provides ability to template with ytt.
17
17
18
18
### Example
19
19
20
+ Use ` values ` for string values and ` values_yaml ` for non-string values.
21
+
20
22
``` yaml
21
23
data "k14s_ytt" "tpl1" {
22
24
files = ["ytt-k8s"]
23
- values_yaml = <<EOF
24
- # @data/values
25
- ---
26
- cm1 : " cm1"
27
- cm2 : " cm3"
28
- EOF
25
+
26
+ values = {
27
+ prop1 = "val1"
28
+ }
29
+
30
+ values_yaml = {
31
+ prop2 = true
32
+ prop3 = 156
33
+ }
29
34
}
30
35
31
36
output "result" {
32
37
value = "${data.k14s_ytt.tpl1.result}"
33
38
}
34
39
```
35
40
41
+ Use ` config_yaml ` to provide more complex data values
42
+
36
43
``` yaml
37
44
data "k14s_ytt" "tpl1" {
38
45
files = ["ytt-k8s"]
39
46
40
- values_yaml = <<EOF
47
+ config_yaml = <<EOF
41
48
# @data/values
42
49
---
43
50
cm1 : " cm1"
You can’t perform that action at this time.
0 commit comments