func (s *OvpnServer) ObjectRefOvpnConfigMap() metav1.ObjectMeta {
	ref := metav1.ObjectMeta{
		Name:      s.Spec.Deployment.OvpnConfigMapName,
		Namespace: s.Namespace,
	}
	if ref.Name == "" {
		ref.Name = fmt.Sprintf("%s-config", s.Name)
	}
	return ref
}
ObjectRefOvpnConfigMap returns a reference to the server configmap.
package v1alpha1
import (
	"fmt"
	corev1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func (s OvpnServer) ObjectRefSharedSecrets() metav1.ObjectMeta {
	ref := metav1.ObjectMeta{
		Name:      s.Spec.Secrets.SharedSecretName,
		Namespace: s.Namespace,
	}
	if ref.Name == "" {
		ref.Name = fmt.Sprintf("%s-shared-secret", s.Name)
	}
	return ref
}
func (s *OvpnServer) ObjectRefCrlSecret() metav1.ObjectMeta {
	ref := metav1.ObjectMeta{
		Name:      s.Spec.Secrets.CrlName,
		Namespace: s.Namespace,
	}
	if ref.Name == "" {
		ref.Name = fmt.Sprintf("%s-crl", s.Name)
	}
	return ref
}
func (s *OvpnServer) ObjectRefServerCertificateSecret() metav1.ObjectMeta {
	ref := metav1.ObjectMeta{
		Name:      s.Spec.Secrets.ServerCertificateName,
		Namespace: s.Namespace,
	}
	if ref.Name == "" {
		ref.Name = fmt.Sprintf("%s-server-certificate", s.Name)
	}
	return ref
}