server

package
v0.0.0-...-ca78c08 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 69 Imported by: 0

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

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

func HomeKubeConfig

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

func ResolveDataDir

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
	ServiceLBNamespace string
	SupervisorPort     int
	StartupHooks       []cmds.StartupHook
	LeaderControllers  CustomControllers
	Controllers        CustomControllers
}

type Context

type Context struct {
	TStac *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

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

func (*Context) Start

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

type CustomControllers

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

type EncryptionRequest

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

type EncryptionState

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