apiserver

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AllOrderedPlugins is the list of all the plugins in order.
	AllOrderedPlugins = []string{
		lifecycle.PluginName,
		resourcereferencemanager.PluginName,
		extensionvalidation.PluginName,
		shoottolerationrestriction.PluginName,
		shootdns.PluginName,
		shootmanagedseed.PluginName,
		shootquotavalidator.PluginName,
		shootvalidator.PluginName,
		seedvalidator.PluginName,
		controllerregistrationresources.PluginName,
		plantvalidator.PluginName,
		deletionconfirmation.PluginName,
		openidconnectpreset.PluginName,
		clusteropenidconnectpreset.PluginName,
		shootstatedeletionvalidator.PluginName,
		customverbauthorizer.PluginName,
		shootvpa.PluginName,
		managedseedvalidator.PluginName,

		mutatingwebhook.PluginName,
		validatingwebhook.PluginName,

		resourcequota.PluginName,
	}

	// DefaultOnPlugins is the set of admission plugins that are enabled by default.
	DefaultOnPlugins = sets.NewString(
		lifecycle.PluginName,
		resourcereferencemanager.PluginName,
		extensionvalidation.PluginName,
		shoottolerationrestriction.PluginName,
		shootdns.PluginName,
		shootmanagedseed.PluginName,
		shootquotavalidator.PluginName,
		shootvalidator.PluginName,
		seedvalidator.PluginName,
		controllerregistrationresources.PluginName,
		plantvalidator.PluginName,
		deletionconfirmation.PluginName,
		openidconnectpreset.PluginName,
		clusteropenidconnectpreset.PluginName,
		shootstatedeletionvalidator.PluginName,
		customverbauthorizer.PluginName,
		managedseedvalidator.PluginName,
		mutatingwebhook.PluginName,
		validatingwebhook.PluginName,
		resourcequota.PluginName,
	)

	// DefaultOffPlugins is the set of admission plugins that are disabled by default.
	DefaultOffPlugins = sets.NewString(AllOrderedPlugins...).Difference(DefaultOnPlugins)
)

AllGardenerAPIGroupVersions is the list of all GroupVersions that are served by gardener-apiserver.

Functions

func RegisterAllAdmissionPlugins

func RegisterAllAdmissionPlugins(plugins *admission.Plugins)

RegisterAllAdmissionPlugins registers all admission plugins.

Types

type CompletedConfig

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

func (CompletedConfig) New

func (c CompletedConfig) New() (*GardenerServer, error)

New returns a new instance of GardenerServer from the given config.

type Config

type Config struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   ExtraConfig
}

func (*Config) Complete

func (cfg *Config) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type ExtraConfig

type ExtraConfig struct {
}

type ExtraOptions

type ExtraOptions struct {
	ClusterIdentity string
}

ExtraOptions is used for providing additional options to the Gardener API Server

func (*ExtraOptions) AddFlags

func (o *ExtraOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags related to cluster identity to the options

func (*ExtraOptions) Validate

func (o *ExtraOptions) Validate() []error

Validate checks if the required flags are set

type GardenerServer

type GardenerServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
}

GardenerServer contains state for a Gardener API server.

Directories

Path Synopsis
admission

Jump to

Keyboard shortcuts

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