agent

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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.

type Event

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

Event indicate the informerEvent

type KubeEnv

type KubeEnv struct {
	Name      string
	Namespace string
	Client    kubernetes.Interface
}

func (*KubeEnv) Services

func (e *KubeEnv) Services(repo string) ([]*api.Stack, error)

Jump to

Keyboard shortcuts

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