Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // KubeMasterURL, URL to kubernetes master. KubeMasterURL = "http://kubernetes.default:8080" // SkipSSLVerification allows to connect kubernetes without verifying certificates. SkipSSLVerification = true // CAFile to use with kubernetes if any. CAFile = "" // CertFile to use with kubernetes if any. CertFile = "" // KeyFile private key to use with kubernetes, if any. KeyFile = "" Verbose = false InCluster = true )
Functions ¶
func ImpactedDeployments ¶
func ImpactedDeployments(event Event)
ImpactedDeployments will fetch deployments using the repository image found in event to be impacted. It will check label to know if it should be entered in updates list that are managed by rollout goroutine.
func StartRollout ¶
func StartRollout()
StartRollout starts a goroutine on rollout() function that is a loop checking updates to send to Kubernetes Deployment objects.
Types ¶
type Event ¶
type Event struct { Action string `json:"action"` Target Target `json:"target"` Request Request `json:"request"` }
Event sent by Docker registry webhook.
type Events ¶
type Events struct {
Events []Event `json:"events"`
}
Events list from Docker webhook.
Click to show internal directories.
Click to hide internal directories.