// LoadConfigFromFile loads scheduler config from the specified file path func LoadConfigFromFile(logger klog.Logger, file string) (*config.KubeSchedulerConfiguration, error) { … } func loadConfig(data []byte) (*config.KubeSchedulerConfiguration, error) { … } func encodeConfig(cfg *config.KubeSchedulerConfiguration) (*bytes.Buffer, error) { … } // LogOrWriteConfig logs the completed component config and writes it into the given file name as YAML, if either is enabled func LogOrWriteConfig(logger klog.Logger, fileName string, cfg *config.KubeSchedulerConfiguration, completedProfiles []config.KubeSchedulerProfile) error { … }