apiserver

package
v1.15.2 Latest Latest
Warning

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

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

Documentation

Overview

Package apiserver contains code to create kubernetes-like API server for antrea-controller. The API server provides REST APIs supporting listing and watching Antrea resources.

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)

	// #nosec G101: false positive triggered by variable name which includes "token"
	TokenPath = "/var/run/antrea/apiserver/loopback-client-token"
)

Functions

func CleanupDeprecatedAPIServices

func CleanupDeprecatedAPIServices(aggregatorClient clientset.Interface) error

CleanupDeprecatedAPIServices deletes the registered APIService resources for the deprecated Antrea API groups.

func DefaultCAConfig added in v1.5.0

func DefaultCAConfig() *certificate.CAConfig

Types

type APIServer

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

APIServer contains state for a Kubernetes cluster apiserver.

func (*APIServer) Run

func (s *APIServer) Run(ctx context.Context) error

type Config

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

Config defines the config for Antrea apiserver.

func NewConfig

func NewConfig(
	genericConfig *genericapiserver.Config,
	k8sClient kubernetes.Interface,
	addressGroupStore, appliedToGroupStore, networkPolicyStore, egressGroupStore, supportBundleCollectionStore storage.Interface,
	podInformer coreinformers.PodInformer,
	eeInformer crdv1a2informers.ExternalEntityInformer,
	caCertController *certificate.CACertController,
	statsAggregator *stats.Aggregator,
	controllerQuerier querier.ControllerQuerier,
	networkPolicyStatusController *controllernetworkpolicy.StatusController,
	endpointQuerier controllernetworkpolicy.EndpointQuerier,
	npController *controllernetworkpolicy.NetworkPolicyController,
	egressController *egress.EgressController,
	bundleCollectionController *controllerbundlecollection.Controller,
	traceflowController *traceflow.Controller) *Config

func (*Config) Complete

func (c *Config) Complete(informers informers.SharedInformerFactory) completedConfig

type ExtraConfig

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

ExtraConfig holds custom apiserver config.

Jump to

Keyboard shortcuts

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