controller

package
v0.0.0-...-a6dd246 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodController

func NewPodController(name string, kubeClient *kubernetes.Clientset, podInformer cache.SharedIndexInformer) *slavePodController

Types

type Metadata

type Metadata struct {
	Labels          map[string]string       `json:"labels,omitempty"`
	Annotations     map[string]string       `json:"annotations,omitempty"`
	OwnerReferences []metav1.OwnerReference `json:"ownerReferences,omitempty"`
}

type MetadataCache

type MetadataCache struct {
	// contains filtered or unexported fields
}

func (*MetadataCache) Delete

func (cache *MetadataCache) Delete(key client.ObjectKey)

func (*MetadataCache) Done

func (cache *MetadataCache) Done(key client.ObjectKey, metadata Metadata)

func (*MetadataCache) Get

func (cache *MetadataCache) Get(key client.ObjectKey) (Metadata, bool)

func (*MetadataCache) Set

func (cache *MetadataCache) Set(key client.ObjectKey, metadata Metadata)

Jump to

Keyboard shortcuts

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