Files
k8sgpt/release-please-config.json
Anas Khan 133dbe6f23 fix: point release-please extra-files at the real chart path (#1697)
The extra-files list in release-please-config.json referenced four paths
that do not exist in the repository (deploy/manifest.yaml, chart/Chart.yaml,
chart/values.yaml, container/manifests/deployment.yaml). release-please
silently skips missing extra-files (createIfMissing is false), so the
#x-release-please-version marker in charts/k8sgpt/Chart.yaml was never
bumped and its appVersion stayed frozen at v0.4.23 while releases advanced
to v0.4.35.

Because the chart's default image tag falls back to .Chart.AppVersion, a
default install of charts/k8sgpt deployed a stale image and stamped
app.kubernetes.io/version: v0.4.23 on the rendered resources.

Point extra-files at the file that actually carries the marker
(charts/k8sgpt/Chart.yaml) and bump appVersion to the current v0.4.35 so
the chart is correct now and release-please keeps it in sync going forward.

List the chart with type "generic" rather than as a plain string. A plain
.yaml string makes release-please run GenericYaml($.version) before the
Generic updater; GenericYaml re-serializes the document with a parser that
drops all comments, which would delete the #x-release-please-version marker
and rewrite the unrelated chart version field. The generic type runs only
the comment-aware Generic updater, so it bumps appVersion on the annotated
line and leaves the marker and the chart version intact. charts/k8sgpt/
values.yaml has no version marker, so it is not listed.

Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
2026-07-13 10:24:02 +01:00

75 lines
1.6 KiB
JSON

{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "go",
"prerelease": false,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"extra-files": [
"README.md",
{
"type": "generic",
"path": "charts/k8sgpt/Chart.yaml"
}
],
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Other"
},
{
"type": "docs",
"section": "Docs"
},
{
"type": "perf",
"section": "Performance"
},
{
"type": "build",
"hidden": true,
"section": "Build"
},
{
"type": "deps",
"section": "Dependency Updates"
},
{
"type": "ci",
"hidden": true,
"section": "CI"
},
{
"type": "refactor",
"section": "Refactoring"
},
{
"type": "revert",
"hidden": true,
"section": "Reverts"
},
{
"type": "style",
"hidden": true,
"section": "Styling"
},
{
"type": "test",
"hidden": true,
"section": "Tests"
}
]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}