https://pulumi.com logo
Title
g

glamorous-australia-21342

04/05/2023, 3:57 PM
Is there any way to disable the random numbers and letters pulumi creates on k8s resources?
b

billowy-army-68599

04/05/2023, 4:02 PM
yes, set the name in the metadata
ns = k8s.core.v1.Namespace(
    "cool",
    metadata=k8s.meta.v1.ObjectMetaArgs(
        name="cool-namespace",
    ),
)
g

glamorous-australia-21342

04/05/2023, 4:10 PM
Awesome thanks!
a

able-crayon-21563

04/09/2023, 9:57 PM
@glamorous-australia-21342 here’s some documentation about auto-naming and its tradeoffs: https://www.pulumi.com/docs/intro/concepts/resources/names/#autonaming