server

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 65 Imported by: 20

Documentation

Index

Constants

View Source
const (
	MasterRoleLabelKey       = "node-role.kubernetes.io/master"
	ControlPlaneRoleLabelKey = "node-role.kubernetes.io/control-plane"
	ETCDRoleLabelKey         = "node-role.kubernetes.io/etcd"
)

Variables

This section is empty.

Functions

func AppendNewEncryptionKey added in v1.21.9

func AppendNewEncryptionKey(keys *[]apiserverconfigv1.Key) error

func HomeKubeConfig

func HomeKubeConfig(write, rootless bool) (string, error)

func ResolveDataDir added in v1.21.9

func ResolveDataDir(dataDir string) (string, error)

func StartServer

func StartServer(ctx context.Context, config *Config, cfg *cmds.Server) error

Types

type Config

type Config struct {
	DisableAgent      bool
	DisableServiceLB  bool
	ControlConfig     config.Control
	Rootless          bool
	SupervisorPort    int
	StartupHooks      []cmds.StartupHook
	LeaderControllers CustomControllers
	Controllers       CustomControllers
}

type Context added in v0.6.0

type Context struct {
	K3s   *k3s.Factory
	Helm  *helm.Factory
	Batch *batch.Factory
	Apps  *apps.Factory
	Auth  *rbac.Factory
	Core  *core.Factory
	K8s   kubernetes.Interface
	Apply apply.Apply
}

func NewContext added in v1.21.9

func NewContext(ctx context.Context, cfg string) (*Context, error)

func (*Context) Start added in v0.6.0

func (c *Context) Start(ctx context.Context) error

type CustomControllers added in v1.21.9

type CustomControllers []func(ctx context.Context, sc *Context) error

type EncryptionRequest added in v1.21.9

type EncryptionRequest struct {
	Stage  *string `json:"stage,omitempty"`
	Enable *bool   `json:"enable,omitempty"`
	Force  bool    `json:"force"`
	Skip   bool    `json:"skip"`
}

type EncryptionState added in v1.21.9

type EncryptionState struct {
	Stage        string   `json:"stage"`
	ActiveKey    string   `json:"activekey"`
	Enable       *bool    `json:"enable,omitempty"`
	HashMatch    bool     `json:"hashmatch,omitempty"`
	HashError    string   `json:"hasherror,omitempty"`
	InactiveKeys []string `json:"inactivekeys,omitempty"`
}

Jump to

Keyboard shortcuts

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