Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControllerConfig ¶
type ControllerConfig struct { // KubeAPIConfig indicates the kubernetes cluster info which controller will connected KubeConfig string `json:"kubeConfig,omitempty"` // Master indicates the address of the Kubernetes API server. Overrides any value in KubeConfig. // such as https://127.0.0.1:8443 // default "" Master string `json:"master"` // Namespace indicates which namespace the controller listening to. // default "" Namespace string `json:"namespace,omitempty"` // websocket server config // Since the current limit of kubeedge(1.5), GM needs to build the websocket channel for communicating between GM and LCs. WebSocket WebSocket `json:"websocket,omitempty"` // lc config to info the worker LC LCConfig `json:"localController,omitempty"` // kb config to info the worker KB KBConfig `json:"knowledgeBaseServer,omitempty"` // period config min resync period // default 30s MinResyncPeriodSeconds int64 `json:"minResyncPeriodSeconds,omitempty"` }
ControllerConfig indicates the config of controller
var Config ControllerConfig
Config singleton for GM
func NewDefaultControllerConfig ¶
func NewDefaultControllerConfig() *ControllerConfig
NewDefaultControllerConfig creates default config
func (*ControllerConfig) Parse ¶
func (c *ControllerConfig) Parse(filename string) error
Parse parses from filename
func (*ControllerConfig) Validate ¶
func (c *ControllerConfig) Validate() field.ErrorList
Validate validate the config
type KBConfig ¶
type KBConfig struct { // default defaultKBServer Server string `json:"server"` }
KBConfig describes KB config to inject the worker
Click to show internal directories.
Click to hide internal directories.