controller

package
v0.0.0-...-83896a2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DateFormat is used to format dates, by default it will be RFC1123Z
	DateFormat = time.RFC1123Z

	// ErrUpdateStatus is used as part of the Event 'reason' when we fail to update the status
	ErrUpdateStatus = "ErrUpdateStatus"

	// SuccessUpdate is used as part of the Event 'reason' when we update the status successfully
	SuccessUpdate = "SuccessUpdate"

	// MessageResourceUpdated is the message used for Events when a resource is updated
	MessageResourceUpdated = "Updated resource %s"

	Dashboard = "Dashboard"
	Alert     = "Alert"
	Service   = "Service"
)
View Source
const (
	AppopticsFinalizer = "appoptics.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonAOResource

type CommonAOResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              v12.TokenAndDataSpec `json:"spec"`
	Status            v12.Status           `json:"status,omitempty"`
}

type Controller

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

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	aoclientset clientset.Interface,
	aoInformerFactory informers.SharedInformerFactory,
	controllerAgentName string,
	resyncTime int64) *Controller

NewController returns a new controller

func (*Controller) GetCommunicator

func (c *Controller) GetCommunicator(secret *v1.Secret) (appoptics.AOCommunicator, error)

func (*Controller) Run

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

func (*Controller) SplitMetaNamespaceKey

func (c *Controller) SplitMetaNamespaceKey(key string) (namespace, kind string, name string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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