Documentation ¶
Index ¶
- Constants
- type Controller
- func DeploymentController(kubeEnv *KubeEnv, gimletHost string, agentKey string) *Controller
- func IngressController(kubeEnv *KubeEnv, gimletHost string, agentKey string) *Controller
- func NewController(name string, listWatcher cache.ListerWatcher, objType rntme.Object, ...) *Controller
- func PodController(kubeEnv *KubeEnv, gimletHost string, agentKey string) *Controller
- type Event
- type KubeEnv
Constants ¶
View Source
const AnnotationGitRepository = "gimlet.io/git-repository"
View Source
const AnnotationGitSha = "gimlet.io/git-sha"
View Source
const EventDeploymentCreated = "deploymentCreated"
View Source
const EventDeploymentDeleted = "deploymentDeleted"
View Source
const EventDeploymentUpdated = "deploymentUpdated"
View Source
const EventIngressCreated = "ingressCreated"
View Source
const EventIngressDeleted = "ingressDeleted"
View Source
const EventIngressUpdated = "ingressUpdated"
View Source
const EventPodCreated = "podCreated"
View Source
const EventPodDeleted = "podDeleted"
View Source
const EventPodUpdated = "podUpdated"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller demonstrates how to implement a controller with client-go.
func DeploymentController ¶
func DeploymentController(kubeEnv *KubeEnv, gimletHost string, agentKey string) *Controller
func IngressController ¶
func IngressController(kubeEnv *KubeEnv, gimletHost string, agentKey string) *Controller
func NewController ¶
func NewController( name string, listWatcher cache.ListerWatcher, objType rntme.Object, eventHandler func(informerEvent Event, objectMeta meta_v1.ObjectMeta, obj interface{}) error, ) *Controller
NewController creates a new Controller.
func PodController ¶
func PodController(kubeEnv *KubeEnv, gimletHost string, agentKey string) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh chan struct{})
Run begins watching and syncing.
Click to show internal directories.
Click to hide internal directories.