kubeapiserver

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BuildHandlerChain

func BuildHandlerChain(apiHandler http.Handler, c *genericapiserver.Config) http.Handler

func GetTableConvertor added in v0.1.0

func GetTableConvertor(gr schema.GroupResource) rest.TableConvertor

func HasForwardRequestHeader added in v0.9.0

func HasForwardRequestHeader(req *http.Request) bool

func WrapForwardRequestHandler added in v0.9.0

func WrapForwardRequestHandler(handler http.Handler, proxy http.Handler) http.Handler

Types

type ClusterResourceController

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

func NewClusterResourceController

func NewClusterResourceController(restManager *RESTManager, discoveryManager *discovery.DiscoveryManager, informer clusterinformer.PediaClusterInformer) *ClusterResourceController

type CompletedConfig

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

func (CompletedConfig) New

func (c CompletedConfig) New(delegationTarget genericapiserver.DelegationTarget) (*genericapiserver.GenericAPIServer, []string, error)

type Config

type Config struct {
	GenericConfig *genericapiserver.RecommendedConfig

	StorageFactory           storage.StorageFactory
	InformerFactory          informers.SharedInformerFactory
	InitialAPIGroupResources []*restmapper.APIGroupResources

	ExtraConfig *ExtraConfig
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Complete

func (c *Config) Complete() CompletedConfig

type ExtraConfig

type ExtraConfig struct {
	SecretNamespace                   string
	AllowPediaClusterConfigReuse      bool
	ExtraProxyRequestHeaderPrefixes   []string
	AllowedProxySubresources          map[schema.GroupResource]sets.Set[string]
	EnableProxyPathForForwardRequest  bool
	AllowForwardUnsyncResourceRequest bool
}

type Options added in v0.9.0

type Options struct {
	// AllowPediaClusterConfigForProxyRequest controls all proxy requests.
	// TODO(iceber): Perhaps we could add a separate setting specifically for subresource proxy request.
	AllowPediaClusterConfigForProxyRequest bool

	AllowedProxySubresources        []string
	ExtraProxyRequestHeaderPrefixes []string

	EnableProxyPathForForwardRequest  bool
	AllowForwardUnsyncResourceRequest bool
}

func NewOptions added in v0.9.0

func NewOptions() *Options

func (*Options) AddFlags added in v0.9.0

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

func (*Options) Config added in v0.9.0

func (o *Options) Config() (*ExtraConfig, error)

type RESTManager

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

func NewRESTManager

func NewRESTManager(serializer runtime.NegotiatedSerializer, storageMediaType string, storageFactory storage.StorageFactory, initialAPIGroupResources []*restmapper.APIGroupResources) *RESTManager

func (*RESTManager) GetAPIGroups

func (m *RESTManager) GetAPIGroups() map[string]metav1.APIGroup

func (*RESTManager) GetResourceREST added in v0.9.0

func (*RESTManager) LoadResources

type ResourceHandler

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

func (*ResourceHandler) ServeHTTP

func (r *ResourceHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ResourceInfoMap

type ResourceInfoMap map[schema.GroupResource]resourceInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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