tracker

package
v0.0.0-...-ed832b3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace            string
	SQSregion            string
	Endpointendpointtype string
	Cluster              string
	Version              string
	KubeDeployEndpoint   string
	RobbieEndpoint       string
	KCDapp               string
}

Config holds cracker configuration data

type DeployMessage

type DeployMessage struct {
	Type    string
	Version string
	Body    interface{}
	Retries int
}

DeployMessage hold a message information

type FailedPodLogData

type FailedPodLogData struct {
	Cluster   string
	Timestamp time.Time
	Deploy    appsv1.Deployment
	Version   string

	PodName           string
	ContainerName     string
	Logs              string
	PodFailureReason  string
	PodFailureMessage string
}

FailedPodLogData is FailedPodLogData

type FinishedStatusData

type FinishedStatusData struct {
	Cluster   string
	Timestamp time.Time
	Deploy    appsv1.Deployment
	Version   string
	Success   bool
}

FinishedStatusData format for complete job

type PodInfo

type PodInfo struct {
	Name            string
	Status          string
	HostIP          string
	PodIP           string
	ContainerImages []string
}

PodInfo holds information about a Pod

type StatusData

type StatusData struct {
	Cluster     string
	Timestamp   time.Time
	Deploy      appsv1.Deployment
	PodInfoList []PodInfo
	Version     string
}

StatusData format of data to send to kubedeploy

type Tracker

type Tracker struct {
	KubeDeployEndpointAPI string
	RobbieEndpointAPI     string
	// contains filtered or unexported fields
}

Tracker holds comonents needed to track a deployment

func NewTracker

NewTracker Creates a new tracker

func (*Tracker) InformerQueueMerger

func (t *Tracker) InformerQueueMerger()

InformerQueueMerger empties the informer queues into the main work queue

func (*Tracker) Run

func (t *Tracker) Run(threadCount int, stopCh <-chan struct{}, waitgroup *sync.WaitGroup) error

Run starts the tracker

Jump to

Keyboard shortcuts

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