File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed
deployments/liqo/templates Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ metadata:
77 labels :
88 {{- include "liqo.labels" $predelete| nindent 4 }}
99 annotations :
10+ argocd.argoproj.io/hook : PreSync
1011 {{- include "liqo.preDeleteAnnotations" $predelete| nindent 4 }}
1112spec :
1213 template :
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ metadata:
77 labels :
88 {{- include "liqo.labels" $predelete| nindent 4 }}
99 annotations :
10- {{- include "liqo.preDeleteAnnotations" $predelete| nindent 4 }}
10+ argocd.argoproj.io/hook : PreSync
11+ {{- include "liqo.preDeleteAnnotations" $predelete| nindent 4 }}
1112---
1213apiVersion : rbac.authorization.k8s.io/v1
1314kind : ClusterRoleBinding
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ const (
3838 // APIServerProxyAppName label value that denotes the name of the liqo-api-server-proxy deployment.
3939 APIServerProxyAppName = "proxy"
4040
41+ // OffloadingComponentKey is the label assigned to the Liqo components related to offloading.
42+ OffloadingComponentKey = "offloading.liqo.io/component"
43+
44+ // NetworkingComponentKey is the label assigned to the Liqo components related to networking.
45+ NetworkingComponentKey = "networking.liqo.io/component"
46+
4147 // IpamStorageResourceLabelKey is the constant representing
4248 // the key of the label assigned to all IpamStorage resources.
4349 IpamStorageResourceLabelKey = "ipam.liqo.io/ipamstorage"
Original file line number Diff line number Diff line change 1515package gateway
1616
1717import (
18+ "github.com/liqotech/liqo/pkg/consts"
1819 "github.com/liqotech/liqo/pkg/firewall"
1920 "github.com/liqotech/liqo/pkg/gateway/concurrent"
2021 "github.com/liqotech/liqo/pkg/route"
2122)
2223
2324const (
2425 // GatewayComponentKey is the key used to label the gateway pod.
25- GatewayComponentKey = "networking.liqo.io/component"
26+ GatewayComponentKey = consts . NetworkingComponentKey
2627
2728 // GatewayComponentGateway is the key used to label the gateway pod.
2829 GatewayComponentGateway = "gateway"
Original file line number Diff line number Diff line change @@ -30,11 +30,7 @@ const CRBPrefix = "liqo-node-"
3030
3131// KubeletBaseLabels are the static labels that are set on every VirtualKubelet.
3232var KubeletBaseLabels = map [string ]string {
33- consts .K8sAppNameKey : "virtual-kubelet" ,
34- consts .K8sAppInstanceKey : "virtual-kubelet" ,
35- consts .K8sAppManagedByKey : consts .LiqoAppLabelValue ,
36- consts .K8sAppComponentKey : "virtual-kubelet" ,
37- consts .K8sAppPartOfKey : "liqo" ,
33+ consts .OffloadingComponentKey : "virtual-kubelet" ,
3834}
3935
4036// ClusterRoleBindingLabels are the static labels that are set on every ClusterRoleBinding managed by Liqo.
You can’t perform that action at this time.
0 commit comments