clustercfgcell

package
v1.19.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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) cmtypes.CiliumClusterConfig {
			return cmtypes.CiliumClusterConfig{
				ID: cinfo.ID,
				Capabilities: cmtypes.CiliumClusterConfigCapabilities{
					SyncedCanaries:        bool(sc),
					MaxConnectedClusters:  cinfo.MaxConnectedClusters,
					ServiceExportsEnabled: &mcsAPICfg.EnableMCSAPI,
				},
			}
		},
	),

	cell.Invoke(clustercfg.RegisterEnforcer),
)

Cell takes care of writing the cluster configuration to the kvstore, and automatically reverting possible external modifications.

Functions

func WithSyncedCanaries

func WithSyncedCanaries(enabled bool) cell.Cell

WithSyncedCanaries configures the SyncedCanaries field of the ClusterConfig.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL