deployment

package
v0.0.0-...-5bef37e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *AgentConfig) error

func ShouldIgnore

func ShouldIgnore(deployment appsv1.Deployment) (bool, error)

ShouldIgnore ignore this deployment from validation if the deployment has additional annotations

Types

type Agent

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

Agent is the top level structure holding all the configurations for the agent which validates the deployment

func New

func New(cfg *AgentConfig) (*Agent, error)

New creates a new instance of Agent by parsing all the Kubernetes annotations.

func (*Agent) ValidProbe

func (a *Agent) ValidProbe(pod corev1.PodSpec) error

ValidProbe ...

func (*Agent) ValidRegistry

func (a *Agent) ValidRegistry(pod corev1.PodSpec) error

ValidRegistry validate whether a pod has identified/valid docker registry

type AgentConfig

type AgentConfig struct {
	ImageRegistries []string
}

Jump to

Keyboard shortcuts

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