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
{{ message }}
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.
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:
The text was updated successfully, but these errors were encountered:
gs11
changed the title
Quotes used for
Quotes used for params kubectl disappear
Dec 18, 2018
Thanks, I didn't actually know that you could use set image for statefulsets. Just need to figure out how to pass the image path & version (from previous tasks) into the params.kubectl.
Is this a BUG REPORT or FEATURE REQUEST?:
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:
fly --version
): 3.14.1The text was updated successfully, but these errors were encountered: