util

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageJobOwnerLabelKey = "eraser.sh/job-owner"

	EnvVarContainerdNamespaceKey   = "CONTAINERD_NAMESPACE"
	EnvVarContainerdNamespaceValue = "k8s.io"
)

Variables

View Source
var (
	RemoverImage        = flag.String("remover-image", "", "remover image")
	EraserConfigmapName = "eraser-manager-config"
)

Functions

func After

func After(t time.Time, seconds int64) *metav1.Time

func AlwaysOnCreate

func AlwaysOnCreate(_ event.CreateEvent) bool

func AlwaysOnDelete

func AlwaysOnDelete(_ event.DeleteEvent) bool

func AlwaysOnGeneric

func AlwaysOnGeneric(_ event.GenericEvent) bool

func AlwaysOnUpdate

func AlwaysOnUpdate(_ event.UpdateEvent) bool

func FilterBatchJobListByOwner

func FilterBatchJobListByOwner(jobs []batchv1.Job, owner *metav1.OwnerReference) []batchv1.Job

func FilterJobListByOwner

func FilterJobListByOwner(jobs []eraserv1.ImageJob, owner *metav1.OwnerReference) []eraserv1.ImageJob

func GetExclusionVolume

func GetExclusionVolume(configmapList *corev1.ConfigMapList) ([]corev1.VolumeMount, []corev1.Volume, error)

func IsCompletedOrFailed

func IsCompletedOrFailed(p eraserv1.JobPhase) bool

func NeverOnCreate

func NeverOnCreate(_ event.CreateEvent) bool

func NeverOnDelete

func NeverOnDelete(_ event.DeleteEvent) bool

func NeverOnGeneric

func NeverOnGeneric(_ event.GenericEvent) bool

func NeverOnUpdate

func NeverOnUpdate(_ event.UpdateEvent) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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