notification-manager
notification-manager copied to clipboard
K8s native notification management with multi-tenancy support
helm install notification-manager helm -n kubesphere-monitoring-system Error: unable to build kubernetes objects from release manifest: error validating “": error validating data: [ValidationError(NotificationManager.spec): unknown field "groupLabels” in io.kubesphere.notification.v2beta2.NotificationManager.spec, ValidationError(NotificationManager.spec): unknown field...
helm version version.BuildInfo{Version:"v3.9.0", GitCommit:"7ceeda6c585217a19a1131663d8cd1f7d641b2a7", GitTreeState:"clean", GoVersion:"go1.18.2"} notification-manager.tar v2.3.0 ERROR: ``` helm install notification-manager --create-namespace -n kubesphere-monitoring-system notification-manager.tar --dry-run --debug install.go:178: [debug] Original chart version: "" install.go:195: [debug] CHART PATH: /Users/eric/Downloads/notification/notification-manager.tar...
## 问题 * 采用自定义服务转发webhook的消息格式,发送过来的请求中无相关实时值`.Value`,希望能够带上,用于告知管理员当前实时数据 ```json { "receiver": "prometheus", "status": "firing", "alerts": [ { "status": "firing", "labels": { "alerttype": "metric", "namespace": "pro", "owner_kind": "Deployment", "rule_id": "pro-e5df62249c7c718b", "severity": "error", "workload": "Deployment:pro1-web-v1", "cluster":...
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.3.0/bundle.yaml  只有v2.2.0是存在的
Update kube-rbac-proxy to 0.11.0
如图: 1、当前告警不涉及namespace,在标题中应去掉该部分  2、通知设置为中文时,有部分内容未翻译【xxx firing alerts for】 
我尝试做一些功能开发。本地测试发现go vet 会报错,虽然我的本地版本是go 1.9.但我认为这个报错应该解决。但我不知道从哪里下手。 ``` pkg/notify/notifier/token.go:46:12: assignment copies lock value to t: (github.com/kubesphere/notification-manager/pkg/notify/notifier.token, bool) contains github.com/kubesphere/notification-manager/pkg/notify/notifier.token contains sync.Mutex ``` 我看见token里面确实有mutex对象。这个对象在赋值的时候会对mutex进行拷贝。这段代码在2020年开发的,当时的版本应该go vet没检查到。现在最新的可能已经检查到这个bug了。
k8s version :1.20.0 os: centos 7.9 kubesphere v3.3.1 It is currently a minimal installation of kubesphere, How to display notification channels Feishu 