-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
area/helmkind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.triage/not-reproducibleIndicates an issue can not be reproduced as described.Indicates an issue can not be reproduced as described.
Description
What happened?
Please have a look into the attached tar file.
The kustomization in the overlay directory dehydrates fine with all kustomize versions up to v5.8.0 — but aborts when using the latter with error message
$ kustomize-v5.8.0 build overlay
Error: accumulating resources: accumulation err='accumulating resources from '../base': '/var/home/5.8-bug/base' must resolve to a file': recursed accumulation of path '/var/home/5.8-bug/base': merging from generator &{0xc0004a2270 <nil>}: id resid.ResId{Gvk:resid.Gvk{Group:"", Version:"v1", Kind:"ConfigMap", isClusterScoped:false}, Name:"general-environment", Namespace:"abc"} does not exist; cannot merge or replace
It seems that the namespace trafo is not applied to the CM generator resource.
This is at least a major break in kustomize's API, and IMHO a bug: to my knowledge, transformations should always applied after generators, i.e. the CM generated should have its namespace assigned, and be mergeable
What did you expect to happen?
The kustomization in the overlay subdirectory should dehydrate with v5.8.8 the same way it did with earlier versions
How can we reproduce it (as minimally and precisely as possible)?
Please see attached tar file, resp. comments above.
Expected output
$ kustomize build overlay
apiVersion: v1
data:
BASE_LAYER_ENV: base
OVERLAY_ENV: overlay
kind: ConfigMap
metadata:
name: general-environment-826bch2dh9
namespace: abc
Actual output
None, please see error message given above.
Kustomize version
v5.8.0
Operating system
Linux
vprivat-ads and dihmandrake
Metadata
Metadata
Assignees
Labels
area/helmkind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.triage/not-reproducibleIndicates an issue can not be reproduced as described.Indicates an issue can not be reproduced as described.