-
Notifications
You must be signed in to change notification settings - Fork 2k
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
nomad operator debug - add client node filtering arguments #9331
Conversation
@@ -69,9 +71,15 @@ Debug Options: | |||
-log-level=<level> | |||
The log level to monitor. Defaults to DEBUG. | |||
|
|||
-max-nodes=<count> |
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.
I'm trying to see if there is any precedent for having unlimited be -1, so that you can actually specify 0
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.
If you don't specify -node-id
then -max-nodes
doesn't apply. In testing though I discovered that the max node count notice is incorrectly displayed in that case.
|
||
// Create the output directory | ||
var tmp string | ||
if output != "" { |
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.
squinting at this block of code seems like it may be a nice candidate to pull out to a function, not a blocker though. I am curious why we defer removing the tmp directory? is it copied or moved somewhere down the road?
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.
The idea is to ensure that the temp directory is cleaned up before exit, regardless of any errors that may occur.
In local testing I have code that uses the NOMAD_TEST_SKIPCLEANUP
environment variable to conditionally clean up (idea lifted from the E2E framework). If you think it's useful I can commit that as well.
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.
changes look good to me, don't forget a changelog entry and also the website/ docs need to be updated with the new flags
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Adds
max-nodes
,node-id=all
, andnode-class
cmdline arguments tonomad operator debug
From the helpText: