You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The end-of-document markers (...) were not present in the original document (which makes both flux and kubectl choke). Here is the error from kubectl when trying to apply the output document:
$ pbpaste | kubectl apply -f -
deployment.apps/name configured
error: error parsing STDIN: error converting YAML to JSON: yaml: did not find expected node content
The example includes empty documents. Do you have evidence that it produces problematic output when there are no empty documents? If not, that might be why it doesn't seem to have shown up before.
you are right, it only generates ... with empty documents.
squaremo
changed the title
Kubeyaml returns questionable output on multidoc input
Kubeyaml returns questionable output on multidoc input including empty docs
Jun 11, 2019
This comes from fluxcd/flux#1925
Input:
The command:
Results in:
The output is questionable for a few reasons:
...
) were not present in the original document (which makes both flux andkubectl
choke). Here is the error fromkubectl
when trying to apply the output document:The output seems to be correct YAML according to the standard though:
The text was updated successfully, but these errors were encountered: