func newCAConfigMap(cr *v1alpha1.RethinkDBCluster, caSecret *corev1.Secret) (*corev1.ConfigMap, error) {
	cm := newConfigMapWithSuffix(cr, "ca")
	cm.Data = map[string]string{
		TLSCACertKey: string(caSecret.Data[TLSCertKey]),
	}
	return cm, nil
}
newCAConfigMap creates a new ConfigMap for the given RethinkDBCluster and CA certificate.
package rethinkdbcluster
import (
	"fmt"
	"github.com/jmckind/rethinkdb-operator/pkg/apis/rethinkdb/v1alpha1"
	corev1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)