apiserver

package
v0.0.0-...-f60eec5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 96 Imported by: 0

Documentation

Overview

package kubeapiserver does all of the work necessary to create a Kubernetes APIServer by binding together the API, master and APIServer infrastructure. It can be configured and called directly or via the hyperkube framework.

package kubeapiserver does all of the work necessary to create a Kubernetes APIServer by binding together the API, master and APIServer infrastructure. It can be configured and called directly or via the hyperkube framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIResourceConfigSource

func APIResourceConfigSource() *serverstorage.ResourceConfig

func BuildAuthorizer

BuildAuthorizer constructs the authorizer

func BuildPriorityAndFairness

BuildPriorityAndFairness constructs the guts of the API Priority and Fairness filter

func CreateKubeAPIServer

func CreateKubeAPIServer(kubeAPIServerConfig *controlplane.Config, delegateAPIServer genericapiserver.DelegationTarget) (*controlplane.Instance, error)

CreateKubeAPIServer creates and wires a workable kube-apiserver

func CreateKubeAPIServerConfig

CreateKubeAPIServerConfig creates all the resources for running the API server, but runs none of them

func CreateProxyTransport

func CreateProxyTransport() *http.Transport

CreateProxyTransport creates the dialer infrastructure to connect to the nodes.

func CreateServerChain

func CreateServerChain(completedOptions CompletedServerRunOptions) (*aggregatorapiserver.APIAggregator, error)

CreateServerChain creates the apiservers connected via delegation.

func ParseWatchCacheSizes

func ParseWatchCacheSizes(cacheSizes []string) (map[schema.GroupResource]int, error)

ParseWatchCacheSizes turns a list of cache size values into a map of group resources to requested sizes.

func WriteWatchCacheSizes

func WriteWatchCacheSizes(watchCacheSizes map[schema.GroupResource]int) ([]string, error)

WriteWatchCacheSizes turns a map of cache size values into a list of string specifications.

Types

type CompletedServerRunOptions

type CompletedServerRunOptions struct {
	*options.ServerRunOptions
}

CompletedServerRunOptions is a private wrapper that enforces a call of Complete() before Run can be invoked.

func Complete

Complete set default ServerRunOptions. Should be called after kube-apiserver flags parsed.

func (*CompletedServerRunOptions) Run

Directories

Path Synopsis
Package options contains flags and options for initializing kube-apiserver
Package options contains flags and options for initializing kube-apiserver

Jump to

Keyboard shortcuts

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