Documentation ¶
Index ¶
Constants ¶
View Source
const (
ShardAnnotation = "sharding.projectsveltos.io/key"
)
Variables ¶
This section is empty.
Functions ¶
func IsShardAMatch ¶
IsShardAMatch returns true if a cluster is a shard match.
func RegisterClusterShard ¶
func RegisterClusterShard(ctx context.Context, c client.Client, component libsveltosv1beta1.Component, feature, shard, clusterNamespace, clusterName string, clusterType libsveltosv1beta1.ClusterType) (bool, error)
RegisterClusterShard register a cluster,shard pair. feature is a string representing the entity requesting the tracking. component indicates the sveltos component requesting it. returns a bool indicating whether the cluster:shard pair has changed and an error if any occurred
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.