Skip to content

Commit

Permalink
mount only TLS certs, not key
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 21, 2025
1 parent bfe99e4 commit 699743e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,16 @@ func NewPodForCR(cr *model.CryostatInstance, specs *ServiceSpecs, imageTags *Ima
Secret: &corev1.SecretVolumeSource{
SecretName: tls.DatabaseSecret,
DefaultMode: &readOnlyMode,
Items: []corev1.KeyToPath{
{
Key: "tls.crt",
Path: "tls.crt",
},
{
Key: "ca.crt",
Path: "ca.crt",
},
},
},
},
}
Expand Down
10 changes: 10 additions & 0 deletions internal/test/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -2998,6 +2998,16 @@ func (r *TestResources) newVolumes(certProjections []corev1.VolumeProjection) []
Secret: &corev1.SecretVolumeSource{
SecretName: r.Name + "-database-tls",
DefaultMode: &readOnlymode,
Items: []corev1.KeyToPath{
{
Key: "tls.crt",
Path: "tls.crt",
},
{
Key: "ca.crt",
Path: "ca.crt",
},
},
},
},
},
Expand Down

0 comments on commit 699743e

Please sign in to comment.