Documentation
¶
Overview ¶
Package labels label selectors used throughout the liqo code in order to get k8s resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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 LocalLabelSelector ¶ added in v0.5.0
LocalLabelSelector 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 remote resources with a given origin ClusterID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.