func makeAbs(path, base string) (string, error) { … } // ReadAdmissionConfiguration reads the admission configuration at the specified path. // It returns the loaded admission configuration if the input file aligns with the required syntax. // If it does not align with the provided syntax, it returns a default configuration for the enumerated // set of pluginNames whose config location references the specified configFilePath. // It does this to preserve backward compatibility when admission control files were opaque. // It returns an error if the file did not exist. func ReadAdmissionConfiguration(pluginNames []string, configFilePath string, configScheme *runtime.Scheme) (ConfigProvider, error) { … } type configProvider … // GetAdmissionPluginConfigurationFor returns a reader that holds the admission plugin configuration. func GetAdmissionPluginConfigurationFor(pluginCfg apiserver.AdmissionPluginConfiguration) (io.Reader, error) { … } // ConfigFor returns a reader for the specified plugin. // If no specific configuration is present, we return a nil reader. func (p configProvider) ConfigFor(pluginName string) (io.Reader, error) { … }