Skip to content

Allow disabling KWOK Node YAML logging - #1394

Open
Leonard Du (LeonardCareer) wants to merge 6 commits into
mainfrom
kwok/opt-in-node-yaml
Open

Leonard Du (LeonardCareer) wants to merge 6 commits into
mainfrom
kwok/opt-in-node-yaml

Conversation

@LeonardCareer

@LeonardCareer Leonard Du (LeonardCareer) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Node YAML logging is enabled by default. Pass --mute-node-creation to skip printing the Node YAML during creation. All other logs are unchanged.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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-yaml and 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

@LeonardCareer Leonard Du (LeonardCareer) changed the title Make KWOK Node YAML logging opt-in Allow disabling KWOK Node YAML logging Nov 20, 2026
@LeonardCareer Leonard Du (LeonardCareer) changed the title Allow disabling KWOK Node YAML logging Skip template logging for KWOK Nodes Nov 20, 2026
@LeonardCareer Leonard Du (LeonardCareer) changed the title Skip template logging for KWOK Nodes Allow disabling KWOK Node YAML logging Nov 20, 2026

This branch has not been deployed

No deployments
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.

2 participants