-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to initializer for truststore only deployments (#2)
Previous fix wasn't complete as I forgot to update the initializer pod. I am also fixing the VKCONFIG_JVM_OPTS, which didn't have correct spacing.
- Loading branch information
spilchen
authored
Nov 21, 2023
1 parent
ca23075
commit b707618
Showing
5 changed files
with
54 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
suite: Pod tests | ||
templates: | ||
- pod.yaml | ||
tests: | ||
- it: should not include keystore volume if only truststore enabled for TLS | ||
set: | ||
tls: | ||
enabled: true | ||
trustStoreMountPath: /truststore | ||
trustStoreSecretKey: trust-store.jks | ||
trustStoreSecretName: truststore-jks | ||
launcherEnabled: true | ||
asserts: | ||
- isKind: | ||
of: Pod | ||
- contains: | ||
path: spec.containers[0].env | ||
content: | ||
name: VKCONFIG_JVM_OPTS | ||
value: "-Djavax.net.ssl.trustStore=/truststore/trust-store.jks" | ||
- contains: | ||
path: spec.volumes | ||
content: | ||
name: truststore | ||
secret: | ||
secretName: truststore-jks | ||
- notContains: | ||
path: spec.volumes | ||
any: true | ||
content: | ||
name: keystore | ||
- contains: | ||
path: spec.containers[0].volumeMounts | ||
content: | ||
name: truststore | ||
mountPath: /truststore | ||
- notContains: | ||
path: spec.containers[0].volumeMounts | ||
any: true | ||
content: | ||
name: keystore | ||
|
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