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
When use the above resource from other kustomization.yaml with resources statements, the following errors occur
Error: accumulating resources: accumulateFile "accumulating resources from '../jobs/': '~/workspace/sample/jobs' must resolve to a file", accumulateDirector: "recursed merging from path '~/workspace/sample/jobs': may not add resource with an already registered id: batch_v1_Job|~X|~N"
$ kustomize build api
Error: accumulating resources: accumulateFile "accumulating resources from '../jobs/': '~/workspace/sample/jobs' must resolve to a file", accumulateDirector: "recursed merging from path '~/workspace/sample/jobs': may not add resource with an already registered id: batch_v1_Job|~X|~N"
Kustomize version
$ kustomize version
{Version:kustomize/v3.8.5 GitCommit:4052cd4fd8c76a17b5f64e32509f3fba9713fe75 BuildDate:2020-10-08T05:35:40+01:00 GoOs:darwin GoArch:amd64}
Platform
macOS
The text was updated successfully, but these errors were encountered:
I cannot reproduce this issue. Looks like you should update the paths you used in the patch. Since you have a / in the field name so you need to replace it by ~1 in json patch path.
After your json patch, 2 resources don't have /metadata/name field. And in the overlay, these 2 resources are needed to be added to the resource list. This causes problem, because these 2 resources now have identical ID batch_v1_Job|~X|~N.
Hi :)
Describe the bug
When use the above resource from other kustomization.yaml with
resources
statements, the following errors occurFiles that can reproduce the issue
https://github.com/sanposhiho/kustomize-jsonpatches-bug-sample
Expected output
Actual output
Kustomize version
Platform
macOS
The text was updated successfully, but these errors were encountered: