Skip to content

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

Merged
cw-Guo merged 3 commits into
fluent:masterfrom
acidroper:fix/collector-storageclass-pvc
May 28, 2026
Merged

fix(collector): pass storageClassName to generated StatefulSet PVC#1963
cw-Guo merged 3 commits into
fluent:masterfrom
acidroper:fix/collector-storageclass-pvc

Conversation

@acidroper
Copy link
Copy Markdown
Contributor

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
Copilot AI review requested due to automatic review settings May 28, 2026 20:15
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@cw-Guo cw-Guo merged commit 8d0c3ad into fluent:master May 28, 2026
10 checks passed
@cw-Guo
Copy link
Copy Markdown
Collaborator

cw-Guo commented May 28, 2026

@acidroper Thanks!

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