fix liqoctl add
@@ -22,8 +22,10 @@ import (
"time"
"github.com/spf13/cobra"
+ "k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth"
+ discoveryv1alpha1 "github.com/liqotech/liqo/apis/discovery/v1alpha1"
liqocmd "github.com/liqotech/liqo/cmd/liqoctl/cmd"
)
@@ -31,6 +33,10 @@ const (
terminationTimeout = 5 * time.Second
)
+func init() {
+ _ = discoveryv1alpha1.AddToScheme(scheme.Scheme)
+}
+
func main() {
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
