Documentation ¶
Index ¶
- Constants
- func GetClusterName(obj metav1.Object) string
- func GetClusterNameNs(ns string) (clusterName, namespace string)
- func GetOwnerClusterName(sub metav1.Object) string
- func GetOwnerNameNs(sub metav1.Object) types.NamespacedName
- func MultiClustersEnqueue(clusterName string) handler.EventHandler
- func SetClusterName(obj metav1.Object, cluster string)
- func SetOwner(owner, sub metav1.Object)
- type MultiClusterClient
Constants ¶
View Source
const ( ClusterSeparator = "/" DefaultClusterName = "default" )
View Source
const ( OwnerNameKey = "owner.name" OwnerNamespaceKey = "owner.namespace" OwnerClusterKey = "owner.cluster" )
View Source
const ClusterNameKey = "cluster.name"
Variables ¶
This section is empty.
Functions ¶
func GetClusterName ¶
func GetClusterNameNs ¶
func GetOwnerClusterName ¶
func GetOwnerNameNs ¶
func GetOwnerNameNs(sub metav1.Object) types.NamespacedName
func MultiClustersEnqueue ¶
func MultiClustersEnqueue(clusterName string) handler.EventHandler
func SetClusterName ¶
Types ¶
type MultiClusterClient ¶
type MultiClusterClient struct {
// contains filtered or unexported fields
}
func (MultiClusterClient) GetClient ¶
func (mc MultiClusterClient) GetClient(name string) client.Client
GetClient by cluster name
func (MultiClusterClient) GetClientByNs ¶
func (mc MultiClusterClient) GetClientByNs(ns string) client.Client
func (MultiClusterClient) GetClientByObj ¶
func (mc MultiClusterClient) GetClientByObj(obj client.Object) client.Client
func (MultiClusterClient) GetOwnerClient ¶
func (mc MultiClusterClient) GetOwnerClient(obj client.Object) client.Client
Click to show internal directories.
Click to hide internal directories.