Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jan 9, 2024
1 parent 0ee4861 commit 761e66f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (r *PipelineReconciler) pipelineStageServiceAttributes(ctx context.Context,
return nil, err
}

// TODO: Extracting cluster ref from the service, not from the custom resource field. Is it okay?
// Extracting cluster ref from the service, not from the custom resource field (i.e. PipelineStageService.ClusterRef).
cluster, err := utils.GetCluster(ctx, r.Client, &service.Spec.ClusterRef)
if err != nil {
return nil, err
Expand All @@ -88,7 +88,7 @@ func (r *PipelineReconciler) pipelineStageServiceAttributes(ctx context.Context,
}

return &console.StageServiceAttributes{
Handle: cluster.Status.ID, // TODO: Using cluster ID instead of handle. Will it work?
Handle: cluster.Status.ID, // Using cluster ID instead of handle.
Name: nil, // Using ServiceID instead.
ServiceID: service.Status.ID,
Criteria: criteria,
Expand All @@ -105,14 +105,14 @@ func (r *PipelineReconciler) pipelineStageServiceCriteriaAttributes(ctx context.
return nil, err
}

// TODO: Extracting cluster ref from the service, not from the custom resource field. Is it okay?
// Extracting cluster ref from the service, not from the custom resource field (i.e. PipelineStageServicePromotionCriteria.ClusterRef).
cluster, err := utils.GetCluster(ctx, r.Client, &service.Spec.ClusterRef)
if err != nil {
return nil, err
}

return &console.PromotionCriteriaAttributes{
Handle: cluster.Status.ID, // TODO: Using cluster ID instead of handle. Will it work?
Handle: cluster.Status.ID, // Using cluster ID instead of handle.
Name: nil, // Using SourceID instead.
SourceID: service.Status.ID,
Secrets: criteria.Secrets,
Expand Down

0 comments on commit 761e66f

Please sign in to comment.