Help us shape the future of Go! Take the 2026 Go Developer Survey

apiserver

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 51 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterAllAdmissionPlugins added in v1.14.1

func RegisterAllAdmissionPlugins(plugins *admission.Plugins)

RegisterAllAdmissionPlugins registers all admission plugins. The order of registration is irrelevant, see github.com/gardener/gardener/plugin/pkg.AllOrderedPluginNames for execution order.

Types

type CompletedConfig

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

CompletedConfig contains completed Gardener API server configuration.

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
	KubeInformerFactory   kubeinformers.SharedInformerFactory
	CoreInformerFactory   gardencoreinformers.SharedInformerFactory
	SubjectAccessReviewer clientauthorizationv1.SubjectAccessReviewInterface
}

Config contains Gardener API server configuration.

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 {
	AdminKubeconfigMaxExpiration       time.Duration
	ViewerKubeconfigMaxExpiration      time.Duration
	CredentialsRotationInterval        time.Duration
	WorkloadIdentityTokenIssuer        string
	WorkloadIdentityTokenMinExpiration time.Duration
	WorkloadIdentityTokenMaxExpiration time.Duration
	WorkloadIdentitySigningKey         any
}

ExtraConfig contains non-generic Gardener API server configuration.

type ExtraOptions added in v1.8.0

type ExtraOptions struct {
	ClusterIdentity                    string
	AdminKubeconfigMaxExpiration       time.Duration
	ViewerKubeconfigMaxExpiration      time.Duration
	CredentialsRotationInterval        time.Duration
	WorkloadIdentityTokenIssuer        string
	WorkloadIdentityTokenMinExpiration time.Duration
	WorkloadIdentityTokenMaxExpiration time.Duration
	WorkloadIdentitySigningKeyFile     string

	LogLevel  string
	LogFormat string
}

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

func (*ExtraOptions) AddFlags added in v1.8.0

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

AddFlags adds flags related to cluster identity to the options

func (*ExtraOptions) ApplyTo added in v1.24.0

func (o *ExtraOptions) ApplyTo(c *Config) error

ApplyTo applies the extra options to the API Server config.

func (*ExtraOptions) Validate added in v1.8.0

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.

Jump to

Keyboard shortcuts

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