warden

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// generic
	Cluster                string
	InMemberCluster        bool
	IsWritable             bool
	LocalClusterKubeConfig string
	PivotClusterKubeConfig string

	// report
	PivotCubeHost string
	PeriodSecond  int
	WaitSecond    int
	RetryCounts   int

	// api server
	JwtSecret string
	Addr      string
	Port      int
	TlsCert   string
	TlsKey    string

	// local manager
	AllowPrivileged   bool
	LeaderElect       bool
	WebhookCert       string
	WebhookServerPort int
	EnableControllers string

	// nginx ingress controller param
	NginxNamespace           string
	NginxTcpServiceConfigMap string
	NginxUdpServiceConfigMap string
}

func (*Config) Validate

func (c *Config) Validate() []error

type Warden

type Warden struct {
	*Config

	SyncCtrl  *syncmgr.SyncManager
	Server    *server.Server
	Reporter  *reporter.Reporter
	LocalCtrl *localmgr.LocalManager
}

Warden has two shapes: 1. Running in pivot cluster as a independent process. 2. Running in member cluster as a independent process.

func NewWardenWithOpts

func NewWardenWithOpts(opts *Config) *Warden

func (Warden) Initialize

func (w Warden) Initialize() error

func (*Warden) Run

func (w *Warden) Run(stop <-chan struct{})

Directories

Path Synopsis
authproxy/proxy
Package proxy provides transport and upgrade support for proxies.
Package proxy provides transport and upgrade support for proxies.

Jump to

Keyboard shortcuts

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