18 lines
544 B
TypeScript
18 lines
544 B
TypeScript
import { Construct } from "constructs";
|
|
import { TerraformStack } from "cdktf";
|
|
import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider";
|
|
import { NixCache } from "./nix";
|
|
|
|
export class CacheInfrastructure extends TerraformStack {
|
|
constructor(scope: Construct, id: string) {
|
|
super(scope, id);
|
|
|
|
const kubernetes = new KubernetesProvider(this, "kubernetes", {
|
|
configPath: "~/.kube/config",
|
|
});
|
|
|
|
// Add cache-related infrastructure components here
|
|
new NixCache(this, "nix-cache", kubernetes);
|
|
}
|
|
}
|