lightkube icon indicating copy to clipboard operation
lightkube copied to clipboard

Consider switching from PyYAML to ruamel.yaml?

Open XeCycle opened this issue 11 months ago • 2 comments

PyYAML implements YAML 1.1, and ruamel.yaml implements 1.2. It seems to me that kubectl accepts 1.2. For example:

dump_all_yaml([ConfigMap(data={"hello": "012345678"})], sys.stdout)

produces

data:
  hello: 012345678

and that is parsed as number, and will be rejected by the server because of type mismatch.

XeCycle avatar Feb 11 '25 09:02 XeCycle