K8sManifestResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Kind v13.5.1-beta.895

A Kubernetes manifest applied to a Kind cluster via kubectl apply.

type K8sManifestResource interface {
Resource
ResourceWithParent
ResourceWithWaitSupport
}

Properties

propertyApplyTimeoutfloat64get · set
Gets or sets the maximum time to wait for kubectl apply to complete.
ApplyTimeout() (float64, error)
SetApplyTimeout(value float64) K8sManifestResource
propertyClusterReadyTimeoutfloat64get · set
Gets or sets the maximum time to wait for the Kubernetes API to become reachable before running kubectl apply.
ClusterReadyTimeout() (float64, error)
SetClusterReadyTimeout(value float64) K8sManifestResource
propertyCrdWaitBehaviorCrdWaitBehaviorget · set
Gets or sets how CRD wait failures are handled.
CrdWaitBehavior() (CrdWaitBehavior, error)
SetCrdWaitBehavior(value CrdWaitBehavior) K8sManifestResource
propertyCrdWaitTimeoutfloat64get · set
Gets or sets the maximum time to wait for applied CRDs to reach the Established condition.
CrdWaitTimeout() (float64, error)
SetCrdWaitTimeout(value float64) K8sManifestResource
propertyFieldManager*stringget · set
Gets the field manager name used with server-side apply (maps to kubectl apply --field-manager). When null, kubectl uses its default (kubectl).
FieldManager() (*string, error)
SetFieldManager(value *string) K8sManifestResource
propertyForceConflictsboolget · set
Gets or sets whether to force conflicts on server-side apply (maps to kubectl apply --server-side --force-conflicts). Only meaningful when ServerSide is true.
ForceConflicts() (bool, error)
SetForceConflicts(value bool) K8sManifestResource
propertyInlineContent*stringget · set
Gets or sets inline manifest content applied with kubectl apply -f -.
InlineContent() (*string, error)
SetInlineContent(value *string) K8sManifestResource
propertyIsKustomizeboolget · set
Gets or sets whether this resource represents a Kustomize overlay directory.
IsKustomize() (bool, error)
SetIsKustomize(value bool) K8sManifestResource
propertyManifestPathstringget
Gets the manifest path passed to kubectl apply. Accepts an absolute file path, an absolute directory path, or <inline> for standard input.
ManifestPath() (string, error)
propertyNamespace*stringget · set
Gets or sets the Kubernetes namespace for the deployment. When null, the Helm default namespace is used.
Namespace() (*string, error)
SetNamespace(value *string) K8sManifestResource
propertyRecursiveboolget · set
Gets or sets whether to recursively apply manifests in subdirectories (maps to kubectl apply --recursive). Only meaningful when ManifestPath is a directory.
Recursive() (bool, error)
SetRecursive(value bool) K8sManifestResource
propertyServerSideboolget · set
Gets 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.
ServerSide() (bool, error)
SetServerSide(value bool) K8sManifestResource

Methods

methodWithApplyTimeoutbuilder
Sets the maximum time to wait for kubectl apply to complete.
WithApplyTimeout(timeout float64) K8sManifestResource
timeoutfloat64The apply timeout.
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Sets the maximum time to wait for the Kubernetes API to become reachable before running kubectl apply.
WithClusterReadyTimeout(timeout float64) K8sManifestResource
timeoutfloat64The total readiness budget shared across repeated kubectl cluster-info probes. Values are normalized to whole seconds and must fall within the supported timeout range.
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithCrdWaitBehaviorbuilder
Sets whether CRD wait failures fail the manifest resource or are logged as best-effort warnings.
WithCrdWaitBehavior(behavior CrdWaitBehavior) K8sManifestResource
behaviorCrdWaitBehaviorThe CRD wait behavior.
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithCrdWaitTimeoutbuilder
Sets the maximum time to wait for applied CRDs to reach the Established condition.
WithCrdWaitTimeout(timeout float64) K8sManifestResource
timeoutfloat64The CRD wait timeout.
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithFieldManagerbuilder
Sets the field manager name passed to kubectl apply --field-manager.
WithFieldManager(fieldManager string) K8sManifestResource
fieldManagerstringThe field manager name.
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithRecursivebuilder
Recursively applies manifests from subdirectories (maps to kubectl apply --recursive). Only meaningful when the manifest path is a directory.
WithRecursive() K8sManifestResource
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithServerSideApplybuilder
Applies the manifest server-side (maps to kubectl apply --server-side). Required for large CRDs that exceed the client-side annotation size limit.
WithServerSideApply(options ...*WithServerSideApplyOptions) K8sManifestResource
options...*WithServerSideApplyOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithServerSideApplyOptions argument.

ForceConflicts*boolWhen true, also passes --force-conflicts to override field ownership held by another field manager (e.g., a controller). Defaults to false.
K8sManifestResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().