kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AppLabel default pod label kubeinformer use.
	AppLabel = "app"
)

Variables

View Source
var Data kubeDataInterface = &kubeData{}

Data contain the kube informer datat should be part of the control plane.

Functions

func InitializeKubeDeployment

func InitializeKubeDeployment(k8sConfigPath string) error

InitializeKubeDeployment initiates the informers to keep a watch on pod/services/replicasets.

Types

type Info

type Info struct {
	// Informers need that internal object is an ObjectMeta instance
	metav1.ObjectMeta
	Type   string
	Owner  owner
	HostIP string
	// contains filtered or unexported fields
}

Info contains precollected metadata for Pods and Services. Not all the fields are populated for all the above types. To save memory, we just keep in memory the necessary data for each Type. For more information about which fields are set for each type, please refer to the instantiation function of the respective informers.

Jump to

Keyboard shortcuts

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