webhookserver

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package webhookserver provides kubernetes admission webhook server

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, logger *zap.SugaredLogger)

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