Skip to content

Commit

Permalink
Merge pull request #1532 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1531-to-release-0.7

[release-0.7] 🌱 Remove creation of 2 Events for the same event
  • Loading branch information
k8s-ci-robot authored Apr 27, 2023
2 parents c9239d5 + 808b691 commit 9ca1382
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cloud/services/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ func (s *Service) getOrCreateMonitor(openStackCluster *infrav1.OpenStackCluster,
monitor, err = s.loadbalancerClient.CreateMonitor(monitorCreateOpts)
// Skip creating monitor if it is not supported by Octavia provider
if capoerrors.IsNotImplementedError(err) {
record.Warnf(openStackCluster, "SkippedCreateMonitor", "Health monitors are not supported with the current Octavia provider.")
record.Eventf(openStackCluster, "SkippedCreateMonitor", "Health Monitor is not created as it's not implemented with the current Octavia provider.")
record.Warnf(openStackCluster, "SkippedCreateMonitor", "Health Monitor is not created as it's not implemented with the current Octavia provider.")
return nil
}

Expand Down

0 comments on commit 9ca1382

Please sign in to comment.