Skip to content

Commit 0926bf4

Browse files
committed
update key to constant
1 parent 84be009 commit 0926bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/provisioner/setter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func roleBindingSpecSetter(
166166
}
167167

168168
func mergeAnnotations(existing, desired map[string]string) map[string]string {
169-
trackingKey := "gateway.nginx.org/internal-managed-annotation-keys"
169+
const trackingKey = "gateway.nginx.org/internal-managed-annotation-keys"
170170
desiredKeys := make(map[string]struct{}, len(desired))
171171
for key := range desired {
172172
desiredKeys[key] = struct{}{}

0 commit comments

Comments
 (0)