https://pulumi.com logo
Title
m

many-helicopter-89037

07/01/2021, 6:27 PM
Is there a way to find Helm created resource other than this?
wordpress.getResourceProperty("v1/Service", "wpdev-wordpress", "status");
This approach doesn't work when some charts like kube-prometheus truncates the long resource names. For example chart creates two different service names based on pulumi resource name.
new k8s.helm.v3.Chart(
      `kube-prometheus-example`,
      ...
)

new k8s.helm.v3.Chart(
      `kube-prometheus-example1`,
      ...
)
generates following Services..
kube-prometheus-example-kube-alertmanager
kube-prometheus-example1-kub-alertmanager
In such cases I cannot lookup the service its created..
s

steep-sunset-89396

07/06/2021, 2:05 AM
have you tried
.getResource('v1/ServiceList', name)
maybe?