kudo

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperatorLabel is k8s label key for identifying operator
	OperatorLabel = "kudo.dev/operator"
	// OperatorVersionAnnotation is k8s label key for operator version
	OperatorVersionAnnotation = "kudo.dev/operator-version"
	// InstanceLabel is k8s label key for KUDO instance name
	InstanceLabel = "kudo.dev/instance"
	// HeritageLabel is k8s label key for heritage
	HeritageLabel = "heritage" // this is not specific to KUDO

	// PlanAnnotation is k8s annotation key for plan name that created this object
	PlanAnnotation = "kudo.dev/plan"
	// PhaseAnnotation is k8s annotation key for phase that created this object
	PhaseAnnotation = "kudo.dev/phase"
	// StepAnnotation is k8s annotation key for step that created this object
	StepAnnotation = "kudo.dev/step"

	// PlanUIDAnnotation is a k8s annotation key for the last time a given plan was run on the referenced object
	PlanUIDAnnotation = "kudo.dev/last-plan-execution-uid"
)

Variables

This section is empty.

Functions

func String

func String(v string) *string

String returns a pointer to the string value passed in.

func StringValue

func StringValue(v *string) string

StringValue returns the value of the string pointer passed in or "" if the pointer is nil.

func ValidatingWebhookFor added in v0.9.0

func ValidatingWebhookFor(validator Validator) *admission.Webhook

ValidatingWebhookFor creates a new Webhook for validating the provided type.

Types

type Validator added in v0.9.0

type Validator interface {
	runtime.Object
	ValidateCreate(req admission.Request) error
	ValidateUpdate(old runtime.Object, req admission.Request) error
	ValidateDelete(req admission.Request) error
}

Validator defines functions for validating an operation this is fork of Validator interface from controller-runtime enriched with the full request passed in if this issue get resolved, we can go back to using that interface https://github.com/kubernetes-sigs/controller-runtime/issues/688

Jump to

Keyboard shortcuts

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