From 17b3bd6c2197b37a8cf2b8d3719126ce48efe49d Mon Sep 17 00:00:00 2001 From: yair Date: Thu, 28 Dec 2023 22:47:43 +0200 Subject: [PATCH] removed unwanted logs --- .github/workflows/release.yml | 1 - pkg/defaults/init.go | 1 - pkg/port/cli/integration.go | 3 --- 3 files changed, 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 779c423..5b76944 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,6 @@ jobs: mkdir ../../musl-cross wget -P ~ https://musl.cc/aarch64-linux-musl-cross.tgz tar -xvf ~/aarch64-linux-musl-cross.tgz -C ../../musl-cross - ls assets - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 diff --git a/pkg/defaults/init.go b/pkg/defaults/init.go index 6e9b3ba..e0f5521 100644 --- a/pkg/defaults/init.go +++ b/pkg/defaults/init.go @@ -47,7 +47,6 @@ func InitIntegration(portClient *cli.PortClient, applicationConfig *port.Config) // Handle a deprecated case where resources are provided in config file return integration.CreateIntegration(portClient, applicationConfig.StateKey, applicationConfig.EventListenerType, defaultIntegrationConfig) } else { - klog.Infof("integration : %v", existingIntegration) klog.Infof("Integration with state key %s already exists, patching it", applicationConfig.StateKey) integrationPatch := &port.Integration{ EventListener: getEventListenerConfig(applicationConfig.EventListenerType), diff --git a/pkg/port/cli/integration.go b/pkg/port/cli/integration.go index a9fed93..250ec18 100644 --- a/pkg/port/cli/integration.go +++ b/pkg/port/cli/integration.go @@ -3,7 +3,6 @@ package cli import ( "fmt" "github.com/port-labs/port-k8s-exporter/pkg/port" - "k8s.io/klog/v2" ) func parseIntegration(i *port.Integration) *port.Integration { @@ -29,7 +28,6 @@ func (c *PortClient) CreateIntegration(i *port.Integration) (*port.Integration, SetBody(parseIntegration(i)). SetResult(&pb). Post("v1/integration") - klog.Infof("Creating integration: %v", resp) if err != nil { return nil, err } @@ -44,7 +42,6 @@ func (c *PortClient) GetIntegration(stateKey string) (*port.Integration, error) resp, err := c.Client.R(). SetResult(&pb). Get(fmt.Sprintf("v1/integration/%s", stateKey)) - klog.Infof("Integration: %v", resp) if err != nil { return nil, err }