Skip to content

fix(collector): pass storageClassName to generated StatefulSet PVC#1963

Open
acidroper wants to merge 2 commits into
fluent:masterfrom
acidroper:fix/collector-storageclass-pvc
Open

fix(collector): pass storageClassName to generated StatefulSet PVC#1963
acidroper wants to merge 2 commits into
fluent:masterfrom
acidroper:fix/collector-storageclass-pvc

Conversation

@acidroper
Copy link
Copy Markdown

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1962

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


Copilot AI review requested due to automatic review settings May 20, 2026 12:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes Collector-generated StatefulSet PVC templates to preserve the user-specified storageClassName, aligning Collector behavior with expected PVC configuration and addressing #1962.

Changes:

  • Pass spec.pvc.spec.storageClassName through to the generated StatefulSet.spec.volumeClaimTemplates[].spec.storageClassName.

Comment on lines 172 to +176
Spec: corev1.PersistentVolumeClaimSpec{
AccessModes: bufferPvc.AccessModes,
Resources: bufferPvc.Resources,
VolumeMode: bufferPvc.VolumeMode,
AccessModes: bufferPvc.AccessModes,
Resources: bufferPvc.Resources,
VolumeMode: bufferPvc.VolumeMode,
StorageClassName: bufferPvc.StorageClassName,
@cw-Guo
Copy link
Copy Markdown
Collaborator

cw-Guo commented May 27, 2026

Hi @acidroper , Thanks for your contributions, but can you please fix the DCO check first?

@acidroper acidroper force-pushed the fix/collector-storageclass-pvc branch from 8b25585 to a489bdb Compare May 28, 2026 05:50
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.

bug: Collector CRD ignores storageClassName when generating StatefulSet volumeClaimTemplates

3 participants