Description
CustomResource
is a generic resource for creating a Kubernetes custom resource; see example. Today it is implemented as an 'overlay' resource and has two major limitations:
- not supported in Pulumi YAML; see Implement a blocklist and improve errors when unsupported resources are created pulumi-yaml#158
- not supported in Pulumi Java SDK
Conceptually,CustomResource
represents a single Kubernetes object akin to ConfigMap
or Deployment
. It's not a component resource and should continue to benefit from the usual resource lifecycle (e.g. diff).
For most use-cases, a reasonable alternative to CustomResource
is ConfigGroup
with its objs
input property, which allows for literal Kubernetes objects. That said, a component resource is an awkward substitute for a custom resource.
Note that the Pulumi Converter for Kubernetes (kube2pulumi and pulumi-converter-kubernetes) doesn't support custom resources (see Limitations).
### Resolves
- [ ] https://github.com/pulumi/pulumi-kubernetes/issues/1082
- [ ] https://github.com/pulumi/pulumi-kubernetes/issues/1115