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
applyTimeout timespanget · setGets or sets the maximum time to wait for `kubectl apply` to complete.
property
clusterReadyTimeout timespanget · setGets or sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
property
crdWaitBehavior CrdWaitBehavior get · setGets or sets how CRD wait failures are handled.
property
crdWaitTimeout timespanget · setGets or sets the maximum time to wait for applied CRDs to reach the `Established` condition.
property
fieldManager stringget · setGets the field manager name used with server-side apply (maps to `kubectl apply --field-manager`). When `null`, kubectl uses its default (`kubectl`).
property
forceConflicts booleanget · 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
inlineContent stringget · setGets or sets inline manifest content applied with `kubectl apply -f -`.
property
isKustomize booleanget · setGets or sets whether this resource represents a Kustomize overlay directory.
property
manifestPath stringgetGets 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
serverSide booleanget · 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
K8sManifestResource Sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
withClusterReadyTimeout(timeout: timespan): K8sManifestResourceParameters
timeouttimespanReturns
K8sManifestResource Sets whether CRD wait failures fail the manifest resource or are logged as best-effort warnings.
withCrdWaitBehavior(behavior: CrdWaitBehavior): K8sManifestResourceParameters
behaviorCrdWaitBehavior Returns
K8sManifestResource Sets the maximum time to wait for applied CRDs to reach the `Established` condition.
withCrdWaitTimeout(timeout: timespan): K8sManifestResourceParameters
timeouttimespanReturns
K8sManifestResource Sets the field manager name passed to `kubectl apply --field-manager`.
withFieldManager(fieldManager: string): K8sManifestResourceParameters
fieldManager stringReturns
K8sManifestResource Recursively applies manifests from subdirectories (maps to `kubectl apply --recursive`). Only meaningful when the manifest path is a directory.
withRecursive(): K8sManifestResourceReturns
K8sManifestResource Applies 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
forceConflicts booleanoptional= FalseReturns
K8sManifestResource