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 StringValue ¶
StringValue returns the value of the string pointer passed in or "" if the pointer is nil.
func ValidatingWebhookFor ¶ added in v0.9.0
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
Click to show internal directories.
Click to hide internal directories.