@pulumi/kubernetes > apiextensions
CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the
CoreOS Prometheus operator exposes a CRD
instantiate this as a Pulumi resource, one could call
new CustomResource, passing the
ServiceMonitor resource definition as an argument.
new CustomResource(name: string, args: CustomResourceArgs, opts?: pulumi.CustomResourceOptions)
Create a CustomResource resource with the given unique name, arguments, and options.
nameThe unique name of the resource.
argsThe arguments to use to populate this resource's properties.
optsA bag of options that control this resource's behavior.
public getInputs(): CustomResourceArgs
getProvider(moduleMember: string): ProviderResource | undefined
static isInstance(obj: any): boolean
Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
public apiVersion: pulumi.Output<string>;
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
public kind: pulumi.Output<string>;
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
public metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
CustomResourceArgs represents a resource definiton we’d use to create an instance of a
Kubernetes CustomResourceDefinition (CRD). For example, the CoreOS Prometheus operator
exposes a CRD
monitoring.coreos.com/ServiceMonitor; to create a
CustomResourceArgs containing the
ServiceMonitor definition to
NOTE: This type is fairly loose, since other than
kind, there are no
fields required across all CRDs.