Skip to content

Commit

Permalink
Merge pull request #23 from junotx/release-0.3
Browse files Browse the repository at this point in the history
[release-0.3] fix closure variables
  • Loading branch information
benjaminhuo authored Jan 6, 2022
2 parents e97ce52 + e87414d commit cd58eaa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REGISTRY?=kubesphere
REPO_OPERATOR?=$(REGISTRY)/kube-events-operator
REPO_EXPORTER?=$(REGISTRY)/kube-events-exporter
REPO_RULER?=$(REGISTRY)/kube-events-ruler
TAG?=v0.3.0
TAG?=v0.3.1

GO_PKG?=github.com/kubesphere/kube-events

Expand Down
2 changes: 1 addition & 1 deletion config/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: kubesphere/kube-events-operator:latest
image: kubesphere/kube-events-operator:v0.3.1
name: events-operator
ports:
- containerPort: 9443
Expand Down
5 changes: 3 additions & 2 deletions config/crs/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: kube-events-exporter
namespace: kubesphere-logging-system
spec:
image: kubesphere/kube-events-exporter:latest
image: kubesphere/kube-events-exporter:v0.3.1
resources: {}
sinks:
stdout: {}
Expand Down Expand Up @@ -893,8 +893,9 @@ metadata:
name: kube-events-ruler
namespace: kubesphere-logging-system
spec:
image: kubesphere/kube-events-ruler:latest
image: kubesphere/kube-events-ruler:v0.3.1
replicas: 2
resources: {}
sinks:
alertmanager:
name: alertmanager-main
Expand Down
4 changes: 2 additions & 2 deletions config/crs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ patchesStrategicMerge:
images:
- name: exporter
newName: kubesphere/kube-events-exporter
newTag: latest
newTag: v0.3.1
- name: ruler
newName: kubesphere/kube-events-ruler
newTag: latest
newTag: v0.3.1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
2 changes: 1 addition & 1 deletion config/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ configurations:
images:
- name: operator
newName: kubesphere/kube-events-operator
newTag: latest
newTag: v0.3.1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
3 changes: 2 additions & 1 deletion pkg/ruler/kube_events_ruler.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ func (r *KubeEventsRuler) evalEvents(ctx context.Context) {
}
r.evtQueue.Done(evt)
}
for _, evt := range evts {
for _, event := range evts {
evt := event
if err := r.taskPool.Submit(func() {
var err error
defer func() {
Expand Down

0 comments on commit cd58eaa

Please sign in to comment.