Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultKubeDNSServiceName = "kube-dns" DefaultKubeDNSServiceNamespace = "kube-system" )
View Source
const ( DefaultKubernetesSVCName = "kubernetes" DefaultKubernetesSVCNamespace = "default" )
Variables ¶
This section is empty.
Functions ¶
func SyncKubernetesService ¶
func SyncKubernetesService(ctx context.Context, vClient, pClient client.Client, svcNamespace, svcName string, vSvcToSync types.NamespacedName, svcPortTranslator ServicePortTranslator) error
Types ¶
type Interface ¶
type Interface interface { GetDNSServiceSuffix() *string SpecialServicesToSync() map[types.NamespacedName]SpecialServiceSyncer }
var Default Interface = DefaultNameserverFinder()
func DefaultNameserverFinder ¶
func DefaultNameserverFinder() Interface
type NameserverFinder ¶
type NameserverFinder struct { DNSServiceSuffix *string SpecialServices map[types.NamespacedName]SpecialServiceSyncer }
func (*NameserverFinder) GetDNSServiceSuffix ¶
func (f *NameserverFinder) GetDNSServiceSuffix() *string
func (*NameserverFinder) SpecialServicesToSync ¶
func (f *NameserverFinder) SpecialServicesToSync() map[types.NamespacedName]SpecialServiceSyncer
type ServicePortTranslator ¶
type ServicePortTranslator func(ports []corev1.ServicePort) []corev1.ServicePort
type SpecialServiceSyncer ¶
type SpecialServiceSyncer func(ctx context.Context, vClient, pClient client.Client, svcNamespace, svcName string, vSvcToSync types.NamespacedName, servicePortTranslator ServicePortTranslator) error
Click to show internal directories.
Click to hide internal directories.