https://pulumi.com logo
#python
Title
# python
s

stocky-refrigerator-75813

03/14/2024, 5:45 PM
how do i get an object that's cluster level? I tried the below code, but it looks like
CustomResource.get
assumes a namespace:
Copy code
cluster_issuer = CustomResource.get(resource_name="cluster-issuer",id=cluster_issuer,api_version="<http://cert-manager.io/v1|cert-manager.io/v1>",kind="Certificate")
i get
error: Preview failed: resource 'enterprise-ca' does not exist
even though the object exists:
Copy code
kubectl get clusterissuer enterprise-ca
NAME            READY   AGE
enterprise-ca   True    3h13m
d

dry-keyboard-94795

03/14/2024, 6:05 PM
I think certificate resources are namespace scoped. The kubectl command you've provided is querying for the clusterissuer resource, not certificates