Skip to content

Commit

Permalink
Merge pull request #1279 from alvaroaleman/add-to-scheme
Browse files Browse the repository at this point in the history
🏃 AddToProtobufScheme: Take AddToScheme, not Schemebulilder
  • Loading branch information
k8s-ci-robot committed Nov 30, 2020
2 parents 6e74b4d + 4e27187 commit 2879800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/apiutil/apimachinery.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func init() {

// AddToProtobufScheme add the given SchemeBuilder into protobufScheme, which should
// be additional types that do support protobuf.
func AddToProtobufScheme(builder runtime.SchemeBuilder) error {
func AddToProtobufScheme(addToScheme func(*runtime.Scheme) error) error {
protobufSchemeLock.Lock()
defer protobufSchemeLock.Unlock()
return builder.AddToScheme(protobufScheme)
return addToScheme(protobufScheme)
}

// NewDiscoveryRESTMapper constructs a new RESTMapper based on discovery
Expand Down

0 comments on commit 2879800

Please sign in to comment.