apiserver

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme defines methods for serializing and deserializing API objects.
	Scheme = runtime.NewScheme()
	// Codecs provides methods for retrieving codecs and serializers for specific
	// versions and content types.
	Codecs = serializer.NewCodecFactory(Scheme)
)

Functions

func NewCRDHandler added in v0.5.0

func NewCRDHandler(kubeRESTClient restclient.Interface, clusternetClient *clusternet.Clientset,
	manifestLister applisters.ManifestLister, apiserviceLister apiservicelisters.APIServiceLister,
	crdInformer apiextensionsinformers.CustomResourceDefinitionInformer,
	minRequestTimeout int, maxRequestBodyBytes int64,
	admissionControl admission.Interface, authorizer authorizer.Authorizer, serializer runtime.NegotiatedSerializer,
	reservedNamespace string) *crdHandler

Types

type ShadowAPIServer

type ShadowAPIServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
	// contains filtered or unexported fields
}

ShadowAPIServer will make a shadow copy for all the APIs

func NewShadowAPIServer

func NewShadowAPIServer(apiserver *genericapiserver.GenericAPIServer,
	maxRequestBodyBytes int64, minRequestTimeout int,
	admissionControl admission.Interface,
	kubeRESTClient restclient.Interface, clusternetclient *clusternet.Clientset,
	manifestLister applisters.ManifestLister, apiserviceLister apiservicelisters.APIServiceLister,
	crdInformerFactory crdinformers.SharedInformerFactory,
	reservedNamespace string) *ShadowAPIServer

func (*ShadowAPIServer) InstallShadowAPIGroups

func (ss *ShadowAPIServer) InstallShadowAPIGroups(stopCh <-chan struct{}, cl discovery.DiscoveryInterface) error

Jump to

Keyboard shortcuts

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