context

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterContext

type ClusterContext interface {
	ClusterIdentity

	AddPodEventHandler(handler cache.ResourceEventHandlerFuncs)
	GetBatchPods() ([]*v1.Pod, error)
	GetAllPods() ([]*v1.Pod, error)
	GetActiveBatchPods() ([]*v1.Pod, error)
	GetNodes() ([]*v1.Node, error)
	GetNode(nodeName string) (*v1.Node, error)
	GetNodeStatsSummary(context.Context, *v1.Node) (*v1alpha1.Summary, error)
	GetPodEvents(pod *v1.Pod) ([]*v1.Event, error)
	GetServices(pod *v1.Pod) ([]*v1.Service, error)
	GetIngresses(pod *v1.Pod) ([]*networking.Ingress, error)

	SubmitPod(pod *v1.Pod, owner string, ownerGroups []string) (*v1.Pod, error)
	SubmitService(service *v1.Service) (*v1.Service, error)
	SubmitIngress(ingress *networking.Ingress) (*networking.Ingress, error)
	DeletePods(pods []*v1.Pod)
	DeleteService(service *v1.Service) error
	DeleteIngress(ingress *networking.Ingress) error

	AddAnnotation(pod *v1.Pod, annotations map[string]string) error

	Stop()
}

type ClusterIdentity added in v0.1.40

type ClusterIdentity interface {
	GetClusterId() string
	GetClusterPool() string
}

type KubernetesClusterContext

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

func NewClusterContext

func NewClusterContext(
	configuration configuration.ApplicationConfiguration,
	minTimeBetweenRepeatDeletionCalls time.Duration,
	kubernetesClientProvider cluster.KubernetesClientProvider,
	etcdHealthMonitor healthmonitor.EtcdLimitHealthMonitor) *KubernetesClusterContext

func (*KubernetesClusterContext) AddAnnotation

func (c *KubernetesClusterContext) AddAnnotation(pod *v1.Pod, annotations map[string]string) error

func (*KubernetesClusterContext) AddPodEventHandler

func (c *KubernetesClusterContext) AddPodEventHandler(handler cache.ResourceEventHandlerFuncs)

func (*KubernetesClusterContext) DeleteIngress added in v0.2.3

func (c *KubernetesClusterContext) DeleteIngress(ingress *networking.Ingress) error

func (*KubernetesClusterContext) DeletePods

func (c *KubernetesClusterContext) DeletePods(pods []*v1.Pod)

func (*KubernetesClusterContext) DeleteService added in v0.1.34

func (c *KubernetesClusterContext) DeleteService(service *v1.Service) error

func (*KubernetesClusterContext) GetActiveBatchPods

func (c *KubernetesClusterContext) GetActiveBatchPods() ([]*v1.Pod, error)

func (*KubernetesClusterContext) GetAllPods

func (c *KubernetesClusterContext) GetAllPods() ([]*v1.Pod, error)

func (*KubernetesClusterContext) GetBatchPods

func (c *KubernetesClusterContext) GetBatchPods() ([]*v1.Pod, error)

func (*KubernetesClusterContext) GetClusterId

func (c *KubernetesClusterContext) GetClusterId() string

func (*KubernetesClusterContext) GetClusterPool added in v0.1.24

func (c *KubernetesClusterContext) GetClusterPool() string

func (*KubernetesClusterContext) GetIngresses added in v0.2.3

func (c *KubernetesClusterContext) GetIngresses(pod *v1.Pod) ([]*networking.Ingress, error)

func (*KubernetesClusterContext) GetNode added in v0.2.6

func (c *KubernetesClusterContext) GetNode(nodeName string) (*v1.Node, error)

func (*KubernetesClusterContext) GetNodeStatsSummary added in v0.1.29

func (c *KubernetesClusterContext) GetNodeStatsSummary(ctx context.Context, node *v1.Node) (*v1alpha1.Summary, error)

func (*KubernetesClusterContext) GetNodes

func (c *KubernetesClusterContext) GetNodes() ([]*v1.Node, error)

func (*KubernetesClusterContext) GetPodEvents added in v0.1.2

func (c *KubernetesClusterContext) GetPodEvents(pod *v1.Pod) ([]*v1.Event, error)

func (*KubernetesClusterContext) GetServices added in v0.2.3

func (c *KubernetesClusterContext) GetServices(pod *v1.Pod) ([]*v1.Service, error)

func (*KubernetesClusterContext) ProcessPodsToDelete

func (c *KubernetesClusterContext) ProcessPodsToDelete()

func (*KubernetesClusterContext) Stop

func (c *KubernetesClusterContext) Stop()

func (*KubernetesClusterContext) SubmitIngress added in v0.2.3

func (c *KubernetesClusterContext) SubmitIngress(ingress *networking.Ingress) (*networking.Ingress, error)

func (*KubernetesClusterContext) SubmitPod

func (c *KubernetesClusterContext) SubmitPod(pod *v1.Pod, owner string, ownerGroups []string) (*v1.Pod, error)

func (*KubernetesClusterContext) SubmitService added in v0.1.34

func (c *KubernetesClusterContext) SubmitService(service *v1.Service) (*v1.Service, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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