pkalsi97 commented on code in PR #6416:
URL: https://github.com/apache/camel-k/pull/6416#discussion_r2619761923
##########
pkg/trait/jvm.go:
##########
@@ -368,3 +376,20 @@ func getLegacyCamelQuarkusDependenciesPaths() *sets.Set {
return s
}
+
+// configureCACert returns the JVM arguments for truststore configuration.
+func (t *jvmTrait) configureCaCert(e *Environment) ([]string, error) {
+ if t.CACert == "" {
+ return nil, nil
+ }
+
+ _, _, err := parseSecretRef(t.CACert)
+ if err != nil {
+ return nil, err
+ }
+
+ return []string{
+ "-Djavax.net.ssl.trustStore=" + t.getTrustStorePath(),
+ "-Djavax.net.ssl.trustStorePassword=" +
getTrustStorePassword(e.Integration.Name),
Review Comment:
Thanks, this is a good catch and I got a bit hind-sighted in the
implementation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]