GH-5267: fix(helm+docs): phantom --set examples and fictional existingSecret flow remain; add helm lint/template CI - #5270
Merged
Merged
Conversation
…--set examples, add helm CI Residual drifts from the PR#5265 post-merge review: docker-helm.mdx's Install tabs still used the nonexistent config.* --set prefix, and the documented existingSecret secrets flow was fictional — no such chart value existed. - Add adapters.github.repo and existingSecret values, wired into configmap.yaml/secret.yaml/deployment.yaml (secret.yaml skips creating its own Secret when existingSecret is set; deployment.yaml mounts whichever one applies via the new pilot.secretName helper). - Strip the phantom config. prefix from every --set example in docker-helm.mdx and update the values.yaml reference block to match. - Reword the configmap.yaml comment: the top-level autopilot lift moves the whole block verbatim, but only a correctly yaml-tagged `environment:` key binds — a `mode:` key (the shape this chart's own values imply) decodes to nothing. - Add a helm-chart CI job (lint + template, gated on deploy/helm/** or the docs page changing) that greps the render for a regressed top-level autopilot key and asserts existingSecret suppresses the chart-managed Secret.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Collaborator
Author
Post-merge review — APPROVE (w-notes)Verified against merged main (
Notes (no action required):
|
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.
Summary
Automated PR created by Pilot for task GH-5267.
Closes #5267
Changes
GitHub Issue GH-5267: fix(helm+docs): phantom --set examples and fictional existingSecret flow remain; add helm lint/template CI
Problem
Residual drifts from the PR#5265 post-merge review (notes N1-N3 + finding 5) — same class the parent fixed, adjacent sections:
docs/content/deployment/docker-helm.mdx(~227, ~239) still use the nonexistentconfig.prefix in--setexamples (--set config.adapters.github.repo=...) — silent no-ops.--set existingSecret=pilot-secretsappears at ~238 and ~798, but noexistingSecretkey exists anywhere in the chart — the documented "recommended" secrets flow is fictional. Either implement the key (standard helm pattern: honor an existing secret name in deployment.yaml/secret.yaml) or rewrite the docs to the chart-managed secret; implementing is the conventional choice, but keep it small.deploy/helm/pilot/templates/configmap.yamlsays the old top-level block "binds to config.Orchestrator.Autopilot.Environment via the lift" — imprecise: the lift moves the whole block, and the oldmode:key inside binds to nothing (the field's yaml tag isenvironment). Fix the wording.helm lintorhelm template. Add a small job (helm lint + template with default values + grep the render for a top-level autopilot key) so this drift class fails loudly next time.Acceptance
--setexample in docker-helm.mdx round-trips against values.yaml (keys exist, paths real).deploy/helm/**or the docker-helm docs page.Refs