webhookserver

package
v0.0.3-alpha3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ThreatScanAnnotation              = "pod-agent.k8s.tarian.dev/threat-scan"
	RegisterAnnotation                = "pod-agent.k8s.tarian.dev/register"
	FileValidationIntervalAnnotation  = "pod-agent.k8s.tarian.dev/file-validation-interval"
	RegisterFileIgnorePathsAnnotation = "pod-agent.k8s.tarian.dev/register-file-ignore-paths"
)

Variables

This section is empty.

Functions

func NewManager

func NewManager(port int, healthProbeBindAddress string, leaderElection bool) manager.Manager

func RegisterCertRotator

func RegisterCertRotator(mgr manager.Manager, isReady chan struct{}, namespace string, mutatingWebhookConfigurationName string, secretName string)

func RegisterControllers

func RegisterControllers(mgr manager.Manager, cfg PodAgentContainerConfig)

Types

type PodAgentContainerConfig

type PodAgentContainerConfig struct {
	Name        string
	Image       string
	LogEncoding string
	Host        string
	Port        string
}

type PodAgentInjector

type PodAgentInjector struct {
	Client client.Client
	// contains filtered or unexported fields
}

func (*PodAgentInjector) Handle

podAnnotator adds an annotation to every incoming pods.

func (*PodAgentInjector) InjectDecoder

func (p *PodAgentInjector) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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