metadata

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(conf config.Config) *Service

func (*Service) ChartName

func (a *Service) ChartName() string

ChartName returns ChartName.

func (*Service) Config

func (a *Service) Config() config.Config

func (*Service) Load

func (a *Service) Load(obj *unstructured.Unstructured)

Load processed objects one-by-one before actual processing to define app namespace, name common prefix and other app meta information.

func (*Service) Namespace

func (a *Service) Namespace() string

Namespace returns detected app namespace.

func (*Service) TemplatedName

func (a *Service) TemplatedName(name string) string

TemplatedName - converts object name to its Helm templated representation. Adds chart fullname prefix from _helpers.tpl

func (*Service) TemplatedString

func (a *Service) TemplatedString(str string) string

func (*Service) TrimName

func (a *Service) TrimName(objName string) string

TrimName - tries to trim app common prefix for object name if detected. If no common prefix - returns name as it is. It is better to trim common prefix because Helm also adds release name as common prefix.

Jump to

Keyboard shortcuts

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