Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "cluster-config-enforcement", "Enforce the CiliumClusterConfig in the KVStore", cell.Provide( func(cinfo cmtypes.ClusterInfo, mcsAPICfg mcsapitypes.MCSAPIConfig, sc syncedCanaries, svcV2Config cmtypes.ServiceModeV2Config) cmtypes.CiliumClusterConfig { endpointSlicesExportMode := cmtypes.EndpointSlicesExportModeEndpointSlicesOnly if svcV2Config.ServiceModeV2.ShouldExportLegacyServices() { endpointSlicesExportMode = cmtypes.EndpointSlicesExportModeServicesAndEndpointSlices } return cmtypes.CiliumClusterConfig{ ID: cinfo.ID, Capabilities: cmtypes.CiliumClusterConfigCapabilities{ SyncedCanaries: bool(sc), MaxConnectedClusters: cinfo.MaxConnectedClusters, ServiceExportsEnabled: &mcsAPICfg.EnableMCSAPI, EndpointSlicesExportMode: endpointSlicesExportMode, }, } }, ), cell.Invoke(clustercfg.RegisterEnforcer), )
Cell takes care of writing the cluster configuration to the kvstore, and automatically reverting possible external modifications.
Functions ¶
func WithSyncedCanaries ¶
WithSyncedCanaries configures the SyncedCanaries field of the ClusterConfig.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.