webhook

package
v0.0.0-...-09a16ec Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckHandler

func HealthCheckHandler(writer http.ResponseWriter, _ *http.Request)

HealthCheckHandler HttpServer function to handle Health check

Types

type Sidecar

type Sidecar struct {
	Name             string                        `yaml:"name"`
	InitContainers   []corev1.Container            `yaml:"initContainers"`
	Containers       []corev1.Container            `yaml:"containers"`
	Volumes          []corev1.Volume               `yaml:"volumes"`
	ImagePullSecrets []corev1.LocalObjectReference `yaml:"imagePullSecrets"`
	Annotations      map[string]string             `yaml:"annotations"`
	Labels           map[string]string             `yaml:"labels"`
}

Sidecar Kubernetes Sidecar Injector schema

type SidecarInjectorPatcher

type SidecarInjectorPatcher struct {
	K8sClient                kubernetes.Interface
	SidecarDataKey           string
	AllowAnnotationOverrides bool
	AllowLabelOverrides      bool
}

SidecarInjectorPatcher Sidecar Injector patcher

func (*SidecarInjectorPatcher) PatchPodCreate

func (patcher *SidecarInjectorPatcher) PatchPodCreate(ctx context.Context, pod corev1.Pod) ([]admission.PatchOperation, error)

PatchPodCreate Handle Pod Create Patch

Jump to

Keyboard shortcuts

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