lineagecontrollerwebhook

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedObjectKey = "internal.cozystack.io/managed-by-cozystack"
	ManagerGroupKey  = "apps.cozystack.io/application.group"
	ManagerKindKey   = "apps.cozystack.io/application.kind"
	ManagerNameKey   = "apps.cozystack.io/application.name"
)

Variables

View Source
var (
	NoAncestors       = fmt.Errorf("no managed apps found in lineage")
	AncestryAmbiguous = fmt.Errorf("object ancestry is ambiguous")
)

Functions

This section is empty.

Types

type LineageControllerWebhook

type LineageControllerWebhook struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

+kubebuilder:webhook:path=/mutate-lineage,mutating=true,failurePolicy=Fail,sideEffects=None,groups="",resources=pods,secrets,services,persistentvolumeclaims,verbs=create;update,versions=v1,name=mlineage.cozystack.io,admissionReviewVersions={v1}

func (*LineageControllerWebhook) Handle

Handle is called for each AdmissionReview that matches the webhook config.

func (*LineageControllerWebhook) InjectDecoder

func (h *LineageControllerWebhook) InjectDecoder(d admission.Decoder) error

InjectDecoder lets controller-runtime give us a decoder for AdmissionReview requests.

func (*LineageControllerWebhook) Map

func (*LineageControllerWebhook) Reconcile

func (*LineageControllerWebhook) SetupWithManagerAsController

func (c *LineageControllerWebhook) SetupWithManagerAsController(mgr ctrl.Manager) error

func (*LineageControllerWebhook) SetupWithManagerAsWebhook

func (h *LineageControllerWebhook) SetupWithManagerAsWebhook(mgr ctrl.Manager) error

SetupWithManager registers the handler with the webhook server.

Jump to

Keyboard shortcuts

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