Skip to content

fix: correct storageclass annotations and node dnsPolicy in latest chart#1102

Merged
andyzhangx merged 1 commit intokubernetes-csi:masterfrom
andyzhangx:fix-latest-chart-issues
Apr 18, 2026
Merged

fix: correct storageclass annotations and node dnsPolicy in latest chart#1102
andyzhangx merged 1 commit intokubernetes-csi:masterfrom
andyzhangx:fix-latest-chart-issues

Conversation

@andyzhangx
Copy link
Copy Markdown
Member

What type of PR is this?
/kind bug

What this PR does / why we need it:
Fixes two issues in charts/latest/ that were already fixed in charts/v4.13.2/ (PR #1099) but not applied to the latest chart:

  1. storageclass.yaml: annotations: key was rendered outside the with block, causing annotations: null when .Values.storageClass.annotations is unset
  2. csi-nfs-node.yaml: node DaemonSet dnsPolicy was using .Values.controller.dnsPolicy instead of .Values.node.dnsPolicy

Changes:

  • storageclass.yaml: move annotations: inside the with block
  • csi-nfs-node.yaml: use .Values.node.dnsPolicy
  • Regenerated helm chart tgz

- Move annotations key inside with block to avoid rendering null annotations
- Fix node DaemonSet dnsPolicy to use node.dnsPolicy instead of controller.dnsPolicy
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 17, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2026
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 17, 2026
@andyzhangx andyzhangx removed the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Apr 17, 2026
@andyzhangx andyzhangx requested a review from Copilot April 17, 2026 14:52
Copy link
Copy Markdown

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

Aligns the charts/latest/ Helm chart templates with fixes already present in the v4.13.2 chart, addressing incorrect rendering/values wiring in the “latest” chart variant.

Changes:

  • Fix storageclass.yaml so metadata.annotations is only rendered when .Values.storageClass.annotations is set (avoids annotations: null).
  • Fix csi-nfs-node.yaml to source the node DaemonSet dnsPolicy from .Values.node.dnsPolicy (not the controller value).
  • Regenerate the packaged Helm chart archive (csi-driver-nfs-v0.0.0.tgz).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
charts/latest/csi-driver-nfs/templates/storageclass.yaml Wraps annotations: under a with block so it isn’t emitted when unset.
charts/latest/csi-driver-nfs/templates/csi-nfs-node.yaml Corrects dnsPolicy to use the node-specific values key.
charts/latest/csi-driver-nfs-v0.0.0.tgz Updates the packaged chart artifact to include the template changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

andyzhangx added a commit to andyzhangx/csi-driver-nfs that referenced this pull request Apr 17, 2026
Cherry-pick of PR kubernetes-csi#1102 for release-4.13 branch.

- Move annotations key inside with block to avoid rendering null annotations
- Fix node DaemonSet dnsPolicy to use node.dnsPolicy instead of controller.dnsPolicy
@andyzhangx andyzhangx requested a review from Copilot April 18, 2026 01:14
Copy link
Copy Markdown

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 2 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andyzhangx andyzhangx merged commit 6f17b9b into kubernetes-csi:master Apr 18, 2026
25 of 26 checks passed
andyzhangx added a commit to andyzhangx/csi-driver-nfs that referenced this pull request Apr 18, 2026
…rt-issues

fix: correct storageclass annotations and node dnsPolicy in latest chart
andyzhangx added a commit that referenced this pull request Apr 18, 2026
fix: cherry-pick #1102 - correct storageclass annotations and node dnsPolicy in latest chart
andyzhangx added a commit to andyzhangx/csi-driver-nfs that referenced this pull request Apr 19, 2026
Cherry-pick of PR kubernetes-csi#1102 for release-4.13 branch.

- Move annotations key inside with block to avoid rendering null annotations
- Fix node DaemonSet dnsPolicy to use node.dnsPolicy instead of controller.dnsPolicy
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants