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 ¶
- Constants
- func BuildGenericConfig(s controlplaneoptions.CompletedOptions, schemes []*runtime.Scheme, ...) (genericConfig *genericapiserver.RecommendedConfig, ...)
- func BuildPeerProxy(versionedInformer informers.SharedInformerFactory, svm storageversion.Manager, ...) (utilpeerproxy.Interface, error)
- func CreateAPIExtensionsConfig(onexAPIServerConfig server.Config, ...) (*apiextensionsapiserver.Config, error)
- func CreatePeerEndpointLeaseReconciler(c genericapiserver.Config, storageFactory serverstorage.StorageFactory) (reconcilers.PeerEndpointLeaseReconciler, error)
Constants ¶
View Source
const ( // DefaultPeerEndpointReconcileInterval is the default amount of time for how often // the peer endpoint leases are reconciled. DefaultPeerEndpointReconcileInterval = 10 * time.Second // DefaultPeerEndpointReconcilerTTL is the default TTL timeout for peer endpoint // leases on the storage layer DefaultPeerEndpointReconcilerTTL = 15 * time.Second )
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, kubeSharedInformers informers.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 informers.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 controlplaneoptions.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.