-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets.ts
36 lines (31 loc) · 909 Bytes
/
secrets.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
import { config } from "./";
export type SecretsOptions = {
provider: k8s.Provider;
};
const pulumiComponentNamespace: string = "turingev:Dashboard";
export class Secrets extends pulumi.ComponentResource {
public readonly digitaloceanCredentials: k8s.core.v1.Secret;
constructor(
name: string,
args: SecretsOptions,
opts?: pulumi.ComponentResourceOptions,
) {
super(pulumiComponentNamespace, name, args, opts);
this.digitaloceanCredentials = new k8s.core.v1.Secret(
"lets-encrypt-do-dns",
{
metadata: {
name: "lets-encrypt-do-dns",
namespace: "cert-manager",
},
type: "Opaque",
stringData: {
"access-token": config.requireSecret("do-access-token"),
},
},
{ provider: args.provider },
);
}
}