feat: organize all services into separate stacks by dependency
This commit is contained in:
17
cache-infrastructure/index.ts
Normal file
17
cache-infrastructure/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Construct } from "constructs";
|
||||
import { TerraformStack } from "cdktf";
|
||||
import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider";
|
||||
import { NixCache } from "./nixcache";
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user