Skip to content

Update Helm chart - #280

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:mainfrom
OguzPastirmaci:helm-chart-parity
Aug 7, 2026
Merged

Update Helm chart#280
kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:mainfrom
OguzPastirmaci:helm-chart-parity

Conversation

@OguzPastirmaci

@OguzPastirmaci OguzPastirmaci commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

install.yaml mounts /var/run/dranet from the host. The Helm chart did not include this mount.

The Dranet binary stores its bbolt database at /var/run/dranet/dranet.db by default. Without the host mount, the database stays in the container file system. Kubernetes removes this database when it replaces the Dranet pod.

Dranet stores prepared pod device configuration in this database. The NRI hooks need this configuration after a Dranet restart.

This PR mounts the host /var/run/dranet directory in the Dranet container. The host path uses DirectoryOrCreate. The database now survives Dranet pod replacement.

This PR also:

  • Adds Helm values for dbPath, profileProvider, webhookURL, and featureGates.
  • Adds webhook as a cloud provider hint.
  • Lets users add service account annotations.
  • Validates webhook settings and database paths.

Which issue(s) this PR is related to:

N/A

Special notes for your reviewer:

All new argument values are optional. If users omit a value, the Dranet binary uses its built in default.

Set args.dbPath to an empty string to disable database persistence. If users set a custom database path, they must place it under /var/run/dranet.

An older chart stores the database in the container file system. Dranet cannot move this database to the new host mount during an upgrade.

Before the first upgrade, stop pods that use Dranet managed devices. Wait for the pods to terminate. Then upgrade the Helm release.

Does this PR introduce a user-facing change?

Updated the Helm chart to preserve pod device configuration across pod replacements. Action required: before you upgrade from a chart that does not mount `/var/run/dranet`, stop pods that use devices managed by Dranet.

@kubernetes-prow kubernetes-prow Bot 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. labels Aug 6, 2026
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for dranet canceled.

Name Link
🔨 Latest commit dbc84b5
🔍 Latest deploy log https://app.netlify.com/projects/dranet/deploys/6a765ece28d7a1000881ddf9

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 6, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

Hi @OguzPastirmaci. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@kubernetes-prow kubernetes-prow Bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 6, 2026
@fmuyassarov

Copy link
Copy Markdown
Member

/cc @fmuyassarov

@kubernetes-prow
kubernetes-prow Bot requested a review from fmuyassarov August 6, 2026 07:33
@fmuyassarov

Copy link
Copy Markdown
Member

/ok-to-test

@kubernetes-prow kubernetes-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 6, 2026

@fmuyassarov fmuyassarov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fixes @OguzPastirmaci . It is true that directory mounting was missed as part of #115 implementation and I don't see any reason to not replicate it to Helm charts. +1 from me.

However regarding the template validation, in my experience bash script can become difficult to maintain over time and it also doesn't provide much in terms of structured assertions. I do think validation is something we should have but maybe it would be worth checking if something like https://github.com/helm-unittest/helm-unittest would be a better fit? It doesn't have to be done in this patch. I’m completely fine to see it as a follow up. And if you would rather not spend time on it that's completely fine, I can take a look into it.

Comment thread .github/workflows/helm-lint.yml Outdated
Comment thread .github/workflows/helm-lint.yml Outdated
Comment thread deployments/helm/dranet/README.md Outdated
Comment thread deployments/helm/dranet/README.md Outdated
Comment thread deployments/helm/dranet/values.yaml Outdated
Comment thread hack/verify-helm.sh Outdated
@OguzPastirmaci

Copy link
Copy Markdown
Contributor Author

Thanks for the fixes @OguzPastirmaci . It is true that directory mounting was missed as part of #115 implementation and I don't see any reason to not replicate it to Helm charts. +1 from me.

However regarding the template validation, in my experience bash script can become difficult to maintain over time and it also doesn't provide much in terms of structured assertions. I do think validation is something we should have but maybe it would be worth checking if something like https://github.com/helm-unittest/helm-unittest would be a better fit? It doesn't have to be done in this patch. I’m completely fine to see it as a follow up. And if you would rather not spend time on it that's completely fine, I can take a look into it.

Thanks for the review, @fmuyassarov. I addressed the comments and removed the shell verifier. I will start a separate discussion about Helm chart validation.

@fmuyassarov fmuyassarov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@fmuyassarov

Copy link
Copy Markdown
Member

/lgtm

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 7, 2026
@fmuyassarov

Copy link
Copy Markdown
Member

@aojea @gauravkghildiyal could you folks help with approval here if LGTY too?

@gauravkghildiyal gauravkghildiyal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @OguzPastirmaci

One small question and this should be good to go.

Comment thread deployments/helm/dranet/README.md Outdated
@fmuyassarov

Copy link
Copy Markdown
Member

Forgot to comment, if you are going to make another push, I would kindly ask to perhaps squash the last commit (9b906a1) into the first one

@kubernetes-prow kubernetes-prow Bot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 7, 2026
@gauravkghildiyal

Copy link
Copy Markdown
Member

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 7, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmuyassarov, gauravkghildiyal, OguzPastirmaci

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

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 7, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit afef014 into kubernetes-sigs:main Aug 7, 2026
14 checks passed
@OguzPastirmaci
OguzPastirmaci deleted the helm-chart-parity branch August 8, 2026 00:28
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants