is it possible to pull the k8s secret data from pu...
# golang
w
is it possible to pull the k8s secret data from pulumi? i couldn't find any examples for how I can do Apply manipulation and get map[string]string from StringMapOutput. e.g I created a secret with type
"<http://kubernetes.io/service-account-token|kubernetes.io/service-account-token>"
, and now want to grab the certificate and token
w
You will have access to the
map[string]string
within the Apply callback, and can use that as needed. Any other place in Pulumi that you want to use this will accept the Output. But if you need to store the data to disk or do something else with it - you will need to do it inside the callback. Notably that callback may not be executed in some cases - for example a preview when the value is not yet created.
w
you will need to do it inside the callback
thanks, figured this out experimentally