/** * Idempotent Kubernetes resource application using create/patch strategy * * Note: This function should be called sequentially per resource. * Resources are created if they don't exist, or patched if they already exist. */ import type { Logger } from 'pino'; import { type Result } from '../../types/index.js'; export interface ApplyOptions { dryRun?: boolean; force?: boolean; fieldManager?: string; } export interface K8sResource { apiVersion: string; kind: string; metadata: { name: string; namespace?: string; labels?: Record; annotations?: Record; }; spec?: Record; data?: Record; } /** * Creates an idempotent K8s apply function using the consolidated resource-operations module * * Note: This function uses the consolidated resource-operations module which handles * idempotent apply using create/patch strategy. Resources are created if they don't exist, * or patched if they already exist. */ export declare function createIdempotentApply(logger: Logger, kubeconfig?: string): (resource: K8sResource, options?: ApplyOptions) => Promise>; /** * Parse YAML manifests into K8s resources */ export declare function parseManifests(yamlContent: string): K8sResource[]; //# sourceMappingURL=idempotent-apply.d.ts.map