notification-manager icon indicating copy to clipboard operation
notification-manager copied to clipboard

helm 安装v2.2.0 报错

Open airufei opened this issue 1 year ago • 7 comments

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 “template” in io.kubesphere.notification.v2beta2.NotificationManager.spec]

airufei avatar Apr 06 '23 07:04 airufei

@Gentleelephant @wanjunlei is this because the latest CRDs are not installed properly?

benjaminhuo avatar Apr 06 '23 08:04 benjaminhuo

@airufei The helm upgrade command will not upgrade the crd, you may need to upgrade the crd manually. Then run helm upgrade and set --set kubesphere=true.

Gentleelephant avatar Apr 06 '23 09:04 Gentleelephant

@airufei The helm upgrade command will not upgrade the crd, you may need to upgrade the crd manually. Then run helm upgrade and set --set kubesphere=true.

The installation is normal, but Webhook is still unable to send messages to Enterprise WeChat

airufei avatar Apr 06 '23 09:04 airufei

Webhook does not support sending to wechat, you can refer to https://github.com/kubesphere/notification-manager/blob/master/docs/crds/receiver.md#wechat-chatbot

Gentleelephant avatar Apr 06 '23 09:04 Gentleelephant

Webhook does not support sending to wechat, you can refer to https://github.com/kubesphere/notification-manager/blob/master/docs/crds/receiver.md#wechat-chatbot


kind: Secret apiVersion: v1 metadata: name: wechat-bot-secret namespace: kubesphere-monitoring-federated labels: notification.kubesphere.io/managed: 'true' type: global annotations: kubesphere.io/creator: admin data: test: aHR0cHfgbftyjiuyfdfgnzZW5kP2tleT05ZWY5ZDAyZC0xOTcwLTRhM2ItOTY5Ni1hMWIwOGUxOTdlMzc=

This one can't be executed, the second one is executed, but still can't send a notification, I read the log, there is no error, I don't know what the problem is。

airufei avatar Apr 07 '23 00:04 airufei

Did you fill in the correct webhook url? The test field is a base64 encrypted webhook url for your bot.

Gentleelephant avatar Apr 07 '23 02:04 Gentleelephant

change namespace of secrets to kubesphere-monitoring-system will work.

YigalZenith avatar Jul 10 '23 09:07 YigalZenith