-
Notifications
You must be signed in to change notification settings - Fork 277
feat(chart): refactor helm chart #540
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
Conversation
|
FYI @bwagner5 |
b59eac6 to
41d1a9d
Compare
|
@bwagner5 I'm getting an interesting failure on the fast tests that doesn't look anything to do with this PR? |
62542e1 to
7a50f1e
Compare
|
Looks like a kubectl error having to do with a selector: |
|
@bwagner5 I wonder if it's related to my change of NOTES.txt? I've been a bit busy but will try and update the README and then test the E2E scripts locally. It'd be good to get your thoughts on the changes if there is anything you want clarifying or changing before I spend the effort on the README. |
|
Just a note that #529 was merged recently (between when you opened this PR) that adds customLabels to the helm chart. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is trending in the right direction! Thanks for doing this!
7a50f1e to
cececa7
Compare
|
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want this PR to never become stale, please ask a maintainer to apply the "stalebot-ignore" label. |
|
/not-stale |
|
Sorry for the delay! I've been off for the holidays. |
978ff1d to
2b66407
Compare
|
@bwagner5 I've got the tests fixed, it was a side effect of the old daemonset values being applied to a deployment making the tests work. If you're happy with the work so far I'll finish off the README for final review? |
Yep! LGTM! |
2b66407 to
1e8adf1
Compare
|
@bwagner5 after making a few minor changes I've updated the PR description and the chart README ready for review. I looked through the code and it looks like the ASG tagging is only used in the queue processor mode and the metadata config is only used by the IMDS mode, could you confirm this? |
1e8adf1 to
f24aae9
Compare
Yes, that is correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the one comment on the chart version and then I think this is good to merge!
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
f24aae9 to
72416ae
Compare
|
@bwagner5 I've reverted the chart version so once the tests go though I think we're ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Thanks!
| {{- define "aws-node-termination-handler.selectorLabelsDeployment" -}} | ||
| {{ include "aws-node-termination-handler.selectorLabels" . }} | ||
| app.kubernetes.io/component: deployment | ||
| {{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please be mindful when changing immutable fields, it requires additional work when updating the helm chart to ensure high availability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cainelli this work was intended to be a breaking change and these changes were fully intentional and made with the understanding of the implications. I think there might have been a some missed communication when this was released (see above) but technically all changes to a pre v1 SemVer package are breaking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying @stevehipwell and sorry for the grumpiness.
|
@stevehipwell Hey, |
|
@tamirhad because it's only relevant to the IMDS mode. I did notice earlier that in some of the AWS docs they incorrectly specify setting it for queue mode. |
Description of changes:
This PR updates the Helm chart to use the Helm 3
v2API and to follow the latest idiomatic pattern; this should lower the cognitive complexity of the chart and make it easier to keep maintained moving forwards.A summary of the important changes are as follows:
v2and only support Helm 3jobLabellogic inServiceMonitor/PodMonitorFixes #518.
Breaking Changes:
The following changes are technically breaking but should have no impact on the use of NTH in Queue mode and require only minor changes for NTH in IMDS mode.
All Modes:
gracePeriodQueue Mode:
hostNetworkordnsPolicyIMDS Mode:
priorityClassNameand usedaemonsetPriorityClassNamelinuxUpdateStrategy&windowsUpdateStrategyBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.