-
Notifications
You must be signed in to change notification settings - Fork 274
Allow the NTHManagedAsg tag to be configurable #287
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
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 build is failing due to unit tests:
pkg/monitor/sqsevent/sqs-monitor_internal_test.go:51: undefined: NTHManagedASG
pkg/monitor/sqsevent/sqs-monitor_test.go:542: undefined: NTHManagedASG
I wasn't sure the best way to really fix that because passing a string to |
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 unit tests are still failing. After some deep dive:
- Looks like you need to initialize SQSMonitor with a
ManagedAsgTag
set to the default/tag value; otherwise theif *tag.Key == m.ManagedAsgTag
fails
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.
Could you also update the Helm artifacts in this folder including ReadMe so that ManagedAsgTag
can also be configurable as a Helm param?
the files should be:
edit: removing daemonset configs
I don't see any of the related queue processor variables ( |
Ahh sorry that's my mistake. queue-processor vars shouldn't be in daemonset configs at all; i'll remove from comment |
978a5ef
to
b05d777
Compare
Codecov Report
@@ Coverage Diff @@
## main #287 +/- ##
==========================================
- Coverage 77.10% 74.76% -2.35%
==========================================
Files 17 17
Lines 1162 1169 +7
==========================================
- Hits 896 874 -22
- Misses 226 253 +27
- Partials 40 42 +2
Continue to review full report at Codecov.
|
Are those failures in Travis related? Seems like they're from |
Correct-- these failures aren't related to your changes. |
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 👍🏼
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!
Removes the
NTHManagedASG
tag constant in favor of a configurableManagedAsgTag
option to allow you to run NTH in queue mode across multiple clusters in an account. EC2 instance events don't have any filtering ability currently, which will cause NTH to drop into a crash loop when it runs into an error while trying to cordon a node that doesn't exist in the cluster. See here.Fixes #272