hook

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugLevel is used to set V level to 1 as suggested by official docs
	// https://github.com/kubernetes-sigs/controller-runtime/blob/main/TMP-LOGGING.md
	DebugLevel = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Containers []corev1.Container `json:"containers"`
	Volumes    []corev1.Volume    `json:"volumes"`
}

func ParseConfig

func ParseConfig(configFile string) (*Config, error)

type DBProxyInjector

type DBProxyInjector struct {
	Name                 string
	Client               client.Client
	Decoder              *admission.Decoder
	DBProxySidecarConfig *Config
}

DBProxyInjector annotates Pods

func (*DBProxyInjector) Handle

DBProxyInjector adds an annotation to every incoming pods.

type DsnExecInjector

type DsnExecInjector struct {
	Name                 string
	Client               client.Client
	Decoder              *admission.Decoder
	DsnExecSidecarConfig *Config
}

func (*DsnExecInjector) Handle

DsnExecInjector adds an annotation to every incoming pods.

Jump to

Keyboard shortcuts

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