CNTRLPLANE-3699: Filter VolumeSnapshot resources from dump when CSISnapshot capability is disabled#8986
Conversation
…bility is disabled Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@hypershift-jira-solve-ci[bot]: This pull request references CNTRLPLANE-3699 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 task 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hypershift-jira-solve-ci[bot] 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8986 +/- ##
=======================================
Coverage 43.67% 43.68%
=======================================
Files 771 771
Lines 95840 95832 -8
=======================================
- Hits 41862 41860 -2
+ Misses 51067 51061 -6
Partials 2911 2911
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Now I have the complete picture from both jobs. Let me verify one more thing — looking at the exact error from the GHA job and the Prow job: GitHub Actions (verify / Verify): The failure is at the Prow (verify-deps): The failure is a transient Go module proxy HTTP/2 stream error when downloading These are two distinct failures with different root causes. Let me provide the final report: Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryTwo independent failures occurred. The GitHub Actions verify job failed because the PR's committed documentation files ( Root CauseGitHub Actions (verify / Verify) — Stale generated docs (real failure, requires code fix): The PR adds
This typically happens when the PR branch is not rebased on the latest Prow (verify-deps) — Transient Go module proxy failure (infrastructure flake): The Recommendations
Evidence
|
|
@hypershift-jira-solve-ci[bot]: The following test failed, say
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. |
What this PR does / why we need it:
Adds
CSISnapshotas a newOptionalCapabilityand filtersVolumeSnapshotClassandVolumeSnapshotContentresources from the guest cluster dump when the CSISnapshot capability is disabled.Previously, the dump always attempted to collect VolumeSnapshot resources regardless of whether the CSISnapshot capability was enabled, which could cause errors or unnecessary noise when the capability was disabled. This resolves a TODO that was left in the code.
Changes:
CSISnapshotto theOptionalCapabilityenum and defineCSISnapshotCapabilityconstantDumpGuestClusterto accept*hyperv1.Capabilitiesand conditionally include VolumeSnapshot resources only when CSISnapshot is enabledIsCSISnapshotCapabilityEnabledhelper in thecapabilitiespackage with unit tests--disable-cluster-capabilitiesand--enable-cluster-capabilitiesto includeCSISnapshotWhich issue(s) this PR fixes:
Fixes https://redhat.atlassian.net/browse/CNTRLPLANE-3699
Special notes for your reviewer:
The
IsCSISnapshotCapabilityEnabledfunction follows the same pattern as the existingIsIngressCapabilityEnabledandIsImageRegistryCapabilityEnabledhelpers.Checklist:
Always review AI generated responses prior to use.
Generated with Claude Code via openshift-developer plugin