mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Fix a problem with multiple APIs clobbering each other in registration.
This commit is contained in:
parent
3313d68066
commit
cf5010ca6e
@ -22,6 +22,7 @@ import (
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/golang/glog"
|
||||
|
||||
@ -207,11 +208,7 @@ func AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversione
|
||||
}
|
||||
RegisterVersions(filteredGVs)
|
||||
EnableVersions(filteredGVs...)
|
||||
next := make([]unversioned.GroupVersion, len(gvs))
|
||||
for ix := range filteredGVs {
|
||||
next[ix] = filteredGVs[ix]
|
||||
}
|
||||
thirdPartyGroupVersions = next
|
||||
thirdPartyGroupVersions = append(thirdPartyGroupVersions, filteredGVs...)
|
||||
|
||||
return skippedGVs
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user