Skip to content

Commit 5c22d56

Browse files
committed
rename generateManagedCustomFieldsAnnotation funciton
1 parent afc40a6 commit 5c22d56

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/controller/ipaddress_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (r *IpAddressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
193193
annotations = make(map[string]string, 1)
194194
}
195195

196-
annotations[IPManagedCustomFieldsAnnotationName], err = generateLastMetadataAnnotation(o.Spec.CustomFields)
196+
annotations[IPManagedCustomFieldsAnnotationName], err = generateManagedCustomFieldsAnnotation(o.Spec.CustomFields)
197197
if err != nil {
198198
logger.Error(err, "failed to update last metadata annotation")
199199
return ctrl.Result{Requeue: true}, nil

internal/controller/iprange_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (r *IpRangeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
166166
annotations = make(map[string]string, 1)
167167
}
168168

169-
annotations[IPRManagedCustomFieldsAnnotationName], err = generateLastMetadataAnnotation(o.Spec.CustomFields)
169+
annotations[IPRManagedCustomFieldsAnnotationName], err = generateManagedCustomFieldsAnnotation(o.Spec.CustomFields)
170170
if err != nil {
171171
logger.Error(err, "failed to update last metadata annotation")
172172
return ctrl.Result{Requeue: true}, nil

internal/controller/prefix_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (r *PrefixReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
205205
annotations = make(map[string]string, 1)
206206
}
207207

208-
annotations[PXManagedCustomFieldsAnnotationName], err = generateLastMetadataAnnotation(prefix.Spec.CustomFields)
208+
annotations[PXManagedCustomFieldsAnnotationName], err = generateManagedCustomFieldsAnnotation(prefix.Spec.CustomFields)
209209
if err != nil {
210210
logger.Error(err, "failed to update last metadata annotation")
211211
return ctrl.Result{Requeue: true}, nil

internal/controller/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func convertCIDRToLeaseLockName(cidr string) string {
3131
return strings.ReplaceAll(strings.ReplaceAll(cidr, "/", "-"), ":", "-")
3232
}
3333

34-
func generateLastMetadataAnnotation(customFields map[string]string) (string, error) {
34+
func generateManagedCustomFieldsAnnotation(customFields map[string]string) (string, error) {
3535
if customFields == nil {
3636
customFields = make(map[string]string)
3737
}

0 commit comments

Comments
 (0)