job-observer

module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT

README

job-observer

Go test Go Report Card

job-observer deletes a Job that has been stopped for an arbitrary amount of time.

Install

$ kubectl apply -f https://raw.githubusercontent.com/akaimo/job-observer/master/bundle.yaml

Configuration

Cleaner

Specify the job to be deleted in the Cleaner.

apiVersion: job-observer.akaimo.com/v1alpha1
kind: Cleaner
metadata:
  name: my-cleaner
spec:
  # It will be deleted after this time
  # Specify time as "s", "m", "h"
  ttlAfterFinished: 1h
  
  # Status of the job to be deleted when the job is stopped
  # "Complete" or "Failed" or ""
  # Default is ""
  # The "" applies to all Jobs
  cleaningJobStatus: Complete
  
  # The job that matches the label is deleted.
  selector:
    matchLabels:
      app: my
      version: mikan

Directories

Path Synopsis
cmd
pkg
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/cleaner/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/cleaner/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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