Repository navigation
Allow disabling KWOK Node YAML logging - #1394
Open
Leonard Du (LeonardCareer) wants to merge 6 commits into
Open
Leonard Du (LeonardCareer) wants to merge 6 commits into
Leonard Du (LeonardCareer) wants to merge 6 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change making KWOK Node YAML logging opt-in.
No open issues 🎉
What changed in this PR
Makes rendered KWOK Node YAML logging opt-in to reduce default log output while preserving manifest logging for other template callers.
Changes:
- Adds
--print-node-yamland passes it through to node template rendering. - Logs templates once after all replacements, with a keyword-only option to suppress logging.
- Adds tests for opt-in node logging, default template logging, and unchanged rendering.
| File | Description |
|---|---|
modules/python/tests/kwok/test_kwok_node.py |
Tests node logging control without changing resource-slice logging. |
modules/python/tests/clients/test_kubernetes_client.py |
Tests logging defaults, suppression, and rendered output. |
modules/python/kwok/kwok.py |
Adds and wires the opt-in node YAML logging flag. |
modules/python/clients/kubernetes_client.py |
Adds optional logging and logs only the completed template. |
Review effort: Balanced
Leonard Du (LeonardCareer)
force-pushed
the
kwok/opt-in-node-yaml
branch
from
November 20, 2026 06:19
2725e24 to
ffc83cd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node YAML logging is enabled by default. Pass
--mute-node-creationto skip printing the Node YAML during creation. All other logs are unchanged.