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

able-painter-57976

10/13/2023, 8:52 AM
May be it's a stupid question, but how to get a Secret not created by pulumi when I know the name and the namespace. I guess something like this in python
Copy code
machine_secret = kubernetes.core.v1.Secret.get(
            "pulumi_resource_name",
            "secret_name_in_k8s_cluster",
        )
but where to filter the namespace? It's not allowed input arg.
b

billowy-army-68599

10/13/2023, 9:18 AM
the secret name is in the form
namespace/name
v

victorious-belgium-85210

10/18/2023, 2:24 PM
This one gets a secret managed by Pulumi. To get one outside of pulumi, you have to use the regular Kubernetes client for your language.
2 Views