This message was deleted.
# golang
s
This message was deleted.
w
To be able to use it to create a Kubernetes ConfigMap, I need to have an OutputState
This should not be the case. You should be able to use an Output as an input to a ConfigMap. In general, you shouldn’t need to work with OutputState directly unless you are building your own new kinds of Outputs. Could you share the ConfigMap code perhaps?
e
Alright, thanks for your answer! After reading through the documentation of
ApplyT
, I understod that you can just cast the return value to a corresponding “registered” type. In my case i was returning a
pulumi.StringMap
, which apearantly doesn’t have a
pulumi.StringMapOutput
registered as its output type. If I return a
map[string]string
however, I’m able to cast the return value to a
pulumi.StringMapOutput
which
kubernetes.ConfigMapArgs
accepts. Is there any list of types with registered output types?
l
You should never need to return a "pulumi type" from within an apply. Returning the raw value (string, int, or in this case map) is the way to go.
👍 1