nameref

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixNameBackReference

func FixNameBackReference(m resmap.ResMap) error

FixNameBackReference updates name references in resource A that refer to resource B, given that B's name may have changed.

For example, a HorizontalPodAutoscaler (HPA) necessarily refers to a Deployment, the thing that an HPA scales. In this case:

  • the HPA instance is the Referrer,
  • the Deployment instance is the ReferralTarget.

If the Deployment's name changes, e.g. a prefix is added, then the HPA's reference to the Deployment must be fixed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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