mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
* Added a config to create Minikube k8s, uses hostpath volumes * Reworked templater to produce docker compose and minikube output * Fix config templates
26 lines
510 B
Jsonnet
26 lines
510 B
Jsonnet
|
|
local engine = import "engine/minikube-k8s.jsonnet";
|
|
local decode = import "util/decode-config.jsonnet";
|
|
local components = import "components.jsonnet";
|
|
|
|
// Import config
|
|
local config = import "config.json";
|
|
|
|
// Produce patterns from config
|
|
local patterns = decode(config);
|
|
|
|
local ns = {
|
|
apiVersion: "v1",
|
|
kind: "Namespace",
|
|
metadata: {
|
|
name: "trustgraph",
|
|
},
|
|
"spec": {
|
|
},
|
|
};
|
|
|
|
// Extract resources using the engine
|
|
local resourceList = engine.package(patterns);
|
|
|
|
resourceList
|
|
|