From 3b0d1736a32391fe6fb11dcc9d4ac9d8f1aebb68 Mon Sep 17 00:00:00 2001 From: Christoph Deppisch Date: Mon, 8 May 2023 10:26:49 +0200 Subject: [PATCH] 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 7ff9279a6e..f5f5aaf33e 100644 --- a/pkg/cmd/uninstall.go +++ b/pkg/cmd/uninstall.go @@ -417,7 +417,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 }