Documentation ¶
Index ¶
Constants ¶
View Source
const (
SidecarInjectPluginName = "SidecarInject"
)
Variables ¶
View Source
var ( DefaultOnPlugins = map[string]bool{ SidecarInjectPluginName: true, } )
Functions ¶
This section is empty.
Types ¶
type DispatchHandler ¶
type Interface ¶
type Interface interface {
Name() string
}
Interface is an abstract, pluggable interface for Admission Control decisions.
type MutationFunc ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
type PluginInterface ¶
type PluginInterface interface { Interface // Validate makes an admission decision based on the request attributes. It is NOT allowed to mutate Validate(ctx context.Context, req admission.Request, obj runtime.Object) error // Admit makes an admission decision based on the request attributes Admit(ctx context.Context, req admission.Request, obj runtime.Object) error }
func NewPlugin ¶
func NewPlugin(pluginName string, vf ValidationFunc, mf MutationFunc) PluginInterface
Click to show internal directories.
Click to hide internal directories.