UNPKG

kubricate

Version:

A TypeScript framework for building reusable, type-safe Kubernetes infrastructure — without the YAML mess.

28 lines 841 B
export interface MetadataInjectorOptions { type: 'stack' | 'secret'; kubricateVersion: string; managedAt?: string; stackId?: string; stackName?: string; resourceId?: string; secretManagerId?: string; secretManagerName?: string; /** * Inject Options to enable/disable to the labels and annotations injected into the resource. */ inject?: { managedAt?: boolean; resourceHash?: boolean; version?: boolean; }; } export declare class MetadataInjector { private readonly options; constructor(options: MetadataInjectorOptions); inject(resource: Record<string, unknown>): Record<string, unknown>; private ensureMetadata; private calculateHash; private cleanForHash; private sortKeysRecursively; } //# sourceMappingURL=MetadataInjector.d.ts.map