This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch release-1.12.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.12.x by this push:
new 07e567b4d fix: Always uninstall IntegrationPlatform resources
07e567b4d is described below
commit 07e567b4d381db8cd6ed5666bf59971fe420dbce
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 7ff9279a6..f5f5aaf33 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
}