janitor

package
v0.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentName             = "janitor-controller"
	AnchorSuffix          = "-anchor"
	InstallationTargetUID = "InstallationTargetUID"
)

Variables

This section is empty.

Functions

func ConfigMapAnchorToOwnerReference

func ConfigMapAnchorToOwnerReference(configMap *corev1.ConfigMap) metav1.OwnerReference

func CreateAnchorName

func CreateAnchorName(it *shipper.InstallationTarget) (string, error)

func CreateConfigMapAnchor

func CreateConfigMapAnchor(it *shipper.InstallationTarget) (*corev1.ConfigMap, error)

Types

type AnchorWorkItem

type AnchorWorkItem struct {
	ObjectMeta            metav1.ObjectMeta
	Key                   string
	InstallationTargetUID string
	ReleaseName           string
	ClusterName           string
	Namespace             string
	Name                  string
}

func (AnchorWorkItem) GetKey

func (i AnchorWorkItem) GetKey() string

type Controller

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

func NewController

func NewController(
	shipperclientset shipperclient.Interface,
	shipperInformerFactory shipperinformers.SharedInformerFactory,
	store clusterclientstore.Interface,
	recorder record.EventRecorder,
) *Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{})

type InstallationTargetWorkItem

type InstallationTargetWorkItem struct {
	ObjectMeta metav1.ObjectMeta
	Key        string
	Namespace  string
	Name       string
	AnchorName string
	Clusters   []string
}

func (InstallationTargetWorkItem) GetKey

type WorkItem

type WorkItem interface {
	GetKey() string
}

Jump to

Keyboard shortcuts

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