kubesphere / notification-manager

K8s native notification management with multi-tenancy support
Apache License 2.0
226 stars 68 forks source link

helm 安装v2.2.0 报错 #208

Open airufei opened 1 year ago

airufei commented 1 year ago

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]

benjaminhuo commented 1 year ago

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

Gentleelephant commented 1 year ago

@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.

airufei commented 1 year ago

@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

Gentleelephant commented 1 year ago

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

airufei commented 1 year ago

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。

Gentleelephant commented 1 year ago

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

YigalZenith commented 1 year ago

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