Skip to content

MG-68: Proposal for PVC configuration in MustGather spec - #1839

Merged
openshift-merge-bot[bot] merged 3 commits into
openshift:masterfrom
shivprakashmuley:pvc-enhancement
Oct 10, 2025
Merged

openshift-merge-bot[bot] merged 3 commits into
openshift:masterfrom
shivprakashmuley:pvc-enhancement

Conversation

@shivprakashmuley

Copy link
Copy Markdown
Contributor

This PR is part of https://issues.redhat.com/browse/MG-68.

This PR includes proposal to introduce a new API field in must-gather-operator spec for adding PersistentVolumeClaim which will be used for storing gathered data from must-gather jobs/pods.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 4, 2025
@openshift-ci-robot

openshift-ci-robot commented Sep 4, 2025 •

Copy link
Copy Markdown

@shivprakashmuley: This pull request references MG-68 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 "4.21.0" version, but no target version was set.

Details

In response to this:

This PR is part of https://issues.redhat.com/browse/MG-68.

This PR includes proposal to introduce a new API field in must-gather-operator spec for adding PersistentVolumeClaim which will be used for storing gathered data from must-gather jobs/pods.

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.


## Summary

Introduce a required field in the `MustGather` custom resource that specifies a PersistentVolumeClaim (PVC) as the destination for gathered artifacts. The must-gather operator mounts the referenced PVC into the gather pod so that all content written to `/must-gather` is persisted to the PVC.

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.

should this be required or optional? can we just default to ephemeral and enable pvcs only if necessary?

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.

This would be useful for CI or certain deployments where we might not have the ability to deploy pvs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed it to optional @Prashanth684 .

### User Stories

- As a cluster administrator, I want must-gather output stored on a pre-provisioned PVC so that I can collect large datasets without failing due to ephemeral volume limits.
- As a support engineer, I want artifacts retained on a PVC with a defined retention policy so that I can audit and compare multiple runs.

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.

typically the must-gathers are copied out of the cluster immediately right?

@Prashanth684

Copy link
Copy Markdown
Contributor

/approved

@Prashanth684 Prashanth684 added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 10, 2025
@openshift-ci

openshift-ci Bot commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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

@openshift-ci

openshift-ci Bot commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

@shivprakashmuley: 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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit df1fada into openshift:master Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants