Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Gentleelephant <[email protected]>
  • Loading branch information
Gentleelephant committed Mar 5, 2024
1 parent 1e666bd commit b69aee5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.5.0-rc.1
v2.5.0-rc.2
3 changes: 3 additions & 0 deletions helm/templates/zh-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ data:
rule_group: "规则组"
rule_level: "规则级别"
name: "名称"
receiver: "接收者"
workload_type: "工作负载类型"
rule_type: "规则类型"
kind: ConfigMap
metadata:
name: zh-cn
Expand Down
4 changes: 2 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ operator:
operator:
image:
repo: kubesphere/notification-manager-operator
tag: v2.5.0-rc.1
tag: v2.5.0-rc.2
pullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -55,7 +55,7 @@ notificationmanager:
memory: 256Mi
image:
repo: kubesphere/notification-manager
tag: v2.5.0-rc.1
tag: v2.5.0-rc.2
pullPolicy: IfNotPresent
sidecar:
image:
Expand Down
3 changes: 3 additions & 0 deletions pkg/notify/notifier/email/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ func (n *Notifier) send(ctx context.Context, to, subject, body string) error {
if err != nil {
return err
}
if conn == nil {
return utils.Errorf("failed to connect to %s", addr)
}

c, err := smtp.NewClient(conn, n.receiver.SmartHost.Host)
if err != nil {
Expand Down

0 comments on commit b69aee5

Please sign in to comment.