Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow additional volume mounts on node pods #1670

Conversation

AndrewSirenko
Copy link
Contributor

Is this a bug fix or adding new feature?

Feature

What is this PR about? / Why do we need it?

Closes #1544

This PR adds a helm parameter that allows additional volume mounts on the node pods (and adds documentation on how to add additional volume mounts on the controller).

This would allow users to add their own mounts to the driver via the Helm parameters node.volumes and node.volumeMounts in this PR's values.yaml without needing to patch the driver.

What testing is done?

Tested on live k8s cluster.

  1. Installed the ebs-csi-driver to a test cluster with two additional volume mounts for node pods.
values.yaml
  1. Describing one of the node pods "kubectl describe pod ebs-csi-node-hstbp -n kube-system" the additional two volume mounts that were requested.
Additional Volumes Mounted

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 5, 2023
@k8s-ci-robot k8s-ci-robot requested review from ConnorJC3 and hanyuel July 5, 2023 13:56
@k8s-ci-robot
Copy link
Contributor

Hi @AndrewSirenko. 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.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 5, 2023
@AndrewSirenko
Copy link
Contributor Author

@ConnorJC3 Considering changing references of "node pods" to "driver's node pods" to avoid confusion. Or is this redundant?

here

@ConnorJC3
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot 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 Jul 5, 2023
@torredil
Copy link
Member

torredil commented Jul 5, 2023

/ok-to-test

Copy link
Contributor

@ConnorJC3 ConnorJC3 left a comment

Choose a reason for hiding this comment

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

/lgtm

Given that this is the config for the EBS CSI Driver chart, "driver's node pods" and "node pods" mean the same thing - there are no other node pods that users could be confused about.

Either wording is good in my opinion, as a matter of fact "node pods" is probably slightly better as it doesn't include obvious/redundant information.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 5, 2023
Copy link
Member

@torredil torredil left a comment

Choose a reason for hiding this comment

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

Requested small changes, otherwise largely lgtm

charts/aws-ebs-csi-driver/values.yaml Outdated Show resolved Hide resolved
charts/aws-ebs-csi-driver/values.yaml Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 5, 2023
@AndrewSirenko AndrewSirenko force-pushed the allowAdditionalVolMountsOnNode branch from 3de7fde to d1ebbc8 Compare July 5, 2023 14:38
@AndrewSirenko
Copy link
Contributor Author

Requested small changes, otherwise largely lgtm

Fixed in latest change @torredil

@AndrewSirenko AndrewSirenko requested a review from torredil July 5, 2023 14:42
Copy link
Member

@torredil torredil left a comment

Choose a reason for hiding this comment

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

Thanks for the quick turnaround, will let hanyuel take a look at this before approving /lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 5, 2023
@k8s-ci-robot
Copy link
Contributor

@AndrewSirenko: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-aws-ebs-csi-driver-test-e2e-external-eks-windows d1ebbc8 link false /test pull-aws-ebs-csi-driver-test-e2e-external-eks-windows

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@hanyuel
Copy link
Contributor

hanyuel commented Jul 6, 2023

/lgtm

@torredil
Copy link
Member

torredil commented Jul 6, 2023

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: torredil

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 Jul 6, 2023
@k8s-ci-robot k8s-ci-robot merged commit 92c93c2 into kubernetes-sigs:master Jul 6, 2023
@AndrewSirenko AndrewSirenko deleted the allowAdditionalVolMountsOnNode branch November 1, 2023 13:47
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. 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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add SELinux mounts
5 participants