feat: CoreServices | move into separate stack

This commit is contained in:
2025-11-22 19:30:09 +05:00
parent 1671f9619c
commit f46833571c
10 changed files with 101 additions and 118 deletions

View File

@@ -0,0 +1,22 @@
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs";
type MetalLBOptions = {
provider: HelmProvider;
name: string;
namespace: string;
};
export class MetalLB extends Construct {
constructor(scope: Construct, id: string, options: MetalLBOptions) {
super(scope, id);
new Release(this, id, {
...options,
repository: "https://metallb.github.io/metallb",
chart: "metallb",
createNamespace: true,
});
}
}