Package dev.zucca_ops.kustomtrace.graph
Class KustomGraphBuilder
java.lang.Object
dev.zucca_ops.kustomtrace.graph.KustomGraphBuilder
Builds a
KustomGraph by scanning a directory structure for Kustomization files,
resolving their contents, and establishing dependencies between them and other resources.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Scans the configuredappsDir, builds all found Kustomizations and their referenced resources, and populates the internalKustomGraph.
-
Constructor Details
-
KustomGraphBuilder
Constructs a KustomGraphBuilder.- Parameters:
appsDir- The root directory to scan for Kustomize applications.
-
-
Method Details
-
build
Scans the configuredappsDir, builds all found Kustomizations and their referenced resources, and populates the internalKustomGraph.Uses a parallel stream to process kustomization files found by
Files.walk(Path, java.nio.file.FileVisitOption...).- Returns:
- The populated
KustomGraph. - Throws:
IOException- If an I/O error occurs when walking the appsDir.
-