Documentation ¶
Index ¶
- Constants
- Variables
- func SetDefault()
- func SyncKubernetesService(ctx *synccontext.SyncContext, svcNamespace, svcName string, ...) error
- func SyncVclusterProxyService(ctx *synccontext.SyncContext, _, svcName string, ...) error
- type Interface
- type NameserverFinder
- type ServicePortTranslator
- type SpecialServiceSyncer
Constants ¶
View Source
const ( PhysicalSvcSelectorKeyApp = "app" PhysicalSvcSelectorKeyRelease = "release" PhysicalMetricsServerServiceNameSuffix = "-metrics-proxy" )
View Source
const ( DefaultKubeDNSServiceName = "kube-dns" DefaultKubeDNSServiceNamespace = "kube-system" )
View Source
const ( DefaultKubernetesSVCName = "kubernetes" DefaultKubernetesSVCNamespace = "default" )
Variables ¶
View Source
var ( DefaultKubernetesSvcKey = types.NamespacedName{ Name: DefaultKubernetesSVCName, Namespace: DefaultKubernetesSVCNamespace, } )
View Source
var (
VclusterProxyMetricsSvcKey = types.NamespacedName{
Name: "metrics-server",
Namespace: "kube-system",
}
)
Functions ¶
func SetDefault ¶ added in v0.17.0
func SetDefault()
func SyncKubernetesService ¶
func SyncKubernetesService( ctx *synccontext.SyncContext, svcNamespace, svcName string, vSvcToSync types.NamespacedName, svcPortTranslator ServicePortTranslator, ) error
func SyncVclusterProxyService ¶ added in v0.17.0
func SyncVclusterProxyService(ctx *synccontext.SyncContext, _, svcName string, vSvcToSync types.NamespacedName, _ ServicePortTranslator, ) error
Types ¶
type Interface ¶
type Interface interface { SpecialServicesToSync() map[types.NamespacedName]SpecialServiceSyncer DNSNamespace(ctx *synccontext.SyncContext) (client.Client, string) }
var Default Interface
type NameserverFinder ¶
type NameserverFinder struct {
SpecialServices map[types.NamespacedName]SpecialServiceSyncer
}
func (*NameserverFinder) DNSNamespace ¶ added in v0.16.0
func (f *NameserverFinder) DNSNamespace(ctx *synccontext.SyncContext) (client.Client, 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 *synccontext.SyncContext, svcNamespace, svcName string, vSvcToSync types.NamespacedName, servicePortTranslator ServicePortTranslator, ) error
Click to show internal directories.
Click to hide internal directories.