Skip to content

Commit

Permalink
Log workload cluster definition during e2e test (#8389)
Browse files Browse the repository at this point in the history
Co-authored-by: Xu Deng <[email protected]>
  • Loading branch information
eks-distro-pr-bot and d8660091 authored Jun 25, 2024
1 parent 43a4462 commit 63f5764
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/framework/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func (w *WorkloadCluster) DeleteCluster(opts ...CommandOpt) {
func (w *WorkloadCluster) ApplyClusterManifest() {
ctx := context.Background()
w.T.Logf("Applying workload cluster %s spec located at %s", w.ClusterName, w.ClusterConfigLocation)
dumpFile("Workload cluster file content:", w.ClusterConfigLocation, w.T)

if err := w.KubectlClient.ApplyManifest(ctx, w.ManagementClusterKubeconfigFile(), w.ClusterConfigLocation); err != nil {
w.T.Fatalf("Failed to apply workload cluster config: %s", err)
}
Expand Down

0 comments on commit 63f5764

Please sign in to comment.