Documentation
¶
Index ¶
- Constants
- func DerivedName(namespace string, name string) string
- func EndpointPortToPort(port discovery.EndpointPort) model.Port
- func EndpointPortsAreEqualIgnoreOrder(a, b []discovery.EndpointPort) (equal bool)
- func PortToEndpointPort(port model.Port) discovery.EndpointPort
- func PortToServicePort(port model.Port) v1.ServicePort
- func ServicePortToPort(svcPort v1.ServicePort) model.Port
- type CloudMapReconciler
- type ServiceExportReconciler
Constants ¶
View Source
const ( // DerivedServiceAnnotation annotates a ServiceImport with derived Service name DerivedServiceAnnotation = "multicluster.k8s.aws/derived-service" // LabelServiceImportName indicates the name of the multi-cluster service that an EndpointSlice belongs to. LabelServiceImportName = "multicluster.kubernetes.io/service-name" )
View Source
const ( K8sVersionAttr = "K8S_CONTROLLER" ServiceExportFinalizer = "multicluster.k8s.aws/service-export-finalizer" EndpointSliceServiceLabel = "kubernetes.io/service-name" )
Variables ¶
This section is empty.
Functions ¶
func DerivedName ¶
DerivedName computes the "placeholder" name for the imported service
func EndpointPortToPort ¶ added in v0.2.0
func EndpointPortToPort(port discovery.EndpointPort) model.Port
func EndpointPortsAreEqualIgnoreOrder ¶ added in v0.2.0
func EndpointPortsAreEqualIgnoreOrder(a, b []discovery.EndpointPort) (equal bool)
func PortToEndpointPort ¶ added in v0.2.0
func PortToEndpointPort(port model.Port) discovery.EndpointPort
func PortToServicePort ¶ added in v0.2.0
func PortToServicePort(port model.Port) v1.ServicePort
func ServicePortToPort ¶ added in v0.2.0
func ServicePortToPort(svcPort v1.ServicePort) model.Port
Types ¶
type CloudMapReconciler ¶
type CloudMapReconciler struct { client.Client Cloudmap cloudmap.ServiceDiscoveryClient logr.Logger }
CloudMapReconciler reconciles state of Cloud Map services with local ServiceImport objects
type ServiceExportReconciler ¶
type ServiceExportReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme CloudMap cloudmap.ServiceDiscoveryClient }
ServiceExportReconciler reconciles a ServiceExport object
func (*ServiceExportReconciler) SetupWithManager ¶
func (r *ServiceExportReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.