Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchAdmissionConf ¶
WatchAdmissionConf listen the changes of the configuration file
Types ¶
type AdmissionConfiguration ¶
type AdmissionConfiguration struct { sync.Mutex ResGroupsConfig []ResGroupConfig `yaml:"resourceGroups"` }
AdmissionConfiguration defines the configuration of admission.
func LoadAdmissionConf ¶
func LoadAdmissionConf(confPath string) *AdmissionConfiguration
LoadAdmissionConf parse the configuration from config path
type ResGroupConfig ¶
type ResGroupConfig struct { ResourceGroup string `yaml:"resourceGroup"` Object Object `yaml:"object"` SchedulerName string `yaml:"schedulerName"` Tolerations []v1.Toleration `yaml:"tolerations"` Labels map[string]string `yaml:"labels"` Affinity string `yaml:"affinity"` }
ResGroupConfig defines the configuration of admission.
Click to show internal directories.
Click to hide internal directories.