kubernetes

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceLabel = "app.kubernetes.io/instance"
	NameLabel     = "app.kubernetes.io/name"
)

Kubernetes labels

View Source
const (
	CompLabel = "app.kubernetes.io/component"
	// OrganizationLabel = "k8s.kubefox.io/organization"
	PlatformLabel = "k8s.kubefox.io/platform"

	EnvironmentLabel = "k8s.kubefox.io/environment"
	EnvRefLabel      = "k8s.kubefox.io/environment-ref"
	EnvIdLabel       = "k8s.kubefox.io/environment-id"

	ConfigLabel    = "k8s.kubefox.io/config"
	ConfigRefLabel = "k8s.kubefox.io/config-ref"
	ConfigIdLabel  = "k8s.kubefox.io/config-id"

	SystemLabel    = "k8s.kubefox.io/system"
	SystemRefLabel = "k8s.kubefox.io/system-ref"
	SystemIdLabel  = "k8s.kubefox.io/system-id"

	AppLabel       = "k8s.kubefox.io/app"
	ComponentLabel = "k8s.kubefox.io/component"
	CompHashLabel  = "k8s.kubefox.io/component-hash"
)

KubeFox labels

View Source
const KubeFoxGroup = "k8s.kubefox.io"

Variables

This section is empty.

Functions

func FullKey

func FullKey(obj Object) string

FullKey returns a unique key for the provided object. The key is in the format `{group}/{version}/{kind}/{name}`. For example, `k8s.kubefox.io/v1alpha1/Platform/dev`.

func Group

func Group(obj runtime.Object) string

func Key

func Key(obj Object) string

Key returns a simple key for the provided object. The key is in the format `{kind}/{name}`. For example, `Platform/dev`.

func Kind

func Kind(obj runtime.Object) string

Kind returns the provided object kind.

func KindKey

func KindKey(obj runtime.Object) string

KindKey returns a key for the provided object kind. The key is in the format `{group}/{version}/{kind}`. For example, `k8s.kubefox.io/v1alpha1/Platform`.

func Version

func Version(obj runtime.Object) string

Types

type KubeFoxObject

type KubeFoxObject interface {
	Object

	GetSpec() any
}

type Object

type Object interface {
	runtime.Object
	metav1.Object
}

Directories

Path Synopsis
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=k8s.kubefox.io
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=k8s.kubefox.io

Jump to

Keyboard shortcuts

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