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 DiscoveryLabelSelector() labels.Selector
- func GatewayLabelSelector() labels.Selector
- func LocalLabelSelector() labels.Selector
- func LocalLabelSelectorForCluster(destinationClusterID string) labels.Selector
- func RemoteLabelSelector() labels.Selector
- func RemoteLabelSelectorForCluster(originClusterID string) labels.Selector
- func RouteLabelSelector() 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}, }, }, } // GatewayServiceLabelSelector selector used to get the gateway service. GatewayServiceLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.GatewayServiceLabelKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.GatewayServiceLabelValue}, }, }, } // WireGuardSecretLabelSelector selector used to get the WireGuard secret. WireGuardSecretLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.KeysLabel, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.DriverName}, }, }, } // 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}, }, }, } // NetworkManagerPodLabelSelector selector used to get the Network Manager Pod. NetworkManagerPodLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.K8sAppNameKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.NetworkManagerAppName}, }, }, } // AuthServiceLabelSelector selector used to get the auth service. AuthServiceLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.K8sAppNameKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.AuthAppName}, }, }, } // ProxyServiceLabelSelector selector used to get the gateway service. ProxyServiceLabelSelector = metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: liqoconst.K8sAppNameKey, Operator: metav1.LabelSelectorOpIn, Values: []string{liqoconst.APIServerProxyAppName}, }, }, } )
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 DiscoveryLabelSelector ¶ added in v0.6.0
DiscoveryLabelSelector returns the label selector associated with the discovery components.
func GatewayLabelSelector ¶ added in v0.6.0
GatewayLabelSelector returns the label selector associated with the gateway 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.
func RouteLabelSelector ¶ added in v0.6.0
RouteLabelSelector returns the label selector associated with the route components.
Types ¶
This section is empty.