Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ApplicationNameLabelKey indicates the name of the application. ApplicationNameLabelKey = "app.kubernetes.io/name" // ApplicationInstanceLabelKey indicates a unique name identifying the instance of an application. ApplicationInstanceLabelKey = "app.kubernetes.io/instance" // ApplicationVersionLabelKey indicates the current version of the application. ApplicationVersionLabelKey = "app.kubernetes.io/version" // ApplicationComponentLabelKey indicates the component within the architecture of an application. ApplicationComponentLabelKey = "app.kubernetes.io/component" // ApplicationPartOfLabelKey indicates the name of a higher level application this one is part of. ApplicationPartOfLabelKey = "app.kubernetes.io/part-of" // ApplicationManagedByLabelKey indicates the tool being used to manage the operation of an application. ApplicationManagedByLabelKey = "app.kubernetes.io/managed-by" // ApplicationCreatedByLabelKey indicates the controller/user who created this resource. ApplicationCreatedByLabelKey = "app.kubernetes.io/created-by" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(name string, opts ...ProviderOpt) *Provider
func (*Provider) InstanceName ¶
func (p *Provider) InstanceName(obj client.Object, ac AppComponent) string
func (*Provider) MatchLabels ¶
func (*Provider) StandardLabels ¶
type ProviderOpt ¶
type ProviderOpt func(p *Provider)
func WithCreator ¶
func WithCreator(creator string) ProviderOpt
func WithDynamicLabels ¶
func WithDynamicLabels(fn func(client.Object) map[string]string) ProviderOpt
func WithManager ¶
func WithManager(manager string) ProviderOpt
func WithVersion ¶
func WithVersion(fn func(client.Object) string) ProviderOpt
Click to show internal directories.
Click to hide internal directories.