feat: CDKTF | migrate metallb to cdktf

This commit is contained in:
2025-07-15 12:27:56 +05:00
parent 81702fac64
commit e132857423
3 changed files with 33 additions and 14 deletions

22
metallb/index.ts Normal file
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,
});
}
}