Repository navigation
Conversation
spicysharkco
requested review from
aditmeno,
itscaro,
mumoshu,
xiaomudk,
yxxhero and
zhaque44
as code owners
October 30, 2026 23:00
Signed-off-by: spicysharkco <[email protected]>
yxxhero
force-pushed
the
fix/state-values-set-assignment-validation
branch
from
October 31, 2026 01:23
9a55fcd to
0ef3a53
Compare
yxxhero
approved these changes
Oct 31, 2026
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.
Follow-up to the two cases raised in #2855.
--state-values-setflag value, including between repeated flags.--state-values-set-string, instead of creating a key such as" b"froma=1, b=2.This chooses rejection rather than trimming, consistent with the existing string flag's handling of space-led keys. Spaces in values are preserved. Empty segments caused by leading, trailing or repeated commas remain errors.
The existing parser table covers both reported cases and keeps the escaping and type-conversion checks. The CLI documentation describes empty flags and space-led keys.
Validation:
go test -race -p=1 ./pkg/config -count=1,make check PKGS=./pkg/config, and golangci-lint v2.15.0 on./pkg/config/...pass.go fix -diff ./pkg/configand diff checks are clean. A before/after probe checks 46 typed/string input forms; only the eight intended typed-input cases change.The full Helm-version and integration test matrices were not run.