Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kele-get output does not respect "original" YAML multi-line strings #202

Open
jinnovation opened this issue Jun 3, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@jinnovation
Copy link
Owner

Consider the following output:

> kubectl get configmap -n kube-system coredns -o yaml
apiVersion: v1
data:
  Corefile: |
    .:53 {
        errors
        health {
           lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf {
           max_concurrent 1000
        }
        cache 30
        loop
        reload
        loadbalance
    }
kind: ConfigMap
metadata:
  creationTimestamp: "2024-06-02T13:01:05Z"
  name: coredns
  namespace: kube-system
  resourceVersion: "216"
  uid: 20648886-7d37-45d6-bfd4-cf3ab1cfcc50

The equivalent output w/ kele-get is:

kind: ConfigMap
apiVersion: v1
metadata:
  name: coredns
  namespace: kube-system
  uid: 20648886-7d37-45d6-bfd4-cf3ab1cfcc50
  resourceVersion: 216
  creationTimestamp: "2024-06-02T13:01:05Z"
data:
  Corefile: ".:53 {\n    errors\n    health {\n       lameduck 5s\n    }\n    ready\n    kubernetes cluster.local in-addr.arpa ip6.arpa {\n       pods insecure\n       fallthrough in-addr.arpa ip6.arpa\n       ttl 30\n    }\n    prometheus :9153\n    forward . /etc/resolv.conf {\n       max_concurrent 1000\n    }\n    cache 30\n    loop\n    reload\n    loadbalance\n}\n"
@jinnovation jinnovation added the bug Something isn't working label Jun 3, 2024
@jinnovation jinnovation changed the title kele-get output does not respect original YAML multi-line strings kele-get output does not respect "original" YAML multi-line strings Jun 3, 2024
@jinnovation
Copy link
Owner Author

Wonder if emacs-libyaml would make a better alternative? Worth experimenting with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant