mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Create generated client set based on be GroupVersion passed in the
config
This commit is contained in:
parent
8f4c0bbcb7
commit
d0236f1761
@ -204,12 +204,10 @@ func setConfigDefaults(config *$.Config|raw$) error {
|
|||||||
if config.UserAgent == "" {
|
if config.UserAgent == "" {
|
||||||
config.UserAgent = $.DefaultKubernetesUserAgent|raw$()
|
config.UserAgent = $.DefaultKubernetesUserAgent|raw$()
|
||||||
}
|
}
|
||||||
// TODO: Unconditionally set the config.Version, until we fix the config.
|
if config.GroupVersion == nil || config.GroupVersion.Group != g.GroupVersion.Group {
|
||||||
//if config.Version == "" {
|
|
||||||
copyGroupVersion := g.GroupVersion
|
copyGroupVersion := g.GroupVersion
|
||||||
config.GroupVersion = ©GroupVersion
|
config.GroupVersion = ©GroupVersion
|
||||||
//}
|
}
|
||||||
|
|
||||||
config.NegotiatedSerializer = $.codecs|raw$
|
config.NegotiatedSerializer = $.codecs|raw$
|
||||||
|
|
||||||
if config.QPS == 0 {
|
if config.QPS == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user