config

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunAsStaticPod     = "pod"
	RunAsControllerPod = "controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPlaneConfig

type ControlPlaneConfig struct {
	RunMode          string
	KASStaticPodPath string
}

ControlPlaneConfig has the information that required by node-servant config control-plane operation

type ControlPlaneOptions

type ControlPlaneOptions struct {
	RunMode          string
	PodManifestsPath string
	Version          bool
}

ControlPlaneOptions has the information that required by node-servant config control-plane

func NewControlPlaneOptions

func NewControlPlaneOptions() *ControlPlaneOptions

NewControlPlaneOptions creates a new Options

func (*ControlPlaneOptions) AddFlags

func (o *ControlPlaneOptions) AddFlags(fs *pflag.FlagSet)

AddFlags sets flags.

func (*ControlPlaneOptions) Validate

func (o *ControlPlaneOptions) Validate() error

Validate validates Options

type Runner

type Runner interface {
	Do() error
}

func NewControlPlaneRunner

func NewControlPlaneRunner(o *ControlPlaneOptions) (Runner, error)

Jump to

Keyboard shortcuts

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