Revert "TRT-2701: Revert "SPLAT-2793: Promoted VSphereMultiVCenterDay2 feature gate to TP""#2886
Revert "TRT-2701: Revert "SPLAT-2793: Promoted VSphereMultiVCenterDay2 feature gate to TP""#2886vr4manta wants to merge 1 commit into
Conversation
…2 feature gate to TP""
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@vr4manta: This pull request references TRT-2701 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 bug to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
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. |
|
Hello @vr4manta! Some important instructions when contributing to openshift/api: |
📝 WalkthroughWalkthroughThis PR promotes the Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yaml`:
- Around line 1376-1383: Update the Go field comment for the vcenters field to
document the new validation that forbids mixing additions and removals in a
single update (i.e., updates may add vCenters or remove vCenters but not both at
once), ensure the kubebuilder validation markers for these two rules are
described in that comment (per coding guidelines), then regenerate the CRD so
the YAML (controllerconfigs-TechPreviewNoUpgrade CRD) includes the updated field
description matching the admission rules. Make sure you edit the comment on the
vcenters field in the corresponding Go struct (the VCenters/vcenters field) and
run the CRD generation step.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 2f463a9f-569f-4673-9657-212ff8097f81
⛔ Files ignored due to path filters (3)
config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*openapi/openapi.jsonis excluded by!openapi/**
📒 Files selected for processing (6)
features.mdfeatures/features.gopayload-manifests/crds/0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yamlpayload-manifests/featuregates/featureGate-4-10-Hypershift-TechPreviewNoUpgrade.yamlpayload-manifests/featuregates/featureGate-4-10-SelfManagedHA-TechPreviewNoUpgrade.yaml
| - message: Cannot add and remove vCenters at the same | ||
| time | ||
| rule: 'size(self) >= size(oldSelf) ? oldSelf.all(x, | ||
| self.exists(y, y.server == x.server)) : true' | ||
| - message: Cannot add and remove vCenters at the same | ||
| time | ||
| rule: 'size(self) < size(oldSelf) ? self.all(x, | ||
| oldSelf.exists(y, y.server == x.server)) : true' |
There was a problem hiding this comment.
Document the new mixed add/remove restriction in the API comment.
These rules now reject a single update that both adds and removes vcenters, but the field description still says TechPreview clusters can “add and remove vCenters” without spelling out that those operations must happen in separate updates. Please update the source Go comment for vcenters and regenerate this CRD so the schema docs match the new admission behavior.
As per coding guidelines, "All kubebuilder validation markers must be documented in the field's comment" and the review must fail on "Any validation marker without corresponding documentation."
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yaml`
around lines 1376 - 1383, Update the Go field comment for the vcenters field to
document the new validation that forbids mixing additions and removals in a
single update (i.e., updates may add vCenters or remove vCenters but not both at
once), ensure the kubebuilder validation markers for these two rules are
described in that comment (per coding guidelines), then regenerate the CRD so
the YAML (controllerconfigs-TechPreviewNoUpgrade CRD) includes the updated field
description matching the admission rules. Make sure you edit the comment on the
vcenters field in the corresponding Go struct (the VCenters/vcenters field) and
run the CRD generation step.
Source: Coding guidelines
|
@vr4manta: This PR was included in a payload test run from openshift/installer#10614
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/dd5354a0-64ff-11f1-9551-7241ecef6134-0 |
Reverts #2885