resource

package
v0.0.0-...-b80888c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// GroupResource returns Group and Resource type this handler accepts.
	GroupResource() metav1.GroupResource
	// AdmissionResource returns resource type this handler accepts.
	AdmissionResource() admission.AdmissionResource
	// DisallowIncorrectObjects returns whether incorrect objects (eg. unparsable, not passing validations) should be disallowed by Admission Server.
	DisallowIncorrectObjects() bool
	// GetPatches returns patches for given AdmissionRequest
	GetPatches(*v1.AdmissionRequest) ([]PatchRecord, error)
}

Handler represents a handler for a resource in Admission Server

type PatchRecord

type PatchRecord struct {
	Op    string      `json:"op,inline"`
	Path  string      `json:"path,inline"`
	Value interface{} `json:"value"`
}

PatchRecord represents a single patch for modifying a resource.

Directories

Path Synopsis
pod

Jump to

Keyboard shortcuts

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