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

Remove unnecessary delete daemonset permission #140

Merged
merged 3 commits into from
Apr 27, 2020
Merged

Conversation

haugenj
Copy link
Contributor

@haugenj haugenj commented Apr 16, 2020

Issue #138, if available:

Description of changes:

Deleted the the line in the cluster role config file that gives NTH permission to delete daemonsets.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -36,4 +36,3 @@ rules:
- daemonsets
verbs:
- get
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, why does the node termination handler need any access to daemonset or replicaset resources? AFAIK, NTH only queries Node?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I'll test it out removing those as well and see if there's any gotchas

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just a small update, removing the get daemonset permissions is causing the e2e test to break so I'm looking into what's going on there. I'm not totally convinced it's a real error rather than a problem with the test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like the daemonset get permissions are required so that we can filter out the daemonsets within the RunNodeDrain call: https://github.com/kubernetes/kubernetes/blob/fb6f5d739b08e049b188806d6e33099f85fad2fe/staging/src/k8s.io/kubectl/pkg/drain/drain.go#L189

I haven't had any issues with removing the replicaset permissions though, so I'll take that out in a new revision.

@haugenj
Copy link
Contributor Author

haugenj commented Apr 27, 2020

Corresponding change to the eks-chart aws/eks-charts#114

@jillmon jillmon merged commit fc64d27 into aws:master Apr 27, 2020
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants