Documentation ¶
Index ¶
- Variables
- func EnforceClusterConfig(ctx context.Context, clusterName string, config cmtypes.CiliumClusterConfig, ...) (stopAndWait func(), err error)
- func GetClusterConfig(ctx context.Context, clusterName string, backend ClusterConfigBackend) (cmtypes.CiliumClusterConfig, error)
- func SetClusterConfig(ctx context.Context, clusterName string, config cmtypes.CiliumClusterConfig, ...) error
- type ClusterConfigBackend
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrClusterConfigNotFound is the sentinel error returned by // GetClusterConfig if the cluster configuration is not found. ErrClusterConfigNotFound = errors.New("not found") )
Functions ¶
func EnforceClusterConfig ¶ added in v1.16.0
func EnforceClusterConfig( ctx context.Context, clusterName string, config cmtypes.CiliumClusterConfig, backend ClusterConfigBackend, log logrus.FieldLogger, ) (stopAndWait func(), err error)
EnforceClusterConfig synchronously writes the cluster configuration, and additionally registers a background task to periodically enforce its presence (e.g., in case the associated lease unexpectedly expired).
func GetClusterConfig ¶
func GetClusterConfig(ctx context.Context, clusterName string, backend ClusterConfigBackend) (cmtypes.CiliumClusterConfig, error)
func SetClusterConfig ¶
func SetClusterConfig(ctx context.Context, clusterName string, config cmtypes.CiliumClusterConfig, backend ClusterConfigBackend) error
Types ¶
Click to show internal directories.
Click to hide internal directories.