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

stocky-refrigerator-75813

03/14/2024, 6:03 PM
now i use the code :
Copy code
cert_ca = k8s.core.v1.Secret.get("ou-tls-certificate",cluster_issuer.spec.ca.secretName.apply(lambda secretName: "cert-manager/" + secretName),
                                            opts=pulumi.ResourceOptions(
                                                provider = k8s_provider,
                                                depends_on=[],
                                                custom_timeouts=pulumi.CustomTimeouts(
                                                    create="5m",
                                                    update="10m",
                                                    delete="10m"
                                                )
                                            )).data["tls.crt"].apply(lambda data: data  )
but i get the error:
AttributeError: 'CustomResource' object has no attribute 'apply'