Hey, Im trying to use aggregated api layer from pu...
# kubernetes
c
Hey, Im trying to use aggregated api layer from pulumi, e.g. this here: https://github.com/gardener/gardener/blob/master/example/90-shoot.yaml Unfortunately there is no crd definition for it to use with
crd2pulumi
. I have been able to make it work by writing all fields manually into something like this:
Copy code
new k8s.apiextensions.CustomResource(
         "shoot",
             {
             apiVersion: "core.gardener.cloud/v1beta1",
             kind: "Shoot",
...
but its kinda hacky… Does anyone have an idea how to generate a typeful and documented
pulumi.CustomResource
class for something like this? The api is actually pretty well defined: https://github.com/gardener/gardener/blob/master/pkg/apis/core/types_shoot.go
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/github.com/pulumi/pulumi-kubernetes
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: https://github.com/pulumi/pulumi-kubernetes/tree/master/sdk/nodejs/meta/v1 its defined here: https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration any idea why its missing?