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

fierce-market-67222

01/31/2024, 12:58 PM
hello I’m trying to deploy a sentry from a helm chart and because it has helm hooks i will use
Copy code
from pulumi_kubernetes.helm.v3 import Release, ReleaseArgs, RepositoryOptsArgs
the problem is that the name of the resulting pods and svc have a random hash appended to them as, where 432a15c6 is random
Copy code
host: sentry-432a15c6-web.sentry.svc.cluster.local
how can you specify a a designated name? i was trying to use resource_names but it seams not to be working….
Copy code
self.chart = ReleaseArgs(
    chart="sentry",
    repository_opts=RepositoryOptsArgs(
        repo="<https://sentry-kubernetes.github.io/charts>"
    ),
    version="21.0.0",
    namespace=self.namespace_name,
    resource_names={
        "Service": ["sentry"],
    },
Thank you 🙂
a

adventurous-butcher-54166

01/31/2024, 1:50 PM
Have you tried setting the
release_name
parameter explicitly? From Pulumi.com / Resource Names:
Pulumi auto-names most resources by default, using the logical name and a random suffix to construct a unique physical name for a resource. Users can provide explicit names to override this default.
f

fierce-market-67222

01/31/2024, 4:15 PM
thank you, i did resolve it with name
Copy code
self.chart = ReleaseArgs(
    name="myname",