Skip to content
This repository was archived by the owner on Apr 27, 2020. It is now read-only.
This repository was archived by the owner on Apr 27, 2020. It is now read-only.

Quotes used for params kubectl disappear #58

@gs11

Description

@gs11

Is this a BUG REPORT or FEATURE REQUEST?:

  • bug

What happened:
Quotes used for a json patch disappear and kubectl fails because unparseable command.
kubectl patch --namespace <namespace> statefulset <namespace> --type=json -p=[{op: replace, path: /spec/template/spec/containers/0/image, value:<image>}]

error: unable to parse "[{op:": yaml: line 1: did not find expected node content

What you expected to happen:
They'd be preserved in order for kubectl to work

How to reproduce it (as minimally and precisely as possible):
Use a kubectl params like:
patch --namespace <namespace> statefulset <statefulset> --type=json -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"<image>"}]'

Anything else we need to know?:
Tested multiple ways of escaping the line without success

Environment:

  • Concourse CI version: (use fly --version): 3.14.1
  • kubernetes-resource image version: 1.12
  • Others:

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