The config.kubernetes.io/local-config: "true" is too strict #4124
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Describe the bug
When using the annotation
config.kubernetes.io/local-config: "true"
; you can not reference the resource. It is completely ignored. I would still like to have it as a referenced resource up until the final output when all with the annotation is removed.Files that can reproduce the issue
pod.yaml
deployment.yaml
replacement.yaml
kustomization.yaml
Expected output
I expect only the deployment to be displayed with the values which were replaced from the Pod. The annotation is working in the sense it is excluding the resource in the final output, however it seems it was removed too soon as I can't reference it in the replacement.
here is what the result should be:
Actual output
Basically the replacement transformer failed to find the Pod I told it to target.
Kustomize version
Platform
all
Additional context
I can add the annotation after the replacement but then kustomize doesn't actually remove the resource from the output
The text was updated successfully, but these errors were encountered: