mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
19 lines
432 B
TypeScript
19 lines
432 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, {
|
||
|
|
stringData: this.data,
|
||
|
|
type: 'Opaque',
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|