Skip to content

Commit

Permalink
assets and docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Dec 28, 2023
1 parent 928f8c8 commit dac1157
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/defaults/init.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package defaults

import (
"fmt"
"github.com/port-labs/port-k8s-exporter/pkg/port"
"github.com/port-labs/port-k8s-exporter/pkg/port/cli"
"github.com/port-labs/port-k8s-exporter/pkg/port/integration"
"k8s.io/klog/v2"
"log"
"os"
)

func getEventListenerConfig(eventListenerType string) *port.EventListenerSettings {
Expand All @@ -25,6 +28,12 @@ func InitIntegration(portClient *cli.PortClient, applicationConfig *port.Config)
CreateMissingRelatedEntities: applicationConfig.CreateMissingRelatedEntities,
}

path, err := os.Getwd()
if err != nil {
log.Println(err)
}
fmt.Println(path)

if err != nil {
klog.Infof("Could not get integration with state key %s, error: %s", applicationConfig.StateKey, err.Error())
klog.Infof("Creating integration")
Expand Down

0 comments on commit dac1157

Please sign in to comment.