kubernetesk8s.io/kubernetes/pkg/registry/core/rest Index | Files

package rest

import "k8s.io/kubernetes/pkg/registry/core/rest"

Index

Functions

func New

func New(c Config) (*legacyProvider, error)

Types

type Config

type Config struct {
	GenericConfig

	Proxy    ProxyConfig
	Services ServicesConfig
}

Config provides information needed to build RESTStorage for core.

type GenericConfig

type GenericConfig struct {
	StorageFactory serverstorage.StorageFactory
	EventTTL       time.Duration

	ServiceAccountIssuer        serviceaccount.TokenGenerator
	ServiceAccountMaxExpiration time.Duration
	ExtendExpiration            bool

	APIAudiences authenticator.Audiences

	LoopbackClientConfig *restclient.Config
	Informers            informers.SharedInformerFactory
}

GenericConfig provides information needed to build RESTStorage for generic resources in core. It implements the "normal" RESTStorageProvider interface.

func (*GenericConfig) GroupName

func (c *GenericConfig) GroupName() string

func (*GenericConfig) NewRESTStorage

func (c *GenericConfig) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error)

type ProxyConfig

type ProxyConfig struct {
	Transport           http.RoundTripper
	KubeletClientConfig kubeletclient.KubeletClientConfig
}

type ServicesConfig

type ServicesConfig struct {
	// Service IP ranges
	ClusterIPRange          net.IPNet
	SecondaryClusterIPRange net.IPNet
	NodePortRange           utilnet.PortRange

	IPRepairInterval time.Duration
}

Source Files

storage_core.go storage_core_generic.go

Version
v1.29.7
Published
Jul 16, 2024
Platform
js/wasm
Imports
57 packages
Last checked
3 minutes ago

Tools for package owners.