Documentation ¶
Index ¶
- Constants
- Variables
- func After(t time.Time, seconds int64) *metav1.Time
- func AlwaysOnCreate(_ event.CreateEvent) bool
- func AlwaysOnDelete(_ event.DeleteEvent) bool
- func AlwaysOnGeneric(_ event.GenericEvent) bool
- func AlwaysOnUpdate(_ event.UpdateEvent) bool
- func FilterBatchJobListByOwner(jobs []batchv1.Job, owner *metav1.OwnerReference) []batchv1.Job
- func FilterJobListByOwner(jobs []eraserv1.ImageJob, owner *metav1.OwnerReference) []eraserv1.ImageJob
- func GetExclusionVolume(configmapList *corev1.ConfigMapList) ([]corev1.VolumeMount, []corev1.Volume, error)
- func IsCompletedOrFailed(p eraserv1.JobPhase) bool
- func NeverOnCreate(_ event.CreateEvent) bool
- func NeverOnDelete(_ event.DeleteEvent) bool
- func NeverOnGeneric(_ event.GenericEvent) bool
- func NeverOnUpdate(_ event.UpdateEvent) bool
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 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 FilterJobListByOwner ¶
func GetExclusionVolume ¶
func GetExclusionVolume(configmapList *corev1.ConfigMapList) ([]corev1.VolumeMount, []corev1.Volume, error)
func IsCompletedOrFailed ¶
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.
Click to show internal directories.
Click to hide internal directories.