webhook

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package webhook implements Kubernetes admission hooks for KNXVault.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildJSONPatch

func BuildJSONPatch(pod *corev1.Pod) ([]byte, error)

BuildJSONPatch returns a JSON Patch for the pod mutation. Uses full-array replace when volumes/volumeMounts were empty so RFC 6902 does not fail on null parents (tech review M12).

func HandleAdmissionReview

func HandleAdmissionReview(review admissionv1.AdmissionReview) admissionv1.AdmissionReview

HandleAdmissionReview patches Pod create/update requests.

func MutatePod

func MutatePod(pod *corev1.Pod) (bool, error)

MutatePod injects a Secrets Store CSI volume when knxvault.io/inject=true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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