Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "clustermesh", "Cell providing clustermesh capabilities in the operator", cell.Config(ClusterMeshConfig{}), cell.Provide( newClusterMesh, newAPIClustersHandler, ), cell.Config(common.Config{}), cell.Config(wait.TimeoutConfigDefault), metrics.Metric(NewMetrics), metrics.Metric(common.MetricsProvider(subsystem)), )
Cell is the cell for the Operator ClusterMesh
Functions ¶
This section is empty.
Types ¶
type ClusterMesh ¶
type ClusterMesh interface { // RegisterClusterAddHook register a hook when a cluster is added to the mesh. // This should NOT be called after the Start hook. RegisterClusterAddHook(clusterAddHook func(string)) // RegisterClusterDeleteHook register a hook when a cluster is removed from the mesh. // This should NOT be called after the Start hook. RegisterClusterDeleteHook(clusterDeleteHook func(string)) // RegisterClusterServiceUpdateHook register a hook when a service in the mesh is updated. // This should NOT be called after the Start hook. RegisterClusterServiceUpdateHook(clusterServiceUpdateHook func(*serviceStore.ClusterService)) // RegisterClusterServiceDeleteHook register a hook when a service in the mesh is deleted. // This should NOT be called after the Start hook. RegisterClusterServiceDeleteHook(clusterServiceDeleteHook func(*serviceStore.ClusterService)) ServicesSynced(ctx context.Context) error GlobalServices() *common.GlobalServiceCache }
ClusterMesh is the interface corresponding to the clusterMesh struct to expose its public methods to other Cilium packages.
type ClusterMeshConfig ¶
type ClusterMeshConfig struct { // ClusterMeshEnableEndpointSync enables the EndpointSlice Cluster Mesh synchronization ClusterMeshEnableEndpointSync bool `mapstructure:"clustermesh-enable-endpoint-sync"` }
ClusterMeshConfig contains the configuration for ClusterMesh inside the operator.
func (ClusterMeshConfig) Flags ¶
func (cfg ClusterMeshConfig) Flags(flags *pflag.FlagSet)
Flags adds the flags used by ClientConfig.
Click to show internal directories.
Click to hide internal directories.