AUTOSCALE-660: add enforce node group min size flag #374
@shyadav10: This pull request references AUTOSCALE-660 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.
<details>
In response to this:
>Add new field and plumbing for enforce node group min size
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
No actionable comments were generated in the recent review. 🎉
<details>
<summary>ℹ️ Recent review info</summary>
<details>
<summary>⚙️ Run configuration</summary>
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 95860e70-7d9c-47ec-8b9c-1c4aeab05a5f
</details>
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between 81bd58456ce1de1c7c89f6bfc8e19699cd40cb3d and dc27da3d734445d1600af40f2b6932d7875d3ded.
</details>
<details>
<summary>📒 Files selected for processing (2)</summary>
install/01_clusterautoscaler.crd.yaml
pkg/apis/autoscaling/v1/clusterautoscaler_types.go
</details>
<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (2)</summary>
install/01_clusterautoscaler.crd.yaml
pkg/apis/autoscaling/v1/clusterautoscaler_types.go
</details>
</details>
---
<!-- walkthrough_start -->
Walkthrough
Adds a new ClusterAutoscaler spec field enforceNodeGroupMinSize (enum "Enabled"/"Disabled", default "Disabled") to CRD and API types, and updates the controller to translate this setting into a --enforce-node-group-min-size CLI argument for the cluster-autoscaler process.
Changes
EnforceNodeGroupMinSize Configuration
|Layer / File(s)|Summary|
|---|---|
|API Type / Validation <br> pkg/apis/autoscaling/v1/clusterautoscaler_types.go|Introduces EnforceNodeGroupMinSizeMode (string) with constants Enabled and Disabled; adds optional EnforceNodeGroupMinSize *EnforceNodeGroupMinSizeMode field to ClusterAutoscalerSpec with +kubebuilder:default=Disabled and validation enum.|
|CRD Schema <br> install/01_clusterautoscaler.crd.yaml|Adds spec.enforceNodeGroupMinSize property: string, enum [Enabled,Disabled], default Disabled, with description referencing --enforce-node-group-min-size.|
|Controller Wiring <br> pkg/controller/clusterautoscaler/clusterautoscaler.go|Adds EnforceNodeGroupMinSizeArg constant and extends AutoscalerArgs to read ca.Spec.EnforceNodeGroupMinSize (nil-checked) and append the corresponding boolean argument to the cluster-autoscaler CLI.|
Sequence Diagram(s)
sequenceDiagram
autonumber
participant User
participant API_Server as "Kubernetes API\n(CRD)"
participant Controller
participant CA_Process as "cluster-autoscaler\n(process)"
User->>API_Server: create/update ClusterAutoscaler with\nspec.enforceNodeGroupMinSize = Enabled/Disabled
API_Server-->>Controller: watch event / updated CA resource
Controller->>Controller: read ca.Spec.EnforceNodeGroupMinSize
Controller->>CA_Process: start/reconcile with\n--enforce-node-group-min-size=<true|false>
CA_Process-->>Controller: running with configured flag
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 11 | ❌ 1</summary>
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
| :------------------------: | :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Test Structure And Quality | ⚠️ Warning | PR adds EnforceNodeGroupMinSize feature but lacks Ginkgo/Go test coverage. Similar features like CordonNodeBeforeTerminating have test cases. New CLI arg generation code is untested. | Add test cases for EnforceNodeGroupMinSize in TestAutoscalerArgsFromSpec (both Enabled and Disabled modes) matching CordonNodeBeforeTerminating test pattern to verify correct --enforce-node-group-min-size CLI arg generation. |
<details>
<summary>✅ Passed checks (11 passed)</summary>
| Check name | Status | Explanation |
| :----------------------------------------------: | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The pull request title accurately describes the main change: adding a new enforce node group min size flag feature across the CRD schema, API types, and controller logic. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Stable And Deterministic Test Names | ✅ Passed | PR introduces no Ginkgo tests. Changes are limited to CRD definitions, type definitions, and controller implementation. The check for stable test names is not applicable. |
| Microshift Test Compatibility | ✅ Passed | No Ginkgo e2e tests were added in this PR. The project uses standard Go unit tests, not Ginkgo. The three modified files contain no test additions. |
| Single Node Openshift (Sno) Test Compatibility | ✅ Passed | No new Ginkgo e2e tests were added in this PR. The changes only include CRD schema updates, type definitions, and controller logic. The SNO compatibility check is not applicable. |
| Topology-Aware Scheduling Compatibility | ✅ Passed | PR adds enforce-node-group-min-size feature via CRD, API types, and controller logic. No scheduling constraints, pod affinity, topology spreads, or deployment topology assumptions introduced. |
| Ote Binary Stdout Contract | ✅ Passed | No OTE Binary Stdout Contract violations detected. All changes are type definitions, constants, or business logic within functions. No fmt.Print, log.Print, or stdout writes in process-level code. |
| Ipv6 And Disconnected Network Test Compatibility | ✅ Passed | No Ginkgo e2e tests are added in this PR. Changes are limited to CRD manifest, API types, and controller implementation. The check does not apply. |
</details>
<sub>✏️ Tip: You can configure your own custom pre-merge checks in the settings.</sub>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary>✨ Finishing Touches</summary>
<details>
<summary>🧪 Generate unit tests (beta)</summary>
</details>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- announcements_start -->
[!TIP]
<details>
<summary>💬 Introducing Slack Agent: The best way for teams to turn conversations into code.</summary>
> Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
> - Generate code and open pull requests
- Plan features and break down work
- Investigate incidents and troubleshoot customer tickets together
- Automate recurring tasks and respond to alerts with triggers
- Summarize progress and report instantly
> Built for teams:
> - Shared memory across your entire org—no repeating context
- Per-thread sandboxes to safely plan and execute work
- Governance built-in—scoped access, auditability, and budget controls
> One agent for your entire SDLC. Right inside Slack.
> 👉 Get started
> </details>
<!-- announcements_end -->
<!-- tips_start -->
---
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
<details>
<summary>❤️ Share</summary>
</details>
<sub>Comment @coderabbitai help to get the list of available commands and usage tips.</sub>
<!-- tips_end -->
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcAggFVoAHkAZQBhHwAZAFEwADZYgAYuNFp6MgAzfAoGEkgMRVyiCnxsbkhmeCxEeAAvXPSPNCJISAMAOUcBSi4AZgB2ABYWgz8bCK5YXFxuRA4AejmidVhsAQ0mZjn8bjJEBHTcOYYPbEQaCjA0PHxEBjQvC+3lAgo57mwPDzn+oda/RG69lgshSaAkAEYEsNgiVsrkBFQMAxYFwohhMnC2gUAOLFUqQQBJhDBnKRcJAEZhkVxmNosK1grhqKcuE86QYbCQJPASAB3SizSC0NDMWj4AA0kCoyJIHiE3GarQiKhlAqE8Cocwk93gtDAFBI6UoZByw1C+uodHQnEgACYEjbYmAEgBWJ2xaDggCcHDtPoGAC0jAARaQMCjwbjifAYDgGHypPK8yDpbkeeiYejcE7MNQYZoYyAZLIm/JKSBFEplCpVWokDTmSyhFhsDC4ZAOJwuIxQVl7eAHMAMeB6wT4MlMdHqtj0XCwXK2SUGo1I6SQfxBMKRGLxKEZyCz6j7ueQABS6rQKEQDlyqC1Hh19agcFyxQEY8v1/TkB5zgwlWaB5krOL5LvqK70GeVAftguSwGgyCYCgGB3jq/B8BUV7/vuJIkGSUgUNU0bJlkR65IyFCkuSiJUigZIkAAHjsY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ht3hPNnweoNFH0MacE9NiEcZ+3byGZ6k4PZk+/uPdjtPbGbCvG7U/gYIujIivglwFsHcuaOLjj4EgEBrwb0ALHJ6BrwALXJbPBAGAYB6CAISEk1Q8k3XNoEkwSBIASAr4IOdB6Ar/bP/xb9POPLxMNB6AYAGGPL5oEkisL5sHurCvSAXJH7nJyAHloDXIIMkzQCP4bz6ASFoASBHNiD6FiDn6P4GFb7PMP/b9n/mMXLQEkxyBH/vMhH/09DAIMCfxxk/yAFSgFMSurVlvyy5CAO1HwDvQO8J9MChaEQEVYs8+eZflYCuAAhaAPgXAByBUx0BUK8TJsNS1LwJBABBgH3L9DgGYD/yPKf8pANuhAA -->
<!-- internal state end -->
i think we want to add a kubebuilder default validation here, as described in the docs https://book.kubebuilder.io/reference/markers/crd-validation.html
// Defaults to Disabled.
// +default:value="Disabled"
i think we want a default validation on the crd, also we should update the example ClusterAutoscaler to include a usage of the new field.
done
@shyadav10: all tests passed!
Full PR test history. Your PR dashboard.
<details>
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
</details>
<!-- test report -->
sorry, forgot to check back here. update looks great, thanks!
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/openshift/cluster-autoscaler-operator/pull/374#pullrequestreview-4311635671" title="LGTM">elmiko</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
@shyadav10 this just needs to be verified to merge. usually the author will verify based on a test or manually operating the patch. have you tried this out to make sure it works as expected?
verified
/verified by shyadav10
@shyadav10: This PR has been marked as verified by shyadav10.
<details>
In response to this:
>/verified by shyadav10
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>
elmiko
shyadav10
Add new field and plumbing for enforce node group min size
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added an enforceNodeGroupMinSize option to ClusterAutoscaler to enable or disable enforcement of minimum node group sizes (choices: Enabled/Disabled; defaults to Disabled).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->