-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow stringData and encoded values on secrets
- Loading branch information
1 parent
9061a5c
commit b456e4b
Showing
4 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ type: application | |
|
||
# Helm chart Version | ||
|
||
version: 2.2.11 | ||
version: 2.3.0 | ||
|
||
|
||
keywords: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
suite: Secret | ||
|
||
templates: | ||
- secret.yaml | ||
|
||
tests: | ||
- it: include stringData and data if they are set | ||
set: | ||
secret: | ||
enabled: enable | ||
files: | ||
test: | ||
stringData: | ||
testStringData: testValue | ||
data: | ||
testNoEncodedData: testValue | ||
encodedData: | ||
testEncodedData: dGVzdFZhbHVl | ||
asserts: | ||
- equal: | ||
path: stringData.testStringData | ||
value: testValue | ||
- equal: | ||
path: data.testEncodedData | ||
value: dGVzdFZhbHVl | ||
- equal: | ||
path: data.testNoEncodedData | ||
value: dGVzdFZhbHVl | ||
|
||
- it: include stringData if it is set | ||
set: | ||
secret: | ||
enabled: enable | ||
files: | ||
test: | ||
stringData: | ||
testStringData: testValue | ||
asserts: | ||
- equal: | ||
path: stringData.testStringData | ||
value: testValue | ||
|
||
- it: include data if it is set | ||
set: | ||
secret: | ||
enabled: enable | ||
files: | ||
test: | ||
data: | ||
testNoEncodedData: testValue | ||
asserts: | ||
- equal: | ||
path: data.testNoEncodedData | ||
value: dGVzdFZhbHVl | ||
|
||
|
||
|
||
- it: include encoded data if it is set | ||
set: | ||
secret: | ||
enabled: enable | ||
files: | ||
test: | ||
encodedData: | ||
testEncodedData: dGVzdFZhbHVl | ||
asserts: | ||
- equal: | ||
path: data.testEncodedData | ||
value: dGVzdFZhbHVl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters