Skip to content

Commit

Permalink
Revert title to the state key
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirsegev committed Aug 20, 2023
1 parent ada6c9b commit 27c32ac
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/port/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@ import (

func NewIntegration(portClient *cli.PortClient, k8sConfig clientcmd.ClientConfig, stateKey string) error {

k8sRawConfig, err := k8sConfig.RawConfig()
if err != nil {
return err
}

clusterName := k8sRawConfig.Contexts[k8sRawConfig.CurrentContext].Cluster

integration := &port.Integration{
Title: clusterName,
Title: stateKey,
InstallationAppType: "kubernetes",
InstallationId: stateKey,
}
_, err = portClient.Authenticate(context.Background(), portClient.ClientID, portClient.ClientSecret)
_, err := portClient.Authenticate(context.Background(), portClient.ClientID, portClient.ClientSecret)
if err != nil {
return fmt.Errorf("error authenticating with Port: %v", err)
}
Expand Down

0 comments on commit 27c32ac

Please sign in to comment.