Renamed ControlAgent to NodeControl
This commit is contained in:
@@ -476,7 +476,7 @@ func buildNodeRegistration(spec monov1alpha1.MonoKSConfigSpec) NodeRegistrationO
|
||||
}
|
||||
|
||||
func effectiveNodeLabels(spec monov1alpha1.MonoKSConfigSpec) map[string]string {
|
||||
if len(spec.NodeLabels) == 0 && !spec.EnableControlAgent {
|
||||
if len(spec.NodeLabels) == 0 && !spec.EnableNodeControl {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -485,8 +485,8 @@ func effectiveNodeLabels(spec monov1alpha1.MonoKSConfigSpec) map[string]string {
|
||||
labels[k] = v
|
||||
}
|
||||
|
||||
if spec.EnableControlAgent {
|
||||
labels[monov1alpha1.ControlAgentKey] = "true"
|
||||
if spec.EnableNodeControl {
|
||||
labels[monov1alpha1.NodeControlKey] = "true"
|
||||
}
|
||||
|
||||
return labels
|
||||
|
||||
Reference in New Issue
Block a user