Skip to content

error: unable to parse "\"$(cat": yaml" #36

@Fabinout

Description

@Fabinout

when I use basic commnad kubectl patch, I have this parsing error .

subcommand : patch
arguments : deploy/poc-ci-deployment --patch "$(cat patch.json)" -v=8

2018-05-07T14:59:50.6298360Z ##[debug]exec tool: .vstsbin/kubectl.v1.8.4
2018-05-07T14:59:50.6720260Z ##[debug]arguments:
2018-05-07T14:59:50.7136380Z ##[debug] patch
2018-05-07T14:59:50.8420900Z ##[debug] deploy/poc-ci-deployment
2018-05-07T14:59:50.8831890Z ##[debug] --patch
2018-05-07T14:59:50.9222310Z ##[debug] "$(cat
2018-05-07T14:59:50.9611450Z ##[debug] patch.json)"
2018-05-07T14:59:51.0000820Z ##[debug] -v=8
2018-05-07T14:59:51.0396980Z ##[debug] --kubeconfig
2018-05-07T14:59:51.0812400Z ##[debug] ./kubeconfig
2018-05-07T14:59:51.1082100Z [command] .vstsbin/kubectl.v1.8.4 patch deploy/poc-ci-deployment --patch "$(cat patch.json)" -v=8 --kubeconfig ./kubeconfig
2018-05-07T14:59:51.1348160Z I0507 14:59:47.858994 126502 loader.go:357] Config loaded from file ./kubeconfig
2018-05-07T14:59:51.1607420Z F0507 14:59:47.859132 126502 helpers.go:120] error: unable to parse ""$(cat": yaml: found unexpected end of stream

It works on Shell though

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