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
and that is parsed as number, and will be rejected by the server because of type mismatch.
PyYAML implements YAML 1.1, and ruamel.yaml implements 1.2. It seems to me that kubectl accepts 1.2. For example:
produces
and that is parsed as number, and will be rejected by the server because of type mismatch.