Skip to content

Commit e36dac6

Browse files
author
Henry Wagner
committed
add timestamp to event object
1 parent f8785bf commit e36dac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/linode/loadbalancers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func (l *loadbalancers) EnsureLoadBalancer(ctx context.Context, clusterName stri
366366
func (l *loadbalancers) createIPChangeWarningEvent(ctx context.Context, service *v1.Service, nb *linodego.NodeBalancer, newIP string) {
367367
_, err := l.kubeClient.CoreV1().Events(service.Namespace).Create(ctx, &v1.Event{
368368
ObjectMeta: metav1.ObjectMeta{
369-
Name: eventIPChangeIgnoredWarning,
369+
Name: fmt.Sprintf("%s-%d", eventIPChangeIgnoredWarning, time.Now().Unix()),
370370
Namespace: service.Namespace,
371371
},
372372
InvolvedObject: v1.ObjectReference{

0 commit comments

Comments
 (0)