resourcesemantics

package
v0.0.0-...-3c6badc Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 161

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericCRD

type GenericCRD interface {
	apis.Defaultable
	apis.Validatable
	runtime.Object
}

GenericCRD is the interface definition that allows us to perform the generic CRD actions like deciding whether to increment generation and so forth.

type SubResourceLimited

type SubResourceLimited interface {
	// SupportedSubResources are the subresources that will be registered
	// for the resource validation.
	// If you wanted to add for example scale validation for Deployments, you'd
	// do:
	// []string{"", "/status", "/scale"}
	// And to get just the main resource, you would do:
	// []string{""}
	SupportedSubResources() []string
}

SubResourceLimited defines which subresources you want to have the webhook invoked on. For example "status", "scale", etc.

type VerbLimited

type VerbLimited interface {
	// SupportedVerbs define which operations (verbs) webhook is called on.
	SupportedVerbs() []admissionregistrationv1.OperationType
}

VerbLimited defines which Verbs you want to have the webhook invoked on.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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