Skip to content

Commit

Permalink
Merge pull request #154 from chengxiangdong/fix
Browse files Browse the repository at this point in the history
change the event type to normal
  • Loading branch information
k8s-ci-robot committed Dec 22, 2022
2 parents eadf09e + faa0bdb commit 9015c57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/cloudprovider/huaweicloud/huaweicloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ func (b Basic) listPodsBySelector(ctx context.Context, namespace string, selecto
return b.kubeClient.Pods(namespace).List(ctx, opts)
}

func (b Basic) sendEvent(title, msg string, service *v1.Service) {
klog.Errorf("[%s/%s]%s", service.Namespace, service.Name, msg)
b.eventRecorder.Event(service, v1.EventTypeWarning, title, fmt.Sprintf("Details: %s", msg))
func (b Basic) sendEvent(reason, msg string, service *v1.Service) {
b.eventRecorder.Event(service, v1.EventTypeNormal, reason, msg)
}

type CloudProvider struct {
Expand Down

0 comments on commit 9015c57

Please sign in to comment.