Documentation ¶
Overview ¶
Package app does all of the work necessary to create a OneX APIServer by binding together the API, master and APIServer infrastructure.
Index ¶
- func BuildGenericConfig(s controlplaneoptions.CompletedOptions, schemes []*runtime.Scheme, ...) (genericConfig *genericapiserver.RecommendedConfig, ...)
- func BuildPeerProxy(versionedInformer kubeinformers.SharedInformerFactory, ...) (utilpeerproxy.Interface, error)
- func CreateAPIExtensionsConfig(onexAPIServerConfig server.Config, ...) (*apiextensionsapiserver.Config, error)
- func CreatePeerEndpointLeaseReconciler(c genericapiserver.Config, storageFactory serverstorage.StorageFactory) (reconcilers.PeerEndpointLeaseReconciler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGenericConfig ¶
func BuildGenericConfig( s controlplaneoptions.CompletedOptions, schemes []*runtime.Scheme, getOpenAPIDefinitions func(ref openapicommon.ReferenceCallback) map[string]openapicommon.OpenAPIDefinition, ) ( genericConfig *genericapiserver.RecommendedConfig, versionedInformers informers.SharedInformerFactory, kubeVersionedInformers kubeinformers.SharedInformerFactory, storageFactory *serverstorage.DefaultStorageFactory, lastErr error, )
BuildGenericConfig takes the master server options and produces the genericapiserver.Config associated with it.
func BuildPeerProxy ¶
func BuildPeerProxy(versionedInformer kubeinformers.SharedInformerFactory, svm storageversion.Manager, proxyClientCertFile string, proxyClientKeyFile string, peerCAFile string, peerAdvertiseAddress reconcilers.PeerAdvertiseAddress, apiServerID string, reconciler reconcilers.PeerEndpointLeaseReconciler, serializer runtime.NegotiatedSerializer) (utilpeerproxy.Interface, error)
func CreateAPIExtensionsConfig ¶
func CreateAPIExtensionsConfig( onexAPIServerConfig server.Config, kubeInformers kubeinformers.SharedInformerFactory, pluginInitializers []admission.PluginInitializer, commandOptions controlplaneapiserver.CompletedOptions, masterCount int, serviceResolver webhook.ServiceResolver, authResolverWrapper webhook.AuthenticationInfoResolverWrapper, ) (*apiextensionsapiserver.Config, error)
func CreatePeerEndpointLeaseReconciler ¶
func CreatePeerEndpointLeaseReconciler(c genericapiserver.Config, storageFactory serverstorage.StorageFactory) (reconcilers.PeerEndpointLeaseReconciler, error)
CreatePeerEndpointLeaseReconciler creates a apiserver endpoint lease reconciliation loop The peer endpoint leases are used to find network locations of apiservers for peer proxy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.