Skip to content

It's confusing that netpols.yaml is JSON #8

Description

@esnible

netpols.yaml is JSON, which surprised me.

If YAML is intended,

jq '.items[]' < netpols.yml > /tmp/netpols.json 
kubectl apply --dry-run=client -f /tmp/netpols.json -o yaml | yq ".items[]" > /tmp/netpols.yaml

... will produce it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions