This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 28fadc716cbfac9fb3a86d9d308a449614c2474c Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Tue Jun 1 10:29:36 2021 +0200 chore(cli): Remove useless k8s schema creation --- pkg/cmd/install.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go index 676aa9c..bfc9ac0 100644 --- a/pkg/cmd/install.go +++ b/pkg/cmd/install.go @@ -33,9 +33,7 @@ import ( corev1 "k8s.io/api/core/v1" k8serrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "github.com/apache/camel-k/pkg/apis" v1 "github.com/apache/camel-k/pkg/apis/camel/v1" "github.com/apache/camel-k/pkg/client" "github.com/apache/camel-k/pkg/install" @@ -513,12 +511,6 @@ func (o *installCmdOptions) decode(cmd *cobra.Command, _ []string) error { func (o *installCmdOptions) validate(_ *cobra.Command, _ []string) error { var result error - // Let's register only our own APIs - schema := runtime.NewScheme() - if err := apis.AddToScheme(schema); err != nil { - return err - } - if len(o.MavenRepositories) > 0 && o.MavenSettings != "" { err := fmt.Errorf("incompatible options combinations: you cannot set both mavenRepository and mavenSettings") result = multierr.Append(result, err)