feat(k8s-reporter): stop passing the scaling flags - #1062
Conversation
|
Claude finished @ToreMerkely's task in 1m 55s —— View job ReviewChart-only PR. Go static analysis (
Template correctness ✅The removed block in Docs consistency ✅
One correctness nit (non-blocking, your call — already debated)The shared prose and the
I see this was raised on Minor: the prose says "do not trigger" while the table row says "no longer trigger" — harmless wording drift, not worth a churn. SemverThe 2.7.0 (minor) reasoning is sound and well-documented: the flags were already inert server-side, so no observable behaviour changes and pinning to VerdictWell-scoped, well-reasoned, and the migration story is clearly documented. LGTM aside from the single non-blocking text nit above. |
|
Triage of the review notes. Not raised here, but found while tracing note 2 — fixed in d18105f. The chart text repeated a claim that was corrected on #1061 in d82aa7a: "scaling events no longer create environment snapshots." That is false for the grandfathered environments that still capture scaling — the ratchet in kosli-dev/server#6332 stopped scaling being turned on, it did not stop environments that already have it from capturing. Two adjacent claims were worse:
Since the value could no longer do anything, the PR now also stops passing the flags rather than passing them and warning about it. Retitled and rescoped to 3.0.0; see the updated description. Note 1 — heading level and placement differ between the two docs. Skipping. The Note 2 — wording duplicated between The caveat ("both must be updated together if the wording changes") came due immediately. Both were rewritten in the same commit. Agreed it cannot be DRY'd — helm-docs needs the comment for the table and the partial for the prose. Note 3 — 3.0.0 tracking issue. Skipping, per maintainer call. The chart docs and this PR already record that the value is going away. |
d18105f to
9ff9a7d
Compare
The chart passed --include-scaling / --exclude-scaling only when autoEnvironment is set, which is the environment-creation path, and the server now always creates environments with scaling off. Both flags were therefore inert, buying nothing but a CLI deprecation warning in the reporter's logs on every run. Stop passing them. No user can observe a difference: the reporter created environments with scaling off before this version and still does, so this is a minor bump rather than a major. reporterConfig.includeScaling stays declared and documented as ignored; removing it waits for a real major. See kosli-dev/server#6327 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
appVersion is the default image tag and is only ever bumped when someone edits the chart, so it had drifted three releases behind. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
9ff9a7d to
2d4abb6
Compare
|
Triage of the review against Open item (mbevc1's "removed in v3") — addressed in afa7b50. Both headings now read Deprecated and ignored in v2.7.0, which was the substance of the note: "Deprecated" alone understated a value that is inert, and it contradicted the Went the other way on naming a version, though. You flagged that the table row names none and asked whether it should say v3 for consistency — the resolution is the reverse: no version is named anywhere. The body keeps "a future major version" rather than committing the chart to deleting the value in a specific release. Consistency preserved, without a promise in published docs that is easier to make than to keep. Also since this review: On the clause you declined to re-litigate — agreed, and thanks for not. Reaction added so a future review pass skips it. Everything else in the review was confirmation rather than a finding, so nothing further outstanding on this branch. |
Chart half of #1061.
reporterConfig.includeScalingexists only to pass--include-scaling/--exclude-scalingto the CLI, and only whenautoEnvironmentis true — i.e. only on the environment-creation path. Server-side, kosli-dev/server#6332 made scaling capture a one-way ratchet:Environments.createhard-codesinclude_scaling: False, so a new environment never captures scaling regardless of what is sent. Both flags were therefore already inert in the chart's only code path, buying nothing but a CLI deprecation warning in the reporter's logs every run.This PR stops passing them.
templates/cronjob.yaml— theincludeScalingbranch removed; no scaling flag is emitted fortrue,false, or unsetvalues.yaml— value marked Deprecated and ignored. Also drops the stale "Leave unset to use the Kosli server default" and the(server default)default annotation, neither of which is true any more_templates.gotmpl—body.deprecatedIncludeScalingrewritten, shared by the README upgrade section and (via_mintlify_templates.gotmpl) the Mintlify upgrade pageChart.yaml2.6.0 → 2.7.0,README.mdregenerated withmake helm-docsmake helm-lintpasses.Why 2.7.0 and not a major
No user can observe a difference:
includeScalingkindIs "bool"is false fornull)true--include-scaling→ server ignores it, env created scaling-offfalse--exclude-scaling→ env created scaling-offThe knob was already inert before this PR; the chart is catching up with reality rather than changing behaviour. This chart's 2.0.0 set the precedent that a major means migration work — it required every user to rewrite their values into the
environmentslist. This needs no action from anyone, and a major would strand users pinned to^2for nothing.reporterConfig.includeScalingstays declared so the deprecation is discoverable; deleting it waits for a real major.Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PRinclude_scalingunder its own issue fix description value in create flow #235 and only keeps regression tests asserting its absence; neither reporter module references scaling🤖 Generated with Claude Code