server

package
v1.17.0-rc.2-k3s.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 50 Imported by: 20

Documentation

Index

Constants

View Source
const MasterRoleLabelKey = "node-role.kubernetes.io/master"

Variables

This section is empty.

Functions

func FormatToken

func FormatToken(token string, certFile string) (string, error)

func HomeKubeConfig

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

func StartServer

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

Types

type Config

type Config struct {
	DisableAgent     bool
	DisableServiceLB bool
	ControlConfig    config.Control
	Rootless         bool
}

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 (*Context) Start added in v0.6.0

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

Jump to

Keyboard shortcuts

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