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 (*Parser) Add ¶
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.
Click to show internal directories.
Click to hide internal directories.