mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-18 05:35:47 +00:00
Erasing the scalar type tag leads to unfortunate circumstances, in that the resulting yaml code is valid yaml, but will not meet the object spec. For example, using the replacement transformer to take a port number as a string from a ConfigMap and set a Pod port would previously end up with: - containerPort: "8080" when the spec requires that this is not a string: - containerPort: 8080 Added unit tests for conversion to and from integers and booleans, plus creation from string and creation from integer. The creation behavior needs some refinement in a future PR. Signed-off-by: Jim Ramsay <i.am@jimramsay.com>