sparse-intern-71089
02/20/2023, 4:23 PMbillowy-army-68599
.get
is <namespace>/<service-name>
white-forest-65475
02/20/2023, 5:40 PMargocd_service = k8s.core.v1.Service.get(namespace.metadata.name, "argocd-server")
This produces an error about expecting a name.
I also tried:
argocd_service = k8s.core.v1.Service.get(pulumi.Output.concat(namespace.metadata.name, "/argocd-server"))
But this fails with a typerror as .get
requires at least 2 args - resource_name
and `id`: https://github.com/pulumi/pulumi-kubernetes/blob/3157468a01a22603ae0a2e618851929770c1b762/sdk/python/pulumi_kubernetes/core/v1/Service.py#L285-L286billowy-army-68599
argocd_service = k8s.core.v1.Service.get("argo-service", pulumi.Output.concat(namespace.metadata.name, "/argocd-server"))
billowy-army-68599
billowy-army-68599
white-forest-65475
02/20/2023, 6:02 PMbillowy-army-68599
white-forest-65475
02/20/2023, 6:56 PMbillowy-army-68599
white-forest-65475
02/20/2023, 6:57 PMbillowy-army-68599
white-forest-65475
02/20/2023, 6:57 PM