Commit d0236f17 authored by Maciej Szulik's avatar Maciej Szulik

Create generated client set based on be GroupVersion passed in the

config
parent 8f4c0bbc
......@@ -204,12 +204,10 @@ func setConfigDefaults(config *$.Config|raw$) error {
if config.UserAgent == "" {
config.UserAgent = $.DefaultKubernetesUserAgent|raw$()
}
// TODO: Unconditionally set the config.Version, until we fix the config.
//if config.Version == "" {
copyGroupVersion := g.GroupVersion
config.GroupVersion = &copyGroupVersion
//}
if config.GroupVersion == nil || config.GroupVersion.Group != g.GroupVersion.Group {
copyGroupVersion := g.GroupVersion
config.GroupVersion = &copyGroupVersion
}
config.NegotiatedSerializer = $.codecs|raw$
if config.QPS == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment