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 CreateOneXAPIServerConfig(opts options.CompletedOptions) (*apiserver.Config, error)
- func CreateServerChain(config apiserver.CompletedConfig) (*apiserver.APIServer, error)
- func NewAPIServerCommand() *cobra.Command
- func NewConfig(opts options.CompletedOptions) (*apiserver.Config, error)
- func Run(opts options.CompletedOptions, stopCh <-chan struct{}) error
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 ¶
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.