lightkube
lightkube copied to clipboard
Consider switching from PyYAML to ruamel.yaml?
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.