mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +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"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
"sync"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
|
||||||
@ -207,11 +208,7 @@ func AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversione
|
|||||||
}
|
}
|
||||||
RegisterVersions(filteredGVs)
|
RegisterVersions(filteredGVs)
|
||||||
EnableVersions(filteredGVs...)
|
EnableVersions(filteredGVs...)
|
||||||
next := make([]unversioned.GroupVersion, len(gvs))
|
thirdPartyGroupVersions = append(thirdPartyGroupVersions, filteredGVs...)
|
||||||
for ix := range filteredGVs {
|
|
||||||
next[ix] = filteredGVs[ix]
|
|
||||||
}
|
|
||||||
thirdPartyGroupVersions = next
|
|
||||||
|
|
||||||
return skippedGVs
|
return skippedGVs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user