This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f32878  fix(cli): Use apiextensions.k8s.io/v1 to uninstall CRDs
2f32878 is described below

commit 2f32878bed1b3c7729e99beb576317eda4bb1486
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Fri Apr 16 09:58:43 2021 +0200

    fix(cli): Use apiextensions.k8s.io/v1 to uninstall CRDs
---
 pkg/cmd/uninstall.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cmd/uninstall.go b/pkg/cmd/uninstall.go
index 45d9dad..04b3bc3 100644
--- a/pkg/cmd/uninstall.go
+++ b/pkg/cmd/uninstall.go
@@ -269,7 +269,7 @@ func (o *uninstallCmdOptions) 
uninstallNamespaceResources(ctx context.Context, c
 }
 
 func (o *uninstallCmdOptions) uninstallCrd(ctx context.Context, c 
kubernetes.Interface) error {
-       restClient, err := customclient.GetClientFor(c, "apiextensions.k8s.io", 
"v1beta1")
+       restClient, err := customclient.GetClientFor(c, "apiextensions.k8s.io", 
"v1")
        if err != nil {
                return err
        }

Reply via email to