Skip to content

Commit

Permalink
chore: fix staticcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-inf committed Feb 14, 2025
1 parent 972c0d8 commit b234b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testutil/apps/cluster_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func CheckedCreateK8sResource(testCtx *testutil.TestContext, obj client.Object)
func GetClusterComponentPhase(testCtx *testutil.TestContext, clusterKey types.NamespacedName, componentName string) func(g gomega.Gomega) appsv1.ComponentPhase {
return func(g gomega.Gomega) appsv1.ComponentPhase {
tmpCluster := &appsv1.Cluster{}
g.Expect(testCtx.Cli.Get(context.Background(), client.ObjectKey{Name: clusterKey.Name,
g.Expect(testCtx.Cli.Get(context.Background(), types.NamespacedName{Name: clusterKey.Name,
Namespace: clusterKey.Namespace}, tmpCluster)).Should(gomega.Succeed())
return tmpCluster.Status.Components[componentName].Phase
}
Expand Down

0 comments on commit b234b3a

Please sign in to comment.