Hello everyone, I have a beginner’s question on `c...
# getting-started
c
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
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
Thanks, so just to make sure i understand,
arg.metadata.name
is the name K8 will use, whereas
resource_name
is Pulumi specific?
e
Yes
c
tyvm, much appreciated 😊