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 ¶
PodMutator injects Tailscale sidecars into pods.
func (*PodMutator) InjectDecoder ¶
func (m *PodMutator) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the webhook.
Click to show internal directories.
Click to hide internal directories.