add metav1 to config to allow working client
package v1
import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
@@ -34,5 +35,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&Build{},
&BuildList{},
)
+ metav1.AddToGroupVersion(scheme, GroupVersion)
return nil
}
