K8sManifestResource
Handle
interface K8sManifestResource extends IResource, IResourceWithParent, KindClusterResource]], IResourceWithWaitSupport { applyTimeout: timespan; clusterReadyTimeout: timespan; crdWaitBehavior: CrdWaitBehavior; crdWaitTimeout: timespan; fieldManager: string; forceConflicts: boolean; inlineContent: string; isKustomize: boolean; readonly manifestPath: string; namespace: string; recursive: boolean; serverSide: boolean; withApplyTimeout(timeout: timespan): K8sManifestResource; withClusterReadyTimeout(timeout: timespan): K8sManifestResource; withCrdWaitBehavior(behavior: CrdWaitBehavior): K8sManifestResource; withCrdWaitTimeout(timeout: timespan): K8sManifestResource; withFieldManager(fieldManager: string): K8sManifestResource; withRecursive(): K8sManifestResource; withServerSideApply(forceConflicts?: boolean): K8sManifestResource;}30 members
Properties
property
applyTimeouttimespanget · setGets or sets the maximum time to wait for `kubectl apply` to complete.
property
clusterReadyTimeouttimespanget · setGets or sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
property
crdWaitBehaviorCrdWaitBehaviorget · setGets or sets how CRD wait failures are handled.
property
crdWaitTimeouttimespanget · setGets or sets the maximum time to wait for applied CRDs to reach the `Established` condition.
property
fieldManagerstringget · setGets the field manager name used with server-side apply (maps to `kubectl apply --field-manager`). When `null`, kubectl uses its default (`kubectl`).
property
forceConflictsbooleanget · setGets or sets whether to force conflicts on server-side apply (maps to `kubectl apply --server-side --force-conflicts`). Only meaningful when `ServerSide` is `true`.
property
inlineContentstringget · setGets or sets inline manifest content applied with `kubectl apply -f -`.
property
isKustomizebooleanget · setGets or sets whether this resource represents a Kustomize overlay directory.
property
manifestPathstringgetGets the manifest path passed to `kubectl apply`. Accepts an absolute file path, an absolute directory path, or `<inline>` for standard input.
property
namespacestringget · setGets or sets the Kubernetes namespace for the deployment. When `null`, the Helm default namespace is used.
property
recursivebooleanget · setGets or sets whether to recursively apply manifests in subdirectories (maps to `kubectl apply --recursive`). Only meaningful when `ManifestPath` is a directory.
property
serverSidebooleanget · setGets or sets whether to apply the manifest server-side (maps to `kubectl apply --server-side`). Server-side apply is required for large CRDs that exceed the client-side annotation size limit.
Methods
Sets the maximum time to wait for `kubectl apply` to complete.
withApplyTimeout(timeout: timespan): K8sManifestResourceParameters
timeouttimespanReturns
K8sManifestResourceSets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
withClusterReadyTimeout(timeout: timespan): K8sManifestResourceParameters
timeouttimespanReturns
K8sManifestResourceSets whether CRD wait failures fail the manifest resource or are logged as best-effort warnings.
withCrdWaitBehavior(behavior: CrdWaitBehavior): K8sManifestResourceParameters
behaviorCrdWaitBehaviorReturns
K8sManifestResourceSets the maximum time to wait for applied CRDs to reach the `Established` condition.
withCrdWaitTimeout(timeout: timespan): K8sManifestResourceParameters
timeouttimespanReturns
K8sManifestResourceSets the field manager name passed to `kubectl apply --field-manager`.
withFieldManager(fieldManager: string): K8sManifestResourceParameters
fieldManagerstringReturns
K8sManifestResourceRecursively applies manifests from subdirectories (maps to `kubectl apply --recursive`). Only meaningful when the manifest path is a directory.
withRecursive(): K8sManifestResourceReturns
K8sManifestResourceApplies the manifest server-side (maps to `kubectl apply --server-side`). Required for large CRDs that exceed the client-side annotation size limit.
withServerSideApply(forceConflicts?: boolean): K8sManifestResourceParameters
forceConflictsbooleanoptional= FalseReturns
K8sManifestResource