Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyConfig = errors.New("config is required, but empty")
ErrEmptyConfig represents the required config variable don't exist.
Functions ¶
func GetKubeClientConfig ¶
func LoadYamlConfig ¶
LoadYamlConfig read the yaml file and set configYaml.
Types ¶
type Config ¶
type Config struct { Port int KubeAPIServerURL string EtcdURL string CorsAllowedOriginList []string // ExternalImportEnabled indicates whether the simulator will import resources from a target cluster once // when it's started. ExternalImportEnabled bool // ExternalImportEnabled indicates whether the simulator will keep syncing resources from a target cluster. ResourceSyncEnabled bool // ExternalKubeClientCfg is KubeConfig to get resources from external cluster. // This field should be set when ExternalImportEnabled == true or ResourceSyncEnabled == true. ExternalKubeClientCfg *rest.Config InitialSchedulerCfg *configv1.KubeSchedulerConfiguration // ExternalSchedulerEnabled indicates whether an external scheduler is enabled. ExternalSchedulerEnabled bool }
Config is configuration for simulator.
Click to show internal directories.
Click to hide internal directories.