In replacements
, the type of source value is not retained when the target fieldPath is not existent an configured with option.create: true
#5482
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
I'm trying to override an environment variable that might or might not exist in the base. I'm using a local config as a source with the numeric value as a string.
When the base happens to have that overridden environment variable defined, it retains the type right. However, whenever the base is missing the environment variable, the env is created with the numeric value as an integer; not as a string like in the source field.
What did you expect to happen?
The type of the source value should be retained under all conditions.
How can we reproduce it (as minimally and precisely as possible)?
Expected output
Actual output
Kustomize version
v5.3.0
Operating system
MacOS
The text was updated successfully, but these errors were encountered: