nested namePrefix configuration behaviour #5870
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
Let me begin with that I'm not entirely sure this is actually a bug but considering the unintuitive nature of this behaviour I'll go with that.
In order to get my point across let's consider this simplified (in a proper scenario there would be for example more 'bars' and more resources) structure:
Case 1:
and relevant files:
In
foo
there's a namePrefix with explicit config for kinds and inbar
there is namePrefix applied on everything.This results in for example Job: migrations having prefixed applied twice:
Case 2:
The difference compared to Case 1 is we do not apply prefix to Job resources in
foo
but decide to apply it to Job resources inbar
:Which results with Job: migrations having prefix applied once but with value 'from another namePrefix configuration' (so to speak):
What did you expect to happen?
Case 1: Job should have prefix
foo
applied once.Case 2: Job should not have any prefix applied.
Perhaps I'm misunderstanding something fundamental over here but I would've expected to be able to have a granular control over prefix transformer used but things are gettin mixed/confusing here.
How can we reproduce it (as minimally and precisely as possible)?
.
Expected output
No response
Actual output
No response
Kustomize version
v5.4.1
Operating system
Linux
The text was updated successfully, but these errors were encountered: