label

package
v0.0.0-...-2864b0a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultManagedBy = "sealos"
)

Variables

This section is empty.

Functions

func RecommendedLabels

func RecommendedLabels(r *Recommended) map[string]string

Types

type AppKey

type AppKey = string
const (
	AppName      AppKey = "app.kubernetes.io/name"
	AppInstance  AppKey = "app.kubernetes.io/instance"
	AppVersion   AppKey = "app.kubernetes.io/version"
	AppComponent AppKey = "app.kubernetes.io/component"
	AppPartOf    AppKey = "app.kubernetes.io/part-of"
	AppManagedBy AppKey = "app.kubernetes.io/managed-by"
)
type Recommended struct {
	Name      string
	Instance  string
	Version   string
	Component string
	PartOf    string
	ManagedBy string
}

func (*Recommended) Labels

func (r *Recommended) Labels() map[string]string

Jump to

Keyboard shortcuts

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