Moved all custom naming into one place
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"k8s.io/client-go/tools/clientcmd"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
monov1alpah1 "example.com/monok8s/pkg/apis/monok8s/v1alpha1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
kubernetes "k8s.io/client-go/kubernetes"
|
||||
)
|
||||
@@ -63,7 +64,7 @@ func ApplyLocalNodeMetadataIfPossible(ctx context.Context, nctx *NodeContext) er
|
||||
|
||||
// Additional Labels
|
||||
if spec.EnableControlAgent {
|
||||
node.Labels[controlAgentNodeSelectorKey] = controlAgentNodeSelectorValue
|
||||
node.Labels[monov1alpah1.ControlAgentKey] = controlAgentNodeSelectorValue
|
||||
}
|
||||
|
||||
// Apply annotations
|
||||
|
||||
Reference in New Issue
Block a user