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

告警消息发送飞书机器人模版问题 #151

Open
bubbyqi opened this issue May 19, 2022 · 10 comments
Open

告警消息发送飞书机器人模版问题 #151

bubbyqi opened this issue May 19, 2022 · 10 comments
Assignees

Comments

@bubbyqi
Copy link

bubbyqi commented May 19, 2022

版本: ksp v3.2.1 nm: v2.0.1
image
receiver:
image
template:
image
麻烦看下是什么问题。哪里要修改吗?

@benjaminhuo
Copy link
Member

@wanjunlei The new version fixed this?

@wanjunlei
Copy link
Collaborator

@bubbyqi There are still some problems here, you can use the full name of the template first, I will fix it as soon as possible.

@bubbyqi
Copy link
Author

bubbyqi commented May 20, 2022

soon

thanks for your reply, can you help me, i am new to it, where to change to the full name? what's the full name?

@bubbyqi
Copy link
Author

bubbyqi commented May 20, 2022

@wanjunlei

@wanjunlei
Copy link
Collaborator

kubectl edit nr global-receiver

Change the spec.feishu.template to "{{ template "nm.feishu.texts" . }}"

@bubbyqi
Copy link
Author

bubbyqi commented May 20, 2022

kubectl edit nr global-receiver

Change the spec.feishu.template to "{{ template "nm.feishu.texts" . }}"

@wanjunlei
like this? save and error
image

@wanjunlei
Copy link
Collaborator

use single quotes

1653038216(1)

@bubbyqi
Copy link
Author

bubbyqi commented May 20, 2022

use single quotes

1653038216(1)

@wanjunlei cool, thanks , it's ok now.

another help, how to hack to zh-cn?

image

@wanjunlei
Copy link
Collaborator

First, install the Chinese simple language package.

kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.0.1/zh-cn.yaml

Then follow this.

https://github.com/kubesphere/notification-manager/blob/master/docs/template.md#multilingual-support

@bubbyqi
Copy link
Author

bubbyqi commented May 20, 2022

First, install the Chinese simple language package.

kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.0.1/zh-cn.yaml

Then follow this.

https://github.com/kubesphere/notification-manager/blob/master/docs/template.md#multilingual-support

@wanjunlei get, thank your help, i will try.

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

3 participants