Skip to content

Commit

Permalink
Merge pull request #256 from wanjunlei/release-2.5
Browse files Browse the repository at this point in the history
release v2.5.0
  • Loading branch information
benjaminhuo committed Mar 21, 2024
2 parents 29ddb6c + f5bef14 commit 6a0dfc0
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 21 deletions.
21 changes: 21 additions & 0 deletions CHANGLOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## v2.5.0 / 2024-03-21

### FEATURES

- Support sending notification history without adaptor(#227). @wanjunlei
- New tenant sidecar for kubesphere v4.0.0(#231). @wanjunlei

### Enhancements

- Add receiver name to the notification(#235). @wanjunlei
- Add annotation of alert to the notification(#238). @wanjunlei
- Update go version to 1.20(#236). @wanjunlei

### Deprecations

- Delete the v2beta1 version of the CRD(#230). @wanjunlei

### Bugfix

- Fix a bug that notification manager will crash when the smtp server is not available(#245). @Gentleelephant

## v2.4.0 / 2023-09-20

### FEATURES
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ We assume you already have a Kubernetes cluster (v1.16+). You can install one us

```shell
# Deploy CRDs and the Notification Manager Operator:
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.4.0/bundle.yaml
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.5.0/bundle.yaml
# Deploy default template:
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.4.0/template.yaml
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.5.0/template.yaml
# Deploy built-in language packs.
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.4.0/zh-cn.yaml
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.5.0/zh-cn.yaml
```

#### Install with helm

```shell
helm install notification-manager --create-namespace -n kubesphere-monitoring-system https://github.com/kubesphere/notification-manager/releases/download/v2.4.0/notification-manager.tgz
helm install notification-manager --create-namespace -n kubesphere-monitoring-system https://github.com/kubesphere/notification-manager/releases/download/v2.5.0/notification-manager.tgz
```

### Configure NotificationManager
Expand All @@ -103,7 +103,7 @@ ensures a deployment meeting the resource requirements is running.
We should create a NotificationManager CR first, skip this when using helm install.

```shell
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.4.0/notification_manager.yaml
kubectl apply -f https://github.com/kubesphere/notification-manager/releases/download/v2.5.0/notification_manager.yaml
```

### Configure sender
Expand Down
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ This page describes the release process and the currently planned schedule for u
| v2.3.0-rc.0 | 2023-02-07 | leiwanjun (GitHub: @leiwanjun) |
| v2.3.0 | 2023-04-12 | leiwanjun (GitHub: @leiwanjun) |
| v2.4.0 | 2023-09-20 | leiwanjun (GitHub: @leiwanjun) |
| v2.5.0 | 2024-03-21 | leiwanjun (GitHub: @leiwanjun) |


# How to cut a new release

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.5.0-rc.3
v2.5.0
2 changes: 1 addition & 1 deletion config/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8044,7 +8044,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: kubesphere/notification-manager-operator:v2.5.0-rc.0
image: kubesphere/notification-manager-operator:v2.5.0
imagePullPolicy: Always
name: notification-manager-operator
ports:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: kubesphere/notification-manager-operator
newTag: v2.5.0-rc.0
newTag: v2.5.0
11 changes: 10 additions & 1 deletion config/samples/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ data:
{{ define "nm.default.text" }}{{ range .Alerts }}{{ template "nm.default.message" . }}
{{ range .Labels.SortedPairs }} {{ .Name | translate }}: {{ .Value }}
{{ end }}{{ range .Annotations.SortedPairs.Filter "runbook_url" "message" "summary" "summary_cn" }} {{ .Name | translate }}: {{ .Value }}
{{ end }}
{{ end }}{{- end }}
{{ define "nm.default.markdown" }}{{ range .Alerts }}### {{ template "nm.default.message" . }}
{{ range .Labels.SortedPairs }}- {{ .Name | translate }}: {{ .Value }}
{{ end }}{{ range .Annotations.SortedPairs.Filter "runbook_url" "message" "summary" "summary_cn" }}- {{ .Name | translate }}: {{ .Value }}
{{ end }}
{{ end }}{{- end }}
Expand All @@ -26,12 +28,18 @@ data:
- - tag: text
text: ' {{ .Name | translate }}: {{ .Value }}'
{{- end }}
{{ if ne (len .Annotations.SortedPairs.Filter) 0 }}
{{ range .Annotations.SortedPairs.Filter "runbook_url" "message" "summary" "summary_cn" }}
- - tag: text
text: ' {{ .Name | translate }}: {{ .Value }}'
{{- end }}
{{- end }}
- - tag: text
text: ' '
{{- end }}
{{- end }}
{{ define "nm.feishu.text" }}{{ range .Alerts }}{{ template "nm.default.message" . }}{{ "\n" }}{{ range .Labels.SortedPairs }} {{ .Name | translate }}: {{ .Value }}{{ "\n" }}{{ end }}{{ "\n" }}{{ end }}{{- end }}
{{ define "nm.feishu.text" }}{{ range .Alerts }}{{ template "nm.default.message" . }}{{ "\n" }}{{ range .Labels.SortedPairs }} {{ .Name | translate }}: {{ .Value }}{{ "\n" }}{{ end }}{{ range .Annotations.SortedPairs.Filter "runbook_url" "message" "summary" "summary_cn" }} {{ .Name | translate }}: {{ .Value }}{{ "\n" }}{{ end }}{{ "\n" }}{{ end }}{{- end }}
{{ define "nm.default.html" }}
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
Expand All @@ -50,6 +58,7 @@ data:
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{ template "nm.default.message" . }}</strong><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
{{ range .Labels.SortedPairs }}&nbsp;&nbsp;{{ .Name | translate }}: {{ .Value }}<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
{{ range .Annotations.SortedPairs.Filter "runbook_url" "message" "summary" "summary_cn" }}&nbsp;&nbsp;{{ .Name | translate }}: {{ .Value }}<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
</td>
</tr>
{{ end }}
Expand Down
13 changes: 2 additions & 11 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ operator:
operator:
image:
repo: kubesphere/notification-manager-operator
tag: v2.5.0-rc.2
tag: v2.5.0
pullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -44,18 +44,9 @@ operator:

# value of notification-manager
notificationmanager:
sidecar:
tenant:
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
image:
repo: kubesphere/notification-manager
tag: v2.5.0-rc.2
tag: v2.5.0
pullPolicy: IfNotPresent
sidecar:
image:
Expand Down
2 changes: 1 addition & 1 deletion sidecar/kubesphere/4.0.0/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.

IMG ?= leiwanjun/notification-tenant-sidecar:v4.0.0
IMG ?= kubesphere/notification-tenant-sidecar:v4.0.0
AMD64 ?= -amd64

all: docker-build
Expand Down

0 comments on commit 6a0dfc0

Please sign in to comment.