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.
Click to show internal directories.
Click to hide internal directories.