Skip to content

Consider switching from PyYAML to ruamel.yaml? #90

Description

@XeCycle

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions