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

Add Affinity to DaemonSet #377

Conversation

karaktaka
Copy link
Contributor

Is this a bug fix or adding new feature?
Feature: Fixes #376

What is this PR about? / Why do we need it?
See Issue #376

What testing is done?
This chart is currently deployed in our cluster and is working fine (besides, it's a very small change)

Copy link

linux-foundation-easycla bot commented Feb 22, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: karaktaka / name: Dennis (27eb9b6)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Feb 22, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @karaktaka!

It looks like this is your first PR to kubernetes-sigs/aws-fsx-csi-driver 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/aws-fsx-csi-driver has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 22, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @karaktaka. 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 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Feb 22, 2024
@jacobwolfaws
Copy link
Contributor

Hi @karaktaka, can you rebase the commits into a single commit?

@karaktaka karaktaka force-pushed the f_enable-affinity-for-helm-chart branch from 831e42f to 4c23523 Compare March 4, 2024 14:54
@karaktaka
Copy link
Contributor Author

Hi @karaktaka, can you rebase the commits into a single commit?

Hey @jacobwolfaws,
certainly. Does this work for you?

@jacobwolfaws
Copy link
Contributor

jacobwolfaws commented Mar 12, 2024

Sorry for the delayed response,

I think it would make sense to add something like this from the ebs-csi-driver: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/charts/aws-ebs-csi-driver/values.yaml#L336-L344 where this is automatically set for users, but affinity is still configurable. Would like to hear your thoughts on that. Otherwise, this looks good to me.

@torredil
Copy link
Member

torredil commented Apr 9, 2024

/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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 9, 2024
@karaktaka
Copy link
Contributor Author

Sorry for the delayed response,

I think it would make sense to add something like this from the ebs-csi-driver: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/charts/aws-ebs-csi-driver/values.yaml#L336-L344 where this is automatically set for users, but affinity is still configurable. Would like to hear your thoughts on that. Otherwise, this looks good to me.

I just added the values from the ebs chart as I think they make sense like that.

@jacobwolfaws
Copy link
Contributor

jacobwolfaws commented Apr 12, 2024

Sorry for the delayed response,
I think it would make sense to add something like this from the ebs-csi-driver: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/charts/aws-ebs-csi-driver/values.yaml#L336-L344 where this is automatically set for users, but affinity is still configurable. Would like to hear your thoughts on that. Otherwise, this looks good to me.

I just added the values from the ebs chart as I think they make sense like that.

No worries, sorry I should have been more clear. This restriction doesn't apply to our driver:

          - key: node.kubernetes.io/instance-type
            operator: NotIn
            values:
            - a1.medium
            - a1.large
            - a1.xlarge
            - a1.2xlarge
            - a1.4xlarge

only the fargate default is needed for us
also can you rebase the commits into a single commit? Other than these two things looks good imo. Will look at why the e2e test is failing for you.


e2e test failure:

 Error: nodes-us-west-2a.spec.image: Invalid value: "137112412989/amzn2-ami-hvm-2.0.20220218.3-x86_64-gp2": image specified is invalid: "137112412989/amzn2-ami-hvm-2.0.20220218.3-x86_64-gp2" 

I'll put up a fix for this, is unrelated to your PR

@jacobwolfaws
Copy link
Contributor

@karaktaka sorry for taking so long on this, it seems like I don't get notifications when changes are force-pushed 🤔 . One tiny nit 😅 and I've put up a PR for pinning to a new AMI.

use correct values

add default values for affinity

na

one line
@karaktaka karaktaka force-pushed the f_enable-affinity-for-helm-chart branch from 0f19ae2 to 27eb9b6 Compare May 6, 2024 07:29
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.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 8, 2024
@jacobwolfaws
Copy link
Contributor

jacobwolfaws commented May 10, 2024

tested and behavior appears to work as expected.
Thanks @karaktaka for your contribution to the driver!
/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jacobwolfaws, karaktaka

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 May 10, 2024
@k8s-ci-robot k8s-ci-robot merged commit bea5a26 into kubernetes-sigs:master May 10, 2024
5 checks passed
@toneill818
Copy link

Can a new release of the helm chart be created with this change?

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 Affinity to DaemonSet
5 participants