kubernetes: k8s.io/kubernetes/pkg/kubeapiserver/admission Index | Files

package admission

import "k8s.io/kubernetes/pkg/kubeapiserver/admission"

Index

Package Files

config.go initializer.go

type Config Uses

type Config struct {
    CloudConfigFile      string
    LoopbackClientConfig *rest.Config
    ExternalInformers    externalinformers.SharedInformerFactory
}

Config holds the configuration needed to for initialize the admission plugins

func (*Config) New Uses

func (c *Config) New(proxyTransport *http.Transport, serviceResolver webhook.ServiceResolver) ([]admission.PluginInitializer, genericapiserver.PostStartHookFunc, error)

New sets up the plugins and admission start hooks needed for admission

type PluginInitializer Uses

type PluginInitializer struct {
    // contains filtered or unexported fields
}

PluginInitializer is used for initialization of the Kubernetes specific admission plugins.

func NewPluginInitializer Uses

func NewPluginInitializer(
    cloudConfig []byte,
    restMapper meta.RESTMapper,
    quotaConfiguration quota.Configuration,
) *PluginInitializer

NewPluginInitializer constructs new instance of PluginInitializer TODO: switch these parameters to use the builder pattern or just make them all public, this construction method is pointless boilerplate.

func (*PluginInitializer) Initialize Uses

func (i *PluginInitializer) Initialize(plugin admission.Interface)

Initialize checks the initialization interfaces implemented by each plugin and provide the appropriate initialization data

type WantsCloudConfig Uses

type WantsCloudConfig interface {
    SetCloudConfig([]byte)
}

WantsCloudConfig defines a function which sets CloudConfig for admission plugins that need it.

type WantsQuotaConfiguration Uses

type WantsQuotaConfiguration interface {
    SetQuotaConfiguration(quota.Configuration)
    admission.InitializationValidator
}

WantsQuotaConfiguration defines a function which sets quota configuration for admission plugins that need it.

type WantsRESTMapper Uses

type WantsRESTMapper interface {
    SetRESTMapper(meta.RESTMapper)
}

WantsRESTMapper defines a function which sets RESTMapper for admission plugins that need it.

Package admission imports 18 packages (graph) and is imported by 107 packages. Updated 2019-08-23. Refresh now. Tools for package owners.