/** * Kubernetes Resource Operations - Consolidated K8s resource management * * Provides operations for creating, updating, deleting, and reading K8s resources. * Uses create/patch strategy for idempotent operations. */ import * as k8s from '@kubernetes/client-node'; import type { Logger } from 'pino'; import { type Result } from '../../types/index.js'; export interface K8sResource { apiVersion: string; kind: string; metadata: { name: string; namespace?: string; labels?: Record; annotations?: Record; }; spec?: Record; data?: Record; } /** * Apply a Kubernetes resource using create/patch strategy. * Idempotent - safe to call multiple times. * * Note: This function should be called sequentially per resource. * Creates the resource if it doesn't exist, or patches it if it already exists. * * @param kc - Kubernetes config * @param resource - Resource to apply * @param logger - Logger instance * @returns Success with applied resource, or Failure with error guidance */ export declare function applyResource(kc: k8s.KubeConfig, resource: K8sResource, logger: Logger): Promise>; //# sourceMappingURL=resource-operations.d.ts.map