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.
type AgentConfig ¶
type AgentConfig struct {
ImageRegistries []string
}
Click to show internal directories.
Click to hide internal directories.