09/15/2021, 8:25 AM
Hey, Im trying to use aggregated api layer from pulumi, e.g. this here: Unfortunately there is no crd definition for it to use with
. I have been able to make it work by writing all fields manually into something like this:
Copy code
new k8s.apiextensions.CustomResource(
             apiVersion: "",
             kind: "Shoot",
but its kinda hacky… Does anyone have an idea how to generate a typeful and documented
class for something like this? The api is actually pretty well defined:
should be the same issue for the metrics-server which is supported by pulumi\kubernetes
Copy code
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
found pulumi-gen-kubernetes
was hacking around and successfully generated a custom schema.json from a gardener cluster openapi definition, but now
pulumi-gen-kubernetes -version=v3.8.0-alpha.1631554674+9e7903cc.dirty nodejs provider/cmd/pulumi-resource-kubernetes/schema.json /Users/i501100/go/src/
fails with e.g.:
Copy code
core/v1alpha1/shoot.ts:8:9 - error TS2305: Module '"../../meta/v1"' has no exported member 'Duration'.

8 import {Duration} from "../../meta/v1";
Duration is also missing upstream: its defined here: any idea why its missing?