Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ServiceExportReasonNamespaceNotGlobal is used with the "Valid" condition // when the namespace is not marked as global for clustermesh. ServiceExportReasonNamespaceNotGlobal mcsapiv1alpha1.ServiceExportConditionReason = "NamespaceNotGlobal" // ServiceImportReasonNamespaceNotGlobal is used with the "Ready" condition // when the namespace is not marked as global for clustermesh. ServiceImportReasonNamespaceNotGlobal mcsapiv1alpha1.ServiceImportConditionReason = "NamespaceNotGlobal" )
Variables ¶
View Source
var Cell = cell.Module( "mcsapi", "Multi-Cluster Services API", cell.Invoke(registerMCSAPIController), cell.Provide(newMCSAPICRDs), )
View Source
var ServiceExportSyncCell = cell.Module( "service-export-sync", "Synchronizes Kubernetes ServiceExports to KVStore", cell.Invoke(registerServiceExportSync), )
Functions ¶
func ServiceExportResource ¶ added in v1.17.0
func ServiceExportResource(lc cell.Lifecycle, cs client.Clientset, mp workqueue.MetricsProvider, opts ...func(*metav1.ListOptions)) resource.Resource[*mcsapiv1alpha1.ServiceExport]
ServiceExportResource builds the Resource[ServiceExport] object.
Types ¶
type ServiceExportSyncCallback ¶ added in v1.18.0
ServiceExportSyncCallback represents a callback that, if provided, is executed when the first synchronization is completed.
type ServiceExportSyncParameters ¶ added in v1.17.0
type ServiceExportSyncParameters struct {
cell.In
Logger *slog.Logger
Config mcsapitypes.MCSAPIConfig
ClusterInfo cmtypes.ClusterInfo
Clientset client.Clientset
KVStoreClient kvstore.Client
StoreFactory store.Factory
ServiceExports resource.Resource[*mcsapiv1alpha1.ServiceExport]
Services resource.Resource[*slim_corev1.Service]
SyncCallback ServiceExportSyncCallback `optional:"true"`
NamespaceManager cmnamespace.Manager
Namespaces resource.Resource[*slim_corev1.Namespace]
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.