https://pulumi.com logo
#kubernetes
Title
# kubernetes
b

breezy-cricket-40277

11/26/2020, 2:29 PM
How can I use the pulumi
kubernetes
provider to fetch a
secret
from a kubernetes cluster provider, if the secret itself is not created by pulumi?
Considering that the
kubernetes
provider has full access to the secret in question, of course.
I want to use this secret (it’s a public key) as an input to a resource managed by pulumi.
What’s the best way to accomplish this?
Also, another constraint. I don’t know the name of the secret beforehand. So it would be necessary to enumerate all secrets from within a certain namespace that follow some naming pattern, to then chose the appropriate secret.
3 Views