STOR-2967: Update SnapshotMetadataService CRD asset from v1alpha1 to v1beta1 - #279
Conversation
…v1beta1 Replace the SnapshotMetadataService CRD with the v1beta1 version from upstream kubernetes-csi/external-snapshot-metadata v1.0.0. Upstream v1.0.0 removed v1alpha1 entirely (PR openshift#215). The rebased sidecar (STOR-2965) only speaks v1beta1, so the CRD must match. Breaking change: Existing v1alpha1 SnapshotMetadataService CRs from DevPreview clusters are not preserved. DevPreview clusters cannot be upgraded — users must destroy and reprovision. No operator Go code changes needed — the existing conditional deployment logic in starter.go already handles this CRD behind the ExternalSnapshotMetadata feature gate.
|
@RomanBednar: This pull request references STOR-2967 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. 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. |
WalkthroughThis PR updates the ChangesCRD Version Promotion
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 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)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RomanBednar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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 `@assets/snapshotmetadataservices.yaml`:
- Line 20: The CRD in assets/snapshotmetadataservices.yaml was switched to
v1beta1 only (removed v1alpha1) without a conversion webhook, risking loss of
existing v1alpha1 CRs; confirm the operator's ExternalSnapshotMetadata
feature-gate behavior in pkg/operator/starter.go to ensure
DevPreview/TechPreviewNoUpgrade semantics guarantee reprovision/recreate (no
persisted v1alpha1 CRs), search the repo and test/staging clusters for any
v1alpha1 SnapshotMetadataService instances, and then either (A) restore backward
compatibility by adding a v1alpha1 entry to spec.versions or implement a
conversion webhook, or (B) document the breaking change in release notes/upgrade
docs with explicit operator actions for migrating or recreating v1alpha1 CRs.
🪄 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: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 27cd34c1-eaff-4afc-886a-7781776479e8
📒 Files selected for processing (1)
assets/snapshotmetadataservices.yaml
|
/hold Wait for openshift/api#2887 to merge. |
|
/retest |
|
/retest-required |
|
/verified by CI |
|
@RomanBednar: This PR has been marked as verified by 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. |
|
/lgtm I checked the OCP yaml is idential to the upstream one |
|
/retest |
|
@RomanBednar: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
Update the
SnapshotMetadataServiceCRD asset fromv1alpha1tov1beta1, sourced from upstream kubernetes-csi/external-snapshot-metadata v1.0.0.No Go code changes — the existing conditional deployment logic in
starter.goalready handles this CRD behind theExternalSnapshotMetadatafeature gate.Breaking Change
Existing
v1alpha1SnapshotMetadataService CRs from DevPreview clusters are not preserved. DevPreview clusters cannot be upgraded — users must destroy and reprovision. This is expected for the DevPreview → TechPreview graduation.Dependencies
TechPreviewNoUpgrade) merging firstReferences
Summary by CodeRabbit