options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package options contains flags and options for initializing an apiserver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCustomGlobalFlags

func AddCustomGlobalFlags(fs *pflag.FlagSet)

AddCustomGlobalFlags explicitly registers flags that internal packages register against the global flagsets from "flag". We do this in order to prevent unwanted flags from leaking into the kube-apiserver's flagset.

Types

type CompletedOptions

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

func (CompletedOptions) Validate

func (o CompletedOptions) Validate() []error

Validate checks ServerRunOptions and return a slice of found errs.

type Extra added in v0.2.0

type Extra struct {
	MasterCount int
	// In the future, perhaps an "onexlet" will be added, similar to the "kubelet".
	// OnexletConfig onexletclient.OnexletClientConfig
	APIServerServiceIP     net.IP
	EndpointReconcilerType string
}

type ServerRunOptions

type ServerRunOptions struct {
	*controlplaneoptions.Options

	Extra
}

ServerRunOptions contains state for master/api server.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions returns a new ServerRunOptions.

func (*ServerRunOptions) Complete

func (o *ServerRunOptions) Complete() (CompletedOptions, error)

Complete set default ServerRunOptions. Should be called after onex-apiserver flags parsed.

func (ServerRunOptions) Flags

func (o ServerRunOptions) Flags() (fss cliflag.NamedFlagSets)

Jump to

Keyboard shortcuts

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