applications

package
v0.0.0-...-2bbe6b7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppLabel is the Kubernetes recommended label to indicate that a component
	// is part of an application.
	AppLabel = "app.kubernetes.io/part-of"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name           string
	Instances      []string
	Components     []string
	Parents        []Application
	Kustomizations []types.NamespacedName
}

Application represents a discovered deployment group.

type Parser

type Parser struct {
	Accessor meta.MetadataAccessor
	// contains filtered or unexported fields
}

Parser parses the labels and annotations on runtime Objects and extracts apps from the labels.

func NewParser

func NewParser() *Parser

NewParser creates and returns a new Parser ready for use.

func (*Parser) Add

func (p *Parser) Add(list []runtime.Object) error

Add a set of runtime Objects to the parser.

Multiple sets of runtime Objects can be added before discovering the Applications.

func (*Parser) Applications

func (p *Parser) Applications() []Application

Applications returns the Applications that were discovered during the parsing process.

Jump to

Keyboard shortcuts

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