type APIEnablementOptions … func NewAPIEnablementOptions() *APIEnablementOptions { … } // AddFlags adds flags for a specific APIServer to the specified FlagSet func (s *APIEnablementOptions) AddFlags(fs *pflag.FlagSet) { … } // Validate validates RuntimeConfig with a list of registries. // Usually this list only has one element, the apiserver registry of the process. // But in the advanced (and usually not recommended) case of delegated apiservers there can be more. // Validate will filter out the known groups of each registry. // If anything is left over after that, an error is returned. func (s *APIEnablementOptions) Validate(registries ...GroupRegistry) []error { … } // ApplyTo override MergedResourceConfig with defaults and registry func (s *APIEnablementOptions) ApplyTo(c *server.Config, defaultResourceConfig *serverstore.ResourceConfig, registry resourceconfig.GroupVersionRegistry) error { … } func unknownGroups(groups []string, registry GroupRegistry) []string { … } type GroupRegistry …