Skip to content

feat: set node pool min version in the frontend to 4.20.8 for all users - #6659

Open
Jameel Briones (JameelB) wants to merge 1 commit into
Azure:mainfrom
JameelB:feat/disable-np-installs-using-version-below-4.20.8
Open

feat: set node pool min version in the frontend to 4.20.8 for all users#6659
Jameel Briones (JameelB) wants to merge 1 commit into
Azure:mainfrom
JameelB:feat/disable-np-installs-using-version-below-4.20.8

Conversation

@JameelB

@JameelB Jameel Briones (JameelB) commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

JIRA: https://redhat.atlassian.net/browse/ARO-29063

What

Disables support for node pool install and upgrades using ocp versions under 4.20.8 for all users.

This follows on from #6609

Why

4.20.8 was selected for the min version as versions below this were missing some features, mostly related to allowing dynamic retrieval of azure marketplace images for node pools. Moving away from these versions will allow us to remove any hardcoded marketplace images in the future.

Testing

Special notes for your reviewer

N/A

PR Checklist

  • PR is scoped to a single task (no mixed concerns)
  • Title follows Conventional Commits format
  • Summary explains the "Why" behind the change
  • Linked to relevant ticket/issue
  • Screenshots included (if graph/UI/metrics changes)
  • Self-reviewed the diff
  • CI/CD checks are passing (ignore Tide)
  • Draft PR used for WIP (if applicable)
  • Commit history is clean (rebased/squashed)
  • Tricky code blocks are commented
  • Specific reviewers tagged
  • All comment threads resolved before merge

If E2E tests are included:

  • E2E tests follow Principles of Good E2E Test Case Design
  • If new E2E use case is covered (via a new test or new check/verifier),
    demonstrate that the test is able to detect a defect/error and fail with
    proper error message and logs which communicates nature of the problem.

Disables support for node pool install and upgrades using ocp versions under
4.20.8 for all users.

4.20.8 was selected for the min version as versions below this were missing some features,
mostly related to allowing dynamic retrieval of azure marketplace images for node pools.
Moving away from these versions will allow us to remove any hardcoded marketplace images
in the future.

JIRA: https://redhat.atlassian.net/browse/ARO-29063
Copilot AI lite review requested due to automatic review settings August 24, 2026 15:43
@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: JameelB
Once this PR has been reviewed and has the lgtm label, please assign mbarnes for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR raises the minimum allowed OpenShift version for node pool create/upgrade to 4.20.8 for all users by enforcing the check unconditionally (i.e., no longer allowing lower versions even with the experimental release features flag). It also removes/updates integration and unit tests that previously validated node pool creation below that minimum.

Changes:

  • Enforce node pool properties.version.id >= 4.20.8 regardless of feature flags.
  • Remove integration test artifacts that created a 4.20.0 node pool under experimental features.
  • Update comprehensive node pool validation tests to reflect the new minimum-version behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test-integration/frontend/artifacts/FrontendCRUD/NodePool/experimental-features/06-setClusterServiceID-node-pool-420/00-key.json Removes an experimental integration-test step tied to a 4.20.0 node pool scenario.
test-integration/frontend/artifacts/FrontendCRUD/NodePool/experimental-features/05-httpCreate-node-pool-420/nodepool-4.20.0.json Removes an integration-test payload that creates a node pool at version 4.20.0 (now below minimum).
test-integration/frontend/artifacts/FrontendCRUD/NodePool/experimental-features/05-httpCreate-node-pool-420/00-key.json Removes the integration-test key file for the removed 4.20.0 node pool create step.
internal/validation/validate_nodepools.go Moves/enforces the minimum node pool version check so it applies to all users (including experimental-flag users).
internal/validation/validate_nodepools_comprehensive_test.go Updates node pool validation test cases to align with the new minimum version behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 274 to +289
// Skip version format validation if version hasn't changed
if oldObj == nil || newObj.ID != oldObj.ID {
errs = append(errs, OpenShiftWithOptionalPrerelease(ctx, op, fldPath.Child("id"), &newObj.ID, safe.Field(oldObj, toNodePoolVersionProfileID))...)
}

//ChannelGroup string `json:"channelGroup,omitempty"`
errs = append(errs, validate.RequiredValue(ctx, op, fldPath.Child("channelGroup"), &newObj.ChannelGroup, safe.Field(oldObj, toNodePoolVersionProfileChannelGroup))...)

if !op.HasOption(metadataapi.FeatureExperimentalReleaseFeatures) {
errs = append(errs, validate.Enum(ctx, op, fldPath.Child("channelGroup"), &newObj.ChannelGroup, safe.Field(oldObj, toNodePoolVersionProfileChannelGroup), metadataapi.AllowedChannelGroups, nil)...)
// without feature flag, only allow version 4.20.8 and above
errs = append(errs, VersionMustBeAtLeast(ctx, op, fldPath.Child("id"), &newObj.ID, safe.Field(oldObj, toNodePoolVersionProfileID), "4.20.8")...)
} else {
errs = append(errs, validate.Enum(ctx, op, fldPath.Child("channelGroup"), &newObj.ChannelGroup, safe.Field(oldObj, toNodePoolVersionProfileChannelGroup), metadataapi.AllowedChannelGroupsWithExperimentalFlag, nil)...)
}

errs = append(errs, VersionMustBeAtLeast(ctx, op, fldPath.Child("id"), &newObj.ID, safe.Field(oldObj, toNodePoolVersionProfileID), "4.20.8")...)

Comment on lines 1809 to 1813
opOptions: testNodePoolFeatureOptions(metadataapi.FeatureExperimentalReleaseFeatures),
expectErrors: []utils.ExpectedError{
{Message: "Invalid character(s) found in patch number", FieldPath: "properties.version.id"},
{Message: "Invalid character(s) found in patch number", FieldPath: "properties.version.id"},
},
@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown

Jameel Briones (@JameelB): The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/integration bdc8996 link true /test integration
ci/prow/test-unit bdc8996 link true /test test-unit
ci/prow/e2e-parallel bdc8996 link true /test e2e-parallel

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.

@hlipsig

Copy link
Copy Markdown
Contributor

The copilot feedback looks good. Address those points and then I think this is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants