Closed miekg closed 6 years ago
What is the meaning of -
in the path? Is it for a list?
Sorry I don't know what it means, I was just toying with some stuff to get a patch applied. I think it has some meaning but I have to read RFC 6902 to be sure.
Here is the link https://tools.ietf.org/html/rfc6902
And the only example containing -
I found is
An example target JSON document:
{ "foo": ["bar"] }
A JSON Patch document:
[
{ "op": "add", "path": "/foo/-", "value": ["abc", "def"] }
]
The resulting JSON document:
{ "foo": ["bar", ["abc", "def"]] }
secretName
is a string field, not an array. -
in the json patch is used to append values to existing array. So the json patch is not a valid input for you deployment.
[ Quoting notifications@github.com in "Re: [kubernetes-sigs/kustomize] pat..." ]
secretName
is a string field, not an array.-
in the json patch is used to append values to existing array. So the json patch is not a valid input for you deployment.
kustomize crashes, it should not, regardless if this is valid syntax or not
kustomize.yaml
secret_path.yaml has: (the
/-
bit is wrong, removing that make things not crash)This crashes with (v1.0.8):