@@ -4,10 +4,10 @@ relied on as the only solution. When using generated values it is always going
4
4
to be good practice to allow them to be overridden through the data input
5
5
values when running `` ytt `` .
6
6
7
- For how this can be done check out `` resources-v4/secret-3 .yaml `` .
7
+ For how this can be done check out `` resources-v4/secret-3a .yaml `` .
8
8
9
9
``` editor:open-file
10
- file: ~/exercises/resources-v4/secret-3 .yaml
10
+ file: ~/exercises/resources-v4/secret-3a .yaml
11
11
```
12
12
13
13
You can see how it will check for the password being defined as a data input
@@ -16,7 +16,7 @@ value and if it is use that, but otherwise generate a password.
16
16
Running `` ytt `` on this:
17
17
18
18
``` terminal:execute
19
- command: ytt -f resources-v4/random.star -f resources-v4/secret-3 .yaml -f resources-v4/values.yaml
19
+ command: ytt -f resources-v4/random.star -f resources-v4/secret-3a .yaml -f resources-v4/values.yaml
20
20
```
21
21
22
22
we get:
@@ -35,7 +35,7 @@ stringData:
35
35
Now override the password using a data input value:
36
36
37
37
``` terminal:execute
38
- command: ytt -f resources-v4/random.star -f resources-v4/secret-3 .yaml -f resources-v4/values.yaml -v password1=top-secret
38
+ command: ytt -f resources-v4/random.star -f resources-v4/secret-3a .yaml -f resources-v4/values.yaml -v password1=top-secret
39
39
```
40
40
41
41
which should yield:
@@ -64,16 +64,16 @@ To remedy this problem we need to ensure that we still always generate
64
64
every password and only after we do this override it with a supplied value.
65
65
This ensures everything else stays the same.
66
66
67
- This version can been see in `` resources-v4/secret-4 .yaml `` .
67
+ This version can been see in `` resources-v4/secret-3b .yaml `` .
68
68
69
69
``` editor:open-file
70
- file: ~/exercises/resources-v4/secret-4 .yaml
70
+ file: ~/exercises/resources-v4/secret-3b .yaml
71
71
```
72
72
73
73
Processing this with `` ytt `` :
74
74
75
75
``` terminal:execute
76
- command: ytt -f resources-v4/random.star -f resources-v4/secret-4 .yaml -f resources-v4/values.yaml
76
+ command: ytt -f resources-v4/random.star -f resources-v4/secret-3b .yaml -f resources-v4/values.yaml
77
77
```
78
78
79
79
we get:
@@ -92,7 +92,7 @@ stringData:
92
92
which is the same as we had for the prior version, but overriding the password:
93
93
94
94
``` terminal:execute
95
- command: ytt -f resources-v4/random.star -f resources-v4/secret-4 .yaml -f resources-v4/values.yaml -v password1=top-secret
95
+ command: ytt -f resources-v4/random.star -f resources-v4/secret-3b .yaml -f resources-v4/values.yaml -v password1=top-secret
96
96
```
97
97
98
98
now yields:
0 commit comments