mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 22:47:17 +00:00
21 lines
484 B
TypeScript
21 lines
484 B
TypeScript
import * as k8s from '@pulumi/kubernetes';
|
|
import { Output } from '@pulumi/pulumi';
|
|
|
|
export class ServiceSecret<T extends Record<string, string | Output<string>>> {
|
|
public record: k8s.core.v1.Secret;
|
|
public raw: T;
|
|
|
|
constructor(
|
|
protected name: string,
|
|
protected data: T,
|
|
) {
|
|
this.raw = data;
|
|
this.record = new k8s.core.v1.Secret(this.name, {
|
|
metadata: {
|
|
name: this.name,
|
|
},
|
|
stringData: this.data,
|
|
type: 'Opaque',
|
|
});
|
|
}
|
|
}
|