func (r *ReconcileRethinkDBCluster) reconcileTLSSecrets(cr *rethinkdbv1alpha1.RethinkDBCluster, caSecret *corev1.Secret) error {
	// Reconcile the cluster certificate Secret
	err := r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBClusterKey)
	if err != nil {
		return err
	}

	// Reconcile the driver certificate Secret
	err = r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBDriverKey)
	if err != nil {
		return err
	}

	// Reconcile the http (web-admin) certificate Secret
	err = r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBHttpKey)
	if err != nil {
		return err
	}

	// Reconcile the client certificate Secret
	err = r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBClientKey)
	return err
}
// reconcileCertificates ensures the TLS secrets are created for the given RethinkDBCluster.
reconcileCertificates ensures the TLS secrets are created for the given RethinkDBCluster.
// reconcileCertificates ensures the TLS secrets are created for the given RethinkDBCluster .
func (r *ReconcileRethinkDBCluster) reconcileTLSSecrets(cr *rethinkdbv1alpha1.RethinkDBCluster, caSecret *corev1.Secret) error {
	err := r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBClusterKey)
	if err != nil {
		return err
	}
	err = r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBDriverKey)
	if err != nil {
		return err
	}
	err = r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBHttpKey)
	if err != nil {
		return err
	}
	err = r.reconcileTLSSecretWithSuffix(cr, caSecret, RethinkDBClientKey)
	return err
}
func ( r * ReconcileRethinkDBCluster ) reconcileTLSSecrets ( cr * rethinkdbv1alpha1 . RethinkDBCluster , caSecret * corev1 . Secret ) error { err := r . reconcileTLSSecretWithSuffix ( cr , caSecret , RethinkDBClusterKey ) if err != nil { return err } err = r . reconcileTLSSecretWithSuffix ( cr , caSecret , RethinkDBDriverKey ) if err != nil { return err } err = r . reconcileTLSSecretWithSuffix ( cr , caSecret , RethinkDBHttpKey ) if err != nil { return err } err = r . reconcileTLSSecretWithSuffix ( cr , caSecret , RethinkDBClientKey ) return err }
reconcileCertificates ensures the TLS secrets are created for the given RethinkDBCluster.
reconcileCertificates ensures the TLS secrets are created for the given RethinkDBCluster .
// Reconcile the cluster certificate Secret // Reconcile the driver certificate Secret // Reconcile the http (web-admin) certificate Secret // Reconcile the client certificate Secret