Documentation ¶
Overview ¶
Copied and modified from https://github.com/pulumi/pulumi-kubernetes/blob/v3.5.0/provider/pkg/metadata/naming.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdoptOldAutonameIfUnnamed ¶
AdoptOldAutonameIfUnnamed checks if `newObj` has a name, and if not, "adopts" the name of `oldObj` instead. If `oldObj` was autonamed, then we mark `newObj` as autonamed, too.
func AssignNameIfAutonamable ¶
func AssignNameIfAutonamable(obj map[string]interface{}, propMap resource.PropertyMap, base tokens.QName)
AssignNameIfAutonamable generates a name for an object. Uses DNS-1123-compliant characters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.