Skip to content

Commit 5a04c69

Browse files
committed
refactor(hrq): Update deleteLegacyScopedRQ function documentation for clarity
1 parent e2ba73d commit 5a04c69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/hrq/rqreconciler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ func (r *ResourceQuotaReconciler) writeRQ(ctx context.Context, log logr.Logger,
167167
if inst.CreationTimestamp.IsZero() {
168168
// Set the cleanup label so the singleton can be deleted by selector later.
169169
metadata.SetLabel(inst, api.HRQLabelCleanup, "true")
170-
171170
// Add a non-propagate exception annotation to the instance so that it won't
172171
// be overwritten by ancestors, when the resource quota type is configured
173172
// as Propagate mode in HNCConfig.
@@ -347,7 +346,7 @@ func (r *ResourceQuotaReconciler) syncResourceLimits(ns *forest.Namespace, inst
347346
return true
348347
}
349348

350-
// migrateLegacyScopedRQ handles migration from legacy scoped RQ format to new format
349+
// deleteLegacyScopedRQ deletes the legacy scoped RQ if it exists.
351350
func (r *ResourceQuotaReconciler) deleteLegacyScopedRQ(ctx context.Context, log logr.Logger, newRQ *v1.ResourceQuota) error {
352351
hrqnnm, err := utils.ScopedHRQNameFromRQ(newRQ)
353352
if err != nil {

0 commit comments

Comments
 (0)