Skip to content

Commit 962e425

Browse files
fixed
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 08b3738 commit 962e425

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

issue-494/templates/secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ metadata:
55
name: foo
66
data:
77
greeting: 'aGVsbG8K'
8+
greetingBase64: {{ .Values.greeting | b64enc | quote }}
89

issue-494/tests/secret_test.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@ templates:
33
- secret.yaml
44
tests:
55
- it: should be "hello"
6+
set:
7+
greeting: hello
68
asserts:
79
- equal:
810
path: data.greeting
11+
value: aGVsbG8K
12+
# decodeBase64: true
13+
# value: 'aGVsbG8K'
14+
- equal:
15+
path: data.greetingBase64
16+
value: aGVsbG8=
17+
- equal:
18+
path: data.greetingBase64
919
value: hello
1020
decodeBase64: true
11-
# value: 'aGVsbG8K'

0 commit comments

Comments
 (0)