webhook

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package webhook contains admission webhooks for Tailcar.

Index

Constants

View Source
const (
	// AnnotationInject enables sidecar injection when set to "true".
	AnnotationInject = "tailcar.rajsingh.info/inject"
	// AnnotationTailnet specifies the Tailnet resource to use.
	AnnotationTailnet = "tailcar.rajsingh.info/tailnet"

	// NamespaceLabelInject enables namespace-level injection when set to "enabled".
	NamespaceLabelInject = "tailcar.rajsingh.info/injection"
	// NamespaceLabelTailnet specifies the default Tailnet for the namespace.
	NamespaceLabelTailnet = "tailcar.rajsingh.info/default-tailnet"

	// TailscaleSidecarName is the name of the Tailscale sidecar container.
	TailscaleSidecarName = "tailscale"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMutator

type PodMutator struct {
	Client client.Client
	// contains filtered or unexported fields
}

PodMutator injects Tailscale sidecars into pods.

func (*PodMutator) Handle

Handle processes the admission request and mutates pods.

func (*PodMutator) InjectDecoder

func (m *PodMutator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the webhook.

type TailnetValidator added in v0.0.2

type TailnetValidator struct {
	Client client.Client
	// contains filtered or unexported fields
}

TailnetValidator validates Tailnet resources.

func (*TailnetValidator) Handle added in v0.0.2

Handle processes the validation request.

func (*TailnetValidator) InjectDecoder added in v0.0.2

func (v *TailnetValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the webhook.

Jump to

Keyboard shortcuts

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