pulumi / pulumi-kubernetes

A Pulumi resource provider for Kubernetes to manage API resources and workloads in running clusters
https://www.pulumi.com/docs/reference/clouds/kubernetes/
Apache License 2.0
407 stars 117 forks source link

Add enum types #1616

Open lblackstone opened 3 years ago

lblackstone commented 3 years ago

Pulumi now supports enumerated types (enums), so we could enhance our SDKs with this information. I don't believe the OpenAPI spec explicitly specifies the enum values, so we'd either need to heuristically scrape this information from property comments, or curate the list manually.

We have one current example of this for the Service type.

lblackstone commented 1 year ago

See https://github.com/pulumi/pulumi-kubernetes/pull/1666#issuecomment-955039374 for some additional details of how this could be implemented.