https://pulumi.com logo
#getting-started
Title
# getting-started
c

calm-kitchen-4682

06/11/2022, 11:18 AM
Hello everyone, I have a beginner’s question on
core.v1.Secret
Python package. I have checked the documentation here and was wondering whether the
resource_name
is the acutal secret name in K8 or just some name used by Pulumi to reference this secret? Getting a non-unique error from Pulumi, despite the name being unique within a namespace in K8.
e

echoing-dinner-19531

06/11/2022, 1:25 PM
Yes
resource_name
is a logical name used by Pulumi to identify the resource. By default we'll add a psudo-random suffix to that and pass that random name as
args.metadata.name
to kubernetes, but if that's clashing (and it's more possible to at the moment due to some investigation into deterministic names that were in the process of rolling back) then you can also just set
args.metadata.name
yourself.
c

calm-kitchen-4682

06/11/2022, 1:27 PM
Thanks, so just to make sure i understand,
arg.metadata.name
is the name K8 will use, whereas
resource_name
is Pulumi specific?
e

echoing-dinner-19531

06/11/2022, 1:27 PM
Yes
c

calm-kitchen-4682

06/11/2022, 1:28 PM
tyvm, much appreciated 😊
3 Views