sidecarterminator

package
v1.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultVKLabelKey   = "type"
	DefaultVKLabelValue = "virtual-kubelet"
	DefaultVKTaintKey   = "virtual-kubelet.io/provider"
)

Variables

View Source
var (
	SidecarTerminated corev1.PodConditionType = "SidecarTerminated"
)

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new SidecarTerminator Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func IsPodRunningOnVirtualKubelet

func IsPodRunningOnVirtualKubelet(pod *corev1.Pod, reader client.Reader) (bool, error)

Types

type ReconcileSidecarTerminator

type ReconcileSidecarTerminator struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileSidecarTerminator reconciles a SidecarTerminator object

func (*ReconcileSidecarTerminator) Reconcile

Reconcile get the pod whose sidecar containers should be stopped, and stop them.

Jump to

Keyboard shortcuts

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