feat: CDKTF | migrate authentik to cdktf

This commit is contained in:
2025-07-15 09:16:35 +05:00
parent 8afd079d5a
commit 3f6b8812da
3 changed files with 37 additions and 10 deletions

29
authentik/index.ts Normal file
View File

@@ -0,0 +1,29 @@
import * as fs from "fs";
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs";
type AuthentikServerOptions = {
provider: HelmProvider;
version: string;
name: string;
namespace: string;
};
export class AuthentikServer extends Construct {
constructor(scope: Construct, id: string, options: AuthentikServerOptions) {
super(scope, id);
new Release(this, id, {
...options,
repository: "https://charts.goauthentik.io",
chart: "authentik",
createNamespace: true,
values: [
fs.readFileSync("helm/values/authentik.values.yaml", {
encoding: "utf8",
}),
],
});
}
}