Skip to content

Commit

Permalink
Give e2e workload cluster config a unique name (#7455)
Browse files Browse the repository at this point in the history
Before, workload clusters added through the multicluster constructor had
an already set config path that defaulted to the management cluster's
config file. This meand workload cluster operations overwrote the same
file.
  • Loading branch information
g-gaston authored Feb 1, 2024
1 parent be30e46 commit 3c62780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/framework/multicluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package framework

import (
"fmt"
"path/filepath"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -31,6 +32,7 @@ func NewMulticlusterE2ETest(t *testing.T, managementCluster *ClusterE2ETest, wor
for _, c := range workloadClusters {
c.clusterFillers = append(c.clusterFillers, api.WithManagementCluster(managementCluster.ClusterName))
c.ClusterName = m.NewWorkloadClusterName()
c.ClusterConfigLocation = filepath.Join(managementCluster.ClusterConfigFolder, c.ClusterName+"-eks-a.yaml")
m.WithWorkloadClusters(c)
}

Expand Down

0 comments on commit 3c62780

Please sign in to comment.