Is it on purpose that `ResourceRequirements` has t...
# general
c
Is it on purpose that
ResourceRequirements
has the type as
pulumi.Input<object>
instead of having a named object with
cpu
and
memory
?
w
Which
ResourceRequirements
is this? For ECS at least - I don't see
Input<object>
? Is this in Kubernetes? https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/ecs/#ResourceRequirements
b
if you check the example on the bottom,
limits
and
requests
can have custom keyvals
c
For k8s
And there’s no way to support both with typing?
b
There is, but the types are autogenerated from the openapi spec if I recall correctly
so if its getting created as just an object then the openapi spec must define it like that
c
Because it’s a bit of a bad experience when working with an IDE. Autocompletion isn’t there because of this.
w
Yeah - that makes sense. I've actually noticed this with a few Kubernetes properties. Mind opening an issue? I think it's likely we could improve this at least in TypeScript.
c
Sure