Skip to content

Commit 70e5a05

Browse files
committed
fixed kcp gateway connection
1 parent 82ce421 commit 70e5a05

26 files changed

+746
-3555
lines changed

cmd/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var gatewayCmd = &cobra.Command{
3434

3535
ctrl.SetLogger(log.Logr())
3636

37-
gatewayInstance, err := manager.NewGateway(ctx, log, appCfg)
37+
gatewayInstance, err := manager.NewGateway(ctx, log, appCfg, defaultCfg)
3838
if err != nil {
3939
log.Fatal().Err(err).Msg("Failed to create gateway")
4040
}

common/auth/metadata_injector.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ func (m *MetadataInjector) getSecret(ctx context.Context, name, namespace string
232232
func (m *MetadataInjector) extractKubeconfigFromEnv() ([]byte, string, error) {
233233
// Check KUBECONFIG environment variable first
234234
kubeconfigPath := os.Getenv("KUBECONFIG")
235-
if kubeconfigPath != "" {
236-
m.log.Debug().Str("source", "KUBECONFIG env var").Str("path", kubeconfigPath).Msg("using kubeconfig from environment variable")
237-
}
238235

239236
// Fall back to default kubeconfig location if not set
240237
if kubeconfigPath == "" {
@@ -430,7 +427,7 @@ func (m *MetadataInjector) determineKCPHost(kubeconfigHost, override, clusterPat
430427
Str("clusterPath", clusterPath).
431428
Str("originalHost", kubeconfigHost).
432429
Str("cleanedHost", host).
433-
Msg("cleaned virtual workspace path from kubeconfig host for normal workspace")
430+
Msg("cleaned virtual workspace path from host for normal workspace")
434431
}
435432
return host
436433
}

common/cluster/interfaces.go

Lines changed: 0 additions & 108 deletions
This file was deleted.

common/cluster/manager.go

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)