Documentation ¶
Overview ¶
Package labels label selectors used throughout the liqo code in order to get k8s resources.
Index ¶
- Variables
- func ComponentLabelSelector(name, component string) labels.Selector
- func ControllerManagerLabelSelector() labels.Selector
- func LocalLabelSelector() labels.Selector
- func LocalLabelSelectorForCluster(destinationClusterID string) labels.Selector
- func RemoteLabelSelector() labels.Selector
- func RemoteLabelSelectorForCluster(originClusterID string) labels.Selector
Constants ¶
This section is empty.
Variables ¶
var ( // IPAMStorageLabelSelector selector used to get the ipam storage instance. IPAMStorageLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.IpamStorageResourceLabelKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.IpamStorageResourceLabelValue}, }, }, } // ClusterIDConfigMapLabelSelector selector used to get the cluster id configmap. ClusterIDConfigMapLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.K8sAppNameKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.ClusterIDConfigMapNameLabelValue}, }, }, } // ProxyServiceLabelSelector selector used to get the gateway service. ProxyServiceLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.K8sAppNameKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.APIServerProxyAppName}, }, }, } // GatewayResourceLabelSelector selector is used to get resources related to a gateway. GatewayResourceLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.GatewayResourceLabel, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.GatewayResourceLabelValue}, }, }, } // ResourceForRemoteClusterLabelSelector selector is used to get resources related to a remote cluster. ResourceForRemoteClusterLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.RemoteClusterID, Operator: metav1.LabelSelectorOpExists, }, }, } )
Functions ¶
func ComponentLabelSelector ¶ added in v0.6.0
ComponentLabelSelector returns the label selector associated with the component characterized by the given name and component labels.
func ControllerManagerLabelSelector ¶ added in v0.6.0
ControllerManagerLabelSelector returns the label selector associated with the controller-manager components.
func LocalLabelSelector ¶ added in v0.5.0
LocalLabelSelector returns a label selector to match local resources.
func LocalLabelSelectorForCluster ¶ added in v0.6.0
LocalLabelSelectorForCluster returns a label selector to match local resources with a given destination ClusterID.
func RemoteLabelSelector ¶ added in v0.5.0
RemoteLabelSelector returns a label selector to match local resources.
func RemoteLabelSelectorForCluster ¶ added in v0.6.0
RemoteLabelSelectorForCluster returns a label selector to match remote resources with a given origin ClusterID.
Types ¶
This section is empty.