acoustic-carpenter-78188
05/13/2026, 8:08 AMcluster-autoscaler.kubernetes.io/safe-to-evict: "false"). Currently, when setting config like:
k8s:
plugins:
k8s:
default-annotations:
test.annotation: "true"
We will get error:
time="2025-01-14T103300Z" level=error msg="\n\n\n1 error(s) decoding:\n\n* 'default-annotations[test]' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[annotation:true]'"
The YAML is parsed as {"default-annotations": {"test": {"annotation": "true"}}} instead of the intended {"default-annotations": {"test.annotation": "true"}}
What changes were proposed in this pull request?
Adds a post-processing pass in parseViperConfig that re-reads the raw YAML config files and patches viper's output to restore any leaf keys that contained dots. This follows the same pattern as the existing restoreCaseSensitiveArrayKeys workaround in the file.
How was this patch tested?
• Unit tests
• Start local sandbox with following config, ensure no error raised
plugins:
k8s:
default-annotations:
test.annotation: "true"
Labels
Please add one or more of the following labels to categorize your PR:
• added: For new features.
• changed: For changes in existing functionality.
• deprecated: For soon-to-be-removed features.
• removed: For features being removed.
• fixed: For any bug fixed.
• security: In case of vulnerabilities
This is important to improve the readability of release notes.
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Stack
If you do use git town to manage PR Stacks, the stack relevant to this PR
will show below. Otherwise, you can ignore this section.
Docs link
flyteorg/flyteacoustic-carpenter-78188
05/15/2026, 12:18 AM