Documentation
¶
Index ¶
- Constants
- func ConfigMapAnchorToOwnerReference(configMap *corev1.ConfigMap) metav1.OwnerReference
- func CreateAnchorName(it *shipper.InstallationTarget) (string, error)
- func CreateConfigMapAnchor(it *shipper.InstallationTarget) (*corev1.ConfigMap, error)
- type AnchorWorkItem
- type Controller
- type InstallationTargetWorkItem
- type WorkItem
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 ¶
func (i InstallationTargetWorkItem) GetKey() string
Click to show internal directories.
Click to hide internal directories.