trustgraph/templates/opts-to-minikube-k8s.jsonnet

20 lines
394 B
Jsonnet
Raw Normal View History

2024-08-22 00:19:55 +01:00
local engine = import "engine/minikube-k8s.jsonnet";
local components = import "components.jsonnet";
// Options
2024-08-22 00:19:55 +01:00
local options = std.split(std.extVar("options"), ",");
// Produce patterns from config
local patterns = std.foldl(
function(state, p) state + components[p],
options,
{}
);
2024-08-22 00:19:55 +01:00
// Extract resources usnig the engine
local resources = engine.package(patterns);
2024-08-22 00:19:55 +01:00
resources
2024-08-22 00:19:55 +01:00