func newTLSVolumeProjection(cr *v1alpha1.RethinkDBCluster, name string) corev1.VolumeProjection {
	return corev1.VolumeProjection{
		Secret: &corev1.SecretProjection{
			LocalObjectReference: corev1.LocalObjectReference{Name: fmt.Sprintf("%s-%s", cr.ObjectMeta.Name, name)},
			Items: []corev1.KeyToPath{
				corev1.KeyToPath{
					Key:  corev1.TLSCertKey,
					Path: fmt.Sprintf("%s.crt", name),
				},
				corev1.KeyToPath{
					Key:  corev1.TLSPrivateKeyKey,
					Path: fmt.Sprintf("%s.key", name),
				},
			},
		},
	}
}
// newTLSVolumeProjection will retun a TLS certificate and key volume projection for the given name.
newTLSVolumeProjection will retun a TLS certificate and key volume projection for the given name.
// newTLSVolumeProjection will retun a TLS certificate and key volume projection for the given name .
func newTLSVolumeProjection(cr *v1alpha1.RethinkDBCluster, name string) corev1.VolumeProjection {
	return corev1.VolumeProjection{
		Secret: &corev1.SecretProjection{
			LocalObjectReference: corev1.LocalObjectReference{Name: fmt.Sprintf("%s-%s", cr.ObjectMeta.Name, name)},
			Items: []corev1.KeyToPath{
				corev1.KeyToPath{
					Key:  corev1.TLSCertKey,
					Path: fmt.Sprintf("%s.crt", name),
				},
				corev1.KeyToPath{
					Key:  corev1.TLSPrivateKeyKey,
					Path: fmt.Sprintf("%s.key", name),
				},
			},
		},
	}
}
func newTLSVolumeProjection ( cr * v1alpha1 . RethinkDBCluster , name string ) corev1 . VolumeProjection { return corev1 . VolumeProjection { Secret : & corev1 . SecretProjection { LocalObjectReference : corev1 . LocalObjectReference { Name : fmt . Sprintf ( " " , cr . ObjectMeta . Name , name ) } , Items : [ ] corev1 . KeyToPath { corev1 . KeyToPath { Key : corev1 . TLSCertKey , Path : fmt . Sprintf ( " " , name ) , } , corev1 . KeyToPath { Key : corev1 . TLSPrivateKeyKey , Path : fmt . Sprintf ( " " , name ) , } , } , } , } }
newTLSVolumeProjection will retun a TLS certificate and key volume projection for the given name.
newTLSVolumeProjection will retun a TLS certificate and key volume projection for the given name .