mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #74219 from deads2k/remove-dead-scheme
remove unnecessary scheme from config struct
This commit is contained in:
commit
73fb46fe85
@ -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
Block a user