kubernetes

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const DspKubernetesLabelDomain = "tiki-dsp.io"
View Source
const DspKubernetesLabelPrefix = DspKubernetesLabelDomain + "/"
View Source
const DspNamespaceEnv = "DSP_NAMESPACE"
View Source
const DspPodEnv = "DSP_POD"

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, obj Object, changedBy, changeReason string, forceOverwrite bool) (runtime.Object, error)

func AttachSharedInformer added in v2.9.0

func AttachSharedInformer[TObj Object](ctx context.Context, indexers cache.Indexers) (informers.GenericInformer, error)

AttachSharedInformer creates a new informer instance located in the given context Shared informers do support custom indexing whilst attaching the first time. Calling AttachSharedInformer multiple times for the same resource using different cache.Indexers will use the indexers provided with the first call; all others will be ignored

func Delete

func Delete(ctx context.Context, gvk schema.GroupVersionKind, namespace string, name string) error

func DeleteObject

func DeleteObject(ctx context.Context, obj Object) error

func DspLabel added in v2.7.0

func DspLabel(name string) string

func EnableSharedInformer added in v2.9.0

func EnableSharedInformer(ctx context.Context, resyncDuration time.Duration, namespace string) context.Context

EnableSharedInformer connects a shared informer factory to the given context

func Get

func Get(ctx context.Context, gvk schema.GroupVersionKind, namespace string, name string) (runtime.Object, error)

func GetObject added in v2.0.10

func GetObject(ctx context.Context, obj Object) error

func GroupVersionKindForObject

func GroupVersionKindForObject(obj runtime.Object) (schema.GroupVersionKind, error)

func IsDspLabel added in v2.7.0

func IsDspLabel(label string) bool

func IsPvcResizingError added in v2.0.17

func IsPvcResizingError(err error) bool

func Watch added in v2.1.1

func Watch(ctx context.Context, gvk schema.GroupVersionKind, namespace string, options metaV1.ListOptions) (watch.Interface, error)

Types

type Object added in v2.8.0

type Object interface {
	metaV1.Object
	runtime.Object
}

type PodReference

type PodReference struct {
	Namespace string `json:"namespace"`
	Pod       string `json:"pod"`
}

func GetCurrentPodReference

func GetCurrentPodReference() (*PodReference, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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