chore: deprecate the scaling flags - #1061
Conversation
Scaling events no longer create environment snapshots, so --include-scaling and --exclude-scaling are on their way out. Mark both deprecated and drop the scaling paragraph from the long description, since MarkDeprecated also hides the flags from help and generated docs. See kosli-dev/server#6327 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Mirror the deprecation on kosli create environment for the group-wide --include-scaling and --exclude-scaling flags of the snapshot commands. See kosli-dev/server#6327 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The message was sitting in root.go among the flag usage strings, which is not what that block is for. Keep it local to each command instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Claude finished @ToreMerkely's task in 1m 55s —— View job Review — PR #1061: deprecate the scaling flags
Static analysis: SummaryClean, well-scoped change. The deprecation approach is idiomatic ( One point worth aligning (non-blocking)Deprecation message vs. "no behaviour change." Posted inline on Minor / optional
Nothing blocking. The wording is the only thing I'd nudge before merge. |
The old wording claimed scaling events no longer create environment snapshots, which is not true for the grandfathered environments that still capture scaling. State the plain fact instead: scaling events do not trigger new snapshots. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Marks
--include-scalingand--exclude-scalingas deprecated onkosli create environmentand on thekosli snapshotcommand group (where they apply to--auto-environment).Scaling has no compliance value and is being ratcheted away server-side — see kosli-dev/server#6327. This is the CLI half of the signal: no new adoption, existing users grandfathered.
No behaviour change. Both flags still parse and still send
include_scalingin the payload, and the mutual-exclusion check is untouched. What changes is that using either flag now prints a deprecation warning, andMarkDeprecatedhides them from--helpand the generated docs. The scaling paragraph was dropped from thecreate environmentlong description accordingly, since it documented flags that no longer appear.The Helm chart change is a separate PR.
Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR🤖 Generated with Claude Code