From 7fc78933b1010f8ea438b740ffe02f2a8051b5d7 Mon Sep 17 00:00:00 2001 From: yair Date: Sun, 31 Dec 2023 10:42:16 +0200 Subject: [PATCH] updating app type --- pkg/port/integration/integration.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/port/integration/integration.go b/pkg/port/integration/integration.go index 5af4ba1..e0afc4c 100644 --- a/pkg/port/integration/integration.go +++ b/pkg/port/integration/integration.go @@ -57,6 +57,8 @@ func DeleteIntegration(portClient *cli.PortClient, stateKey string) error { } func PatchIntegration(portClient *cli.PortClient, stateKey string, integration *port.Integration) error { + // Fixing an incorrect app type caused from previous versions (kubernetes -> K8S EXPORTER) + integration.InstallationAppType = "K8S EXPORTER" _, err := portClient.Authenticate(context.Background(), portClient.ClientID, portClient.ClientSecret) if err != nil { return fmt.Errorf("error authenticating with Port: %v", err)