server

package
v0.0.0-...-18d89d2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 52 Imported by: 0

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

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

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