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

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


The following commit(s) were added to refs/heads/main by this push:
     new 05ba24e78 fix: Always uninstall IntegrationPlatform resources
05ba24e78 is described below

commit 05ba24e78235f33bceb67a6ed32fdc6b5e049cd3
Author: Christoph Deppisch <[email protected]>
AuthorDate: Mon May 8 10:26:49 2023 +0200

    fix: Always uninstall IntegrationPlatform resources
    
    - Make sure to remove IntegrationPlatform resources from operator namespace 
on uninstall
    - Do not filter on label "app=camel-k" when removing IntegrationPlatform 
resources
---
 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 6b9731bd2..c96d041e8 100644
--- a/pkg/cmd/uninstall.go
+++ b/pkg/cmd/uninstall.go
@@ -466,7 +466,7 @@ func (o *uninstallCmdOptions) uninstallServiceAccounts(ctx 
context.Context, c cl
 }
 
 func (o *uninstallCmdOptions) uninstallIntegrationPlatform(ctx 
context.Context, c client.Client) error {
-       integrationPlatforms, err := 
c.CamelV1().IntegrationPlatforms(o.Namespace).List(ctx, defaultListOptions)
+       integrationPlatforms, err := 
c.CamelV1().IntegrationPlatforms(o.Namespace).List(ctx, metav1.ListOptions{})
        if err != nil {
                return err
        }

Reply via email to