metadata

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 7 Imported by: 1

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 added in v0.3.17

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 added in v0.3.7

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