Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm 安装v2.2.0 报错 #208

Open
airufei opened this issue Apr 6, 2023 · 7 comments
Open

helm 安装v2.2.0 报错 #208

airufei opened this issue Apr 6, 2023 · 7 comments
Assignees

Comments

@airufei
Copy link

airufei commented Apr 6, 2023

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
Copy link
Member

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

@Gentleelephant
Copy link
Collaborator

@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
Copy link
Author

airufei commented Apr 6, 2023

@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
Copy link
Collaborator

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
Copy link
Author

airufei commented Apr 7, 2023

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
Copy link
Collaborator

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

@YigalZenith
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants