controller

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package controller contains Kubernetes controllers for the Tailcar operator.

Index

Constants

View Source
const (
	// PodFinalizerName is the finalizer added to pods for device cleanup.
	PodFinalizerName = "tailcar.rajsingh.info/device-cleanup"
	// AnnotationDeviceID stores the Tailscale device ID.
	AnnotationDeviceID = "tailcar.rajsingh.info/device-id"
	// AnnotationInjected marks a pod as having been injected.
	AnnotationInjected = "tailcar.rajsingh.info/injected"
	// AnnotationTailnet references the Tailnet resource name.
	AnnotationTailnet = "tailcar.rajsingh.info/tailnet"
	// DeviceCleanupRequeueTime is the time to wait before retrying device cleanup.
	DeviceCleanupRequeueTime = 30 * time.Second
)
View Source
const (
	ConditionTypeReady          = "Ready"
	ConditionTypeOAuthValid     = "OAuthValid"
	ConditionTypeAuthKeyCreated = "AuthKeyCreated"

	ReasonOAuthValidationFailed = "OAuthValidationFailed"
	ReasonOAuthValid            = "OAuthValid"
	ReasonAuthKeyCreationFailed = "AuthKeyCreationFailed"
	ReasonAuthKeyCreated        = "AuthKeyCreated"
	ReasonReconcileSuccess      = "ReconcileSuccess"
	ReasonReconcileError        = "ReconcileError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodReconciler

type PodReconciler struct {
	client.Client
}

PodReconciler reconciles Pod objects with Tailscale device cleanup.

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile handles pod reconciliation for Tailscale device cleanup.

func (*PodReconciler) SetupWithManager

func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TailnetReconciler

type TailnetReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*TailnetReconciler) Reconcile

func (r *TailnetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TailnetReconciler) SetupWithManager

func (r *TailnetReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TailserveReconciler added in v0.0.8

type TailserveReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*TailserveReconciler) Reconcile added in v0.0.8

func (r *TailserveReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TailserveReconciler) SetupWithManager added in v0.0.8

func (r *TailserveReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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