Show dependencies of a kustomization #5789
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Eschewed features
What would you like to have added?
Given a
kustomization.yaml
file, I would like to use an API in kustomize that tells me which kustomizations this file depends on and which local files.Why is this needed?
In my current company, we have a large repository containing Kubernetes configuration for ~hundreds of applications in ~hundreds of environments using Kustomize. Dependencies between overlays, components, patches grew hairy and take many minutes (>30) to build.
We are trying to:
Can you accomplish the motivating task without this feature, and if so, how?
We can iterate over all overlays and run
kustomize build
for all of them, before and after a change is applied. This has a couple of problems:What other solutions have you considered?
I'm trying to implement this myself, but it's quite cumbersome and not future-proof. Parsing a kustomization file is easy, but maintaining the mapping between all its fields and whether they may or may not point to a file or kustomization directory is prone to being incomplete.
Anything else we should know?
It seems that KustTarget contains all the logic of what to load, where to load it from, etc. From a superficial overview, it seems that:
KustTarget
.Feature ownership
The text was updated successfully, but these errors were encountered: