-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate Values.lenses.jvm.trustStoreFileData/Values.lenses.jvm.trus…
…tStorePassword in favor of Values.lenses.opts.trustStoreFileData/Values.lenses.opts.trustStorePassword [OPS-1921]
- Loading branch information
1 parent
c146bce
commit f096caf
Showing
7 changed files
with
74 additions
and
61 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
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
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 was deleted.
Oops, something went wrong.
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,54 @@ | ||
suite: with opts truststore set | ||
templates: | ||
- deployment.yaml | ||
- secrets.yaml | ||
tests: | ||
- it: should fail with trustStoreFileData and without trustStorePassword | ||
set: | ||
lenses: | ||
opts: | ||
trustStoreFileData: bGFsYQ== | ||
asserts: | ||
- template: secrets.yaml | ||
failedTemplate: | ||
errorMessage: When you set trustStoreFileData, you also need to set trustStorePassword | ||
- it: should pass with trustStoreFileData and trustStorePassword | ||
set: | ||
lenses: | ||
opts: | ||
trustStoreFileData: bGFsYQ== | ||
trustStorePassword: 123 | ||
asserts: | ||
- template: deployment.yaml | ||
contains: | ||
path: spec.template.spec.volumes[0].secret.items | ||
content: | ||
key: lenses.opts.truststore.jks | ||
path: lenses.opts.truststore.jks | ||
- template: secrets.yaml | ||
equal: | ||
path: data.lenses\.opts\.truststore\.jks | ||
value: bGFsYQ== | ||
- template: secrets.yaml | ||
equal: | ||
path: stringData.lenses\.opts\.truststore\.password | ||
value: "123" | ||
|
||
- it: should fail with JVM trustStoreFileData | ||
set: | ||
lenses: | ||
jvm: | ||
trustStoreFileData: bGFsYQ== | ||
asserts: | ||
- template: secrets.yaml | ||
failedTemplate: | ||
errorMessage: .Values.lenses.jvm.trustStoreFileData is deprecated in favor of Values.lenses.opts.trustStoreFileData, please use the latter. | ||
- it: should fail with JVM trustStorePassword | ||
set: | ||
lenses: | ||
jvm: | ||
trustStorePassword: foobar | ||
asserts: | ||
- template: secrets.yaml | ||
failedTemplate: | ||
errorMessage: .Values.lenses.jvm.trustStorePassword is deprecated in favor of Values.lenses.opts.trustStorePassword, please use the latter. |
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