Skip to content

Commit

Permalink
Merge pull request #2050 from wanjunlei/notification
Browse files Browse the repository at this point in the history
add support for switching the notfication language
  • Loading branch information
ks-ci-bot authored Aug 1, 2022
2 parents 8684382 + 15c7791 commit c1e9df5
Show file tree
Hide file tree
Showing 3 changed files with 4,928 additions and 8 deletions.
38 changes: 38 additions & 0 deletions roles/ks-monitor/files/notification-manager/templates/zh-cn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: v1
data:
zh-cn: |
- name: zh-cn
dictionary:
alert: "告警"
alerts: "告警"
firing: "触发中"
resolved: "已解决"
alertname: "告警名称"
alerttype: "告警类型"
alerttime: "告警时间"
cluster: "集群"
namespace: "项目"
severity: "告警级别"
container: "容器"
pod: "容器组"
service: "服务"
deployment: "部署"
job: "任务"
daemonset: "守护进程集"
statefulset: "有状态副本集"
instance: "实例"
resource: "资源"
user: "用户"
verb: "操作"
group: "用户组"
requestReceivedTimestamp: "请求接收时间"
role: "角色"
host_ip: "主机IP"
node: "节点"
rule_id: "告警规则"
owner_kind: "目标类型"
workload: "工作负载"
kind: ConfigMap
metadata:
name: zh-cn
namespace: kubesphere-monitoring-system
16 changes: 8 additions & 8 deletions roles/ks-monitor/templates/custom-values-notification.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,19 @@ notificationmanager:
notificationTimeout: 5
wechat:
notificationTimeout: 5
volumeMounts:
- mountPath: /etc/notification-manager/
name: notification-manager-template
volumes:
- configMap:
defaultMode: 420
name: notification-manager-template
name: notification-manager-template
defaultSecretNamespace: kubesphere-monitoring-federated
groupLabels:
- alertname
- namespace
template:
language: English
languagePack:
- name: zh-cn
namespace: kubesphere-monitoring-system
text:
name: notification-manager-template
namespace: kubesphere-monitoring-system
volumes: []
volumeMounts: []


Loading

0 comments on commit c1e9df5

Please sign in to comment.