Skip to content
This repository was archived by the owner on Nov 20, 2021. It is now read-only.

Commit 78cc9dd

Browse files
andrewmyhreChrisRx
authored andcommitted
Add a DefaultConvert() function for compatibility with client-go v0.17.x
1 parent 793f4c8 commit 78cc9dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apis/controlplane/v1alpha1/conversion.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ import (
2727

2828
type scope struct{}
2929

30+
func (s *scope) DefaultConvert(src, dest interface{}, flags conversion.FieldMatchingFlags) error {
31+
return nil
32+
}
33+
3034
func (s *scope) Convert(src, dest interface{}, flags conversion.FieldMatchingFlags) error {
3135
return nil
3236
}

0 commit comments

Comments
 (0)