webhookserver

package
v0.0.2-alpha7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InjectionRequestAnnotation = "pod-agent.k8s.tarian.dev/inject"
)

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