Skip to content

Commit

Permalink
Merge pull request #17 from barreiro/master
Browse files Browse the repository at this point in the history
Add service-ca to java system cacerts
  • Loading branch information
johnaohara authored Sep 4, 2023
2 parents 873361a + 82e930b commit 0953047
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func appPod(cr *hyperfoilv1alpha1.Horreum, keycloakPublicUrl, grafanaPublicUrl,
mounts = append(mounts, corev1.VolumeMount{
Name: "certs",
MountPath: "/opt/certs",
}, corev1.VolumeMount{
Name: "service-ca",
MountPath: "/etc/ssl/certs/service-ca.crt",
SubPath: "service-ca.crt",
})
horreumEnv = append(horreumEnv, corev1.EnvVar{
Name: "QUARKUS_HTTP_SSL_CERTIFICATE_FILE",
Expand Down Expand Up @@ -190,6 +194,7 @@ func appPod(cr *hyperfoilv1alpha1.Horreum, keycloakPublicUrl, grafanaPublicUrl,
Image: appImage(cr),
Command: []string{
"sh", "-c", `
keytool -noprompt -import -alias service-ca -file /etc/ssl/certs/service-ca.crt -cacerts -storepass changeit
export QUARKUS_OIDC_CREDENTIALS_SECRET=$$(cat /etc/horreum/imports/clientsecret)
/deployments/horreum.sh
`,
Expand Down

0 comments on commit 0953047

Please sign in to comment.