metadata

package
v3.0.0-...-cde5230 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

func AdoptOldAutonameIfUnnamed(newObj map[string]interface{}, oldObj *v1alpha4.Cluster)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL