Skip to content

Commit

Permalink
Rename installLogsForDeployment to indicate latest deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Aug 29, 2023
1 parent 5e44eeb commit a4c3380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/hive/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (hr *clusterManager) IsClusterInstallationComplete(ctx context.Context, doc

for _, cond := range cd.Status.Conditions {
if cond.Type == hivev1.ProvisionFailedCondition && cond.Status == corev1.ConditionTrue {
log, err := hr.installLogsForDeployment(ctx, cd)
log, err := hr.installLogsForLatestDeployment(ctx, cd)
if err != nil {
return false, err
}
Expand Down Expand Up @@ -240,7 +240,7 @@ func (hr *clusterManager) ResetCorrelationData(ctx context.Context, doc *api.Ope
})
}

func (hr *clusterManager) installLogsForDeployment(ctx context.Context, cd *hivev1.ClusterDeployment) (*string, error) {
func (hr *clusterManager) installLogsForLatestDeployment(ctx context.Context, cd *hivev1.ClusterDeployment) (*string, error) {
provisionList := &hivev1.ClusterProvisionList{}
if err := hr.hiveClientset.List(
ctx,
Expand Down

0 comments on commit a4c3380

Please sign in to comment.