instanceCertificates returns projections of Patroni's CAs, keys, and certificates to include in the instance configuration volume.
(certificates *corev1.Secret)
| 36 | // instanceCertificates returns projections of Patroni's CAs, keys, and |
| 37 | // certificates to include in the instance configuration volume. |
| 38 | func instanceCertificates(certificates *corev1.Secret) []corev1.VolumeProjection { |
| 39 | return []corev1.VolumeProjection{{ |
| 40 | Secret: &corev1.SecretProjection{ |
| 41 | LocalObjectReference: corev1.LocalObjectReference{ |
| 42 | Name: certificates.Name, |
| 43 | }, |
| 44 | Items: []corev1.KeyToPath{ |
| 45 | { |
| 46 | Key: certAuthorityFileKey, |
| 47 | Path: certAuthorityConfigPath, |
| 48 | }, |
| 49 | { |
| 50 | Key: certServerFileKey, |
| 51 | Path: certServerConfigPath, |
| 52 | }, |
| 53 | }, |
| 54 | }, |
| 55 | }} |
| 56 | } |
no outgoing calls