Commit cf5010ca authored by Brendan Burns's avatar Brendan Burns

Fix a problem with multiple APIs clobbering each other in registration.

parent 3313d680
......@@ -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
}
......
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