apiserver: k8s.io/apiserver/pkg/admission/initializer Index | Files

package initializer

import "k8s.io/apiserver/pkg/admission/initializer"


Package Files

initializer.go interfaces.go

func New Uses

func New(
    extClientset kubernetes.Interface,
    extInformers informers.SharedInformerFactory,
    authz authorizer.Authorizer,
    featureGates featuregate.FeatureGate,
) pluginInitializer

New creates an instance of admission plugins initializer. This constructor is public with a long param list so that callers immediately know that new information can be expected during compilation when they update a level.

type WantsAuthorizer Uses

type WantsAuthorizer interface {

WantsAuthorizer defines a function which sets Authorizer for admission plugins that need it.

type WantsExternalKubeClientSet Uses

type WantsExternalKubeClientSet interface {

WantsExternalKubeClientSet defines a function which sets external ClientSet for admission plugins that need it

type WantsExternalKubeInformerFactory Uses

type WantsExternalKubeInformerFactory interface {

WantsExternalKubeInformerFactory defines a function which sets InformerFactory for admission plugins that need it

type WantsFeatures Uses

type WantsFeatures interface {

WantsFeatureGate defines a function which passes the featureGates for inspection by an admission plugin. Admission plugins should not hold a reference to the featureGates. Instead, they should query a particular one and assign it to a simple bool in the admission plugin struct. func (a *admissionPlugin) InspectFeatureGates(features featuregate.FeatureGate){

a.myFeatureIsOn = features.Enabled("my-feature")


Package initializer imports 5 packages (graph) and is imported by 144 packages. Updated 2020-04-03. Refresh now. Tools for package owners.