Skip to content

Commit

Permalink
AutoSized Nodes now reference both masters and workers (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennerv authored Jun 30, 2023
1 parent e34c6d6 commit 5f9df8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ func makeConfig() mcv1.KubeletConfig {
Spec: mcv1.KubeletConfigSpec{
AutoSizingReserved: util.BoolToPtr(true),
MachineConfigPoolSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"pools.operator.machineconfiguration.openshift.io/worker": "",
MatchExpressions: []metav1.LabelSelectorRequirement{
{
Key: "machineconfiguration.openshift.io/mco-built-in",
Operator: metav1.LabelSelectorOpExists,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ func TestAutosizednodesReconciler(t *testing.T) {
Spec: mcv1.KubeletConfigSpec{
AutoSizingReserved: util.BoolToPtr(false),
MachineConfigPoolSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"pools.operator.machineconfiguration.openshift.io/worker": "",
MatchExpressions: []metav1.LabelSelectorRequirement{
{
Key: "machineconfiguration.openshift.io/mco-built-in",
Operator: metav1.LabelSelectorOpExists,
},
},
},
},
Expand Down

0 comments on commit 5f9df8a

Please sign in to comment.