Skip to content

Add attributes containing commas to the yaml file #1533

Answered by MorganReid
MorganReid asked this question in Q&A
Discussion options

You must be logged in to vote

Has been resolved. use
yq '.spec.template.metadata.annotations.["vault.hashicorp.com/agent-inject"]="true"' -i test.yaml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MorganReid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant