app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 34 Imported by: 0

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

This section is empty.

Variables

This section is empty.

Functions

func CreateOneXAPIServerConfig

func CreateOneXAPIServerConfig(opts options.CompletedOptions) (*apiserver.Config, error)

CreateOneXAPIServerConfig creates all the resources for running kube-apiserver, but runs none of them.

func CreateServerChain

func CreateServerChain(config apiserver.CompletedConfig) (*apiserver.APIServer, error)

CreateServerChain creates the apiservers connected via delegation.

func NewAPIServerCommand

func NewAPIServerCommand() *cobra.Command

NewAPIServerCommand creates a *cobra.Command object with default parameters.

func NewConfig

func NewConfig(opts options.CompletedOptions) (*apiserver.Config, error)

NewConfig creates all the resources for running kube-apiserver, but runs none of them. onex-apiserver has no extension and aggregator apiserver, so return *apiserver.Config directly. If you want to add extension and aggregator apiserver in the future, please refer to https://github.com/kubernetes/kubernetes/blob/v1.28.2/cmd/kube-apiserver/app/config.go#L28.

func Run

func Run(opts options.CompletedOptions, stopCh <-chan struct{}) error

Run runs the specified APIServer. This should never exit.

Types

This section is empty.

Directories

Path Synopsis
Package options contains flags and options for initializing an apiserver
Package options contains flags and options for initializing an apiserver

Jump to

Keyboard shortcuts

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