Skip to content

Track YAML ownership within shared hotfix settings - #272

Merged
gilesknap merged 1 commit into
mainfrom
yaml-ownership
Sep 15, 2026
Merged

gilesknap merged 1 commit into
mainfrom
yaml-ownership

Conversation

@gilesknap

Copy link
Copy Markdown
Member

Summary

hotfix enable previously merged generated volume entries outside its ownership markers, so later runs could not update them. Its text-based editing also produced invalid YAML for empty inline lists and removed service-owned probe and security settings.

Use ruamel.yaml for comment-preserving parsing and mark individual generated regions within shared lists and mappings. Regeneration replaces those regions while preserving service entries, comments, readiness/startup settings and unrelated security fields such as runAsUser. YAML aliases are detached before editing so other workloads retain their settings.

Recognizable older wiring migrates to the new markers. Unmarked name collisions, malformed markers and invalid YAML stop the operation before either chart file is written. Chart dependency updates also use parsed YAML. The guide documents ownership and migration; the first edit may normalize indentation.

Validation

  • 48 tests pass, covering shared lists, changed and removed generated entries, comments, aliases, legacy migration, collisions, malformed markers, marker-like shell text, duplicate YAML keys and repeatability across chart adapters.
  • Tests verify conflicts leave both chart files untouched.
  • Pre-commit, Pyright and the Sphinx documentation build pass. Graphviz was supplied from an isolated temporary installation for the documentation build.
  • No live Kubernetes rollout or Helm rendering was performed.

This change is independent of the supervisor refactor in #271.

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 816235b4-d15d-46b2-944c-a13c97cabe95

📥 Commits

Reviewing files that changed from the base of the PR and between 1ca50c6 and 77f1711.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • Dockerfile
  • docs/how-to/enable-hotfix.md
  • pyproject.toml
  • src/podbench/hotfix_enable.py
  • src/podbench/hotfix_yaml.py
  • tests/test_hotfix_enable.py
  • tests/test_hotfix_wiring.py
  • tests/test_hotfix_yaml.py

Comment @coderabbitai help to get the list of available commands.

@gilesknap
gilesknap merged commit 663f7c6 into main Sep 15, 2026
12 checks passed
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.

1 participant