remove unnecessary scheme from config struct
Kubernetes-commit: 5f911fd0486f79158c69b58faa1e747c7facd2f5
This commit is contained in:
parent
e869466783
commit
77f09a96a5
|
@ -87,7 +87,6 @@ func ReadAdmissionConfiguration(pluginNames []string, configFilePath string, con
|
||||||
}
|
}
|
||||||
return configProvider{
|
return configProvider{
|
||||||
config: decodedConfig,
|
config: decodedConfig,
|
||||||
scheme: configScheme,
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
// we got an error where the decode wasn't related to a missing type
|
// we got an error where the decode wasn't related to a missing type
|
||||||
|
@ -127,13 +126,11 @@ func ReadAdmissionConfiguration(pluginNames []string, configFilePath string, con
|
||||||
}
|
}
|
||||||
return configProvider{
|
return configProvider{
|
||||||
config: internalConfig,
|
config: internalConfig,
|
||||||
scheme: configScheme,
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type configProvider struct {
|
type configProvider struct {
|
||||||
config *apiserver.AdmissionConfiguration
|
config *apiserver.AdmissionConfiguration
|
||||||
scheme *runtime.Scheme
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAdmissionPluginConfigurationFor returns a reader that holds the admission plugin configuration.
|
// GetAdmissionPluginConfigurationFor returns a reader that holds the admission plugin configuration.
|
||||||
|
|
Loading…
Reference in New Issue