Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

KubernetesResource

Handle
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7

Represents a compute resource for Kubernetes.

type KubernetesResource interface {
Resource
ResourceWithParent
}

Properties

propertyParentKubernetesEnvironmentResourceget
Gets the Parent property
Parent() KubernetesEnvironmentResource

Methods

Adds an arbitrary Kubernetes manifest to this service's generated Helm chart for polyglot callers.
AddManifest(
apiVersion string,
kind string,
name string,
options ...*AddManifestOptions,
) KubernetesManifestResource
apiVersionstringThe Kubernetes API version for the manifest.
kindstringThe Kubernetes resource kind for the manifest.
namestringThe Kubernetes metadata name for the manifest.
options...*AddManifestOptionsOptional settings, described under Options.

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

Configurefunc(obj KubernetesManifestResource)callbackA callback that configures the manifest fields.
KubernetesManifestResource

The added Kubernetes manifest resource.

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