This message was deleted.
# general
s
This message was deleted.
g
If I understand your question correctly, it looks like you’re trying to extract the token value as a
string
and use that value elsewhere in your program. The reason you got the error is because the
get
methods return an
Output
, which is a computed value (i.e. Promise). This means that the value isn’t known prior to running the update. Rather than trying to use the string value directly, you can pass the Output values around to other resources, and they will be resolved correctly during the update. https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs explains this in more detail We also have extensive k8s-specific examples here: https://www.pulumi.com/docs/guides/crosswalk/kubernetes/
b
the problem is the
tokenName
which i interpolate into a string and pass that to the
Secret.get
method. if i change
Secret.get("somevalue"...)
it works
g
Ah, understood. Currently, the
get
methods only accept a
string
for the
name
arg, not an Output. I can’t recall if there’s a technical reason for that, but you’re welcome to open an issue on the pulumi-kubernetes repo. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/kubernetes/core/v1/#Secret-get