Documentation ¶
Index ¶
- func GetBurst() int
- func GetConfig() *poseidonConfig
- func GetConfigPath() string
- func GetDefaultBehaviour() bool
- func GetDisableEvents() bool
- func GetEnablePprof() bool
- func GetFirmamentAddress() string
- func GetKubeConfig() string
- func GetKubeVersion() (int, int)
- func GetMetricsBindAddress() string
- func GetPprofAddress() string
- func GetQPS() float32
- func GetSchedulerName() string
- func GetSchedulingInterval() int
- func GetStatsServerAddress() string
- func ReadFromCommandLineFlags()
- func ReadFromConfigFile()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultBehaviour ¶
func GetDefaultBehaviour() bool
func GetDisableEvents ¶
func GetDisableEvents() bool
func GetEnablePprof ¶
func GetEnablePprof() bool
GetEnablePprof returns the pprof ability from config
func GetFirmamentAddress ¶
func GetFirmamentAddress() string
GetFirmamentAddress returns the FirmamentAddress from config
func GetKubeVersion ¶
GetKubeVersion returns the KubeMajor and Minor version from the config
func GetMetricsBindAddress ¶
func GetMetricsBindAddress() string
GetMetricsBindAddress returns the port serving healthz and metrics
func GetPprofAddress ¶
func GetPprofAddress() string
GetPprofAddress returns the pprof address from which to go profiling
func GetSchedulerName ¶
func GetSchedulerName() string
GetSchedulerName returns the SchedulerName from config
func GetSchedulingInterval ¶
func GetSchedulingInterval() int
GetSchedulingInterval return the scheduling interval from config
func GetStatsServerAddress ¶
func GetStatsServerAddress() string
GetStatsServerAddress returns the StatsServerAddress from the config TODO(shiv): We need to have separate port and IP for stats server too like firmament address amd port. This separation is required when passing address as command line flags in deployment yaml, the IP:PORT in the yaml throws an error.
func ReadFromCommandLineFlags ¶
func ReadFromCommandLineFlags()
ReadFromCommandLineFlags reads command line flags and these will override poseidonConfig file flags.
func ReadFromConfigFile ¶
func ReadFromConfigFile()
ReadFromConfigFile to read from yaml,json,toml etc poseidonConfig file Note:
The poseidonConfig values will be overwritten if flag for the same key are present
Types ¶
This section is empty.