Skip to content

Commit 20f07c8

Browse files
authored
Merge pull request #42 from fluxcd/release-v0.0.10
Release v0.0.10
2 parents 3fe833d + 16dd709 commit 20f07c8

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 0.0.10 (2020-09-12)
6+
7+
This prerelease comes with the option to watch for resources
8+
in the runtime namespace of the controller or at cluster level.
9+
510
## 0.0.9 (2020-09-11)
611

712
This prerelease makes the `api` package available as

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ resources:
66
images:
77
- name: fluxcd/notification-controller
88
newName: fluxcd/notification-controller
9-
newTag: v0.0.9
9+
newTag: v0.0.10

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ go 1.14
55
replace github.com/fluxcd/notification-controller/api => ./api
66

77
require (
8-
github.com/fluxcd/notification-controller/api v0.0.9
8+
github.com/fluxcd/notification-controller/api v0.0.10
99
github.com/fluxcd/pkg/recorder v0.0.6
1010
github.com/fluxcd/pkg/runtime v0.0.1
11-
github.com/fluxcd/source-controller/api v0.0.13
11+
github.com/fluxcd/source-controller/api v0.0.16
1212
github.com/go-logr/logr v0.1.0
1313
github.com/google/go-github/v32 v32.0.0
1414
github.com/hashicorp/go-retryablehttp v0.6.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ github.com/fluxcd/pkg/recorder v0.0.6 h1:me/n8syeeGXz50OXoPX3jgIj9AtinvhHdKT9Dy+
6969
github.com/fluxcd/pkg/recorder v0.0.6/go.mod h1:IfQxfVRSNsWs3B0Yp5B6ObEWwKHILlAx8N7XkoDdhFg=
7070
github.com/fluxcd/pkg/runtime v0.0.1 h1:h8jztHVF9UMGD7XBQSfXDdw80bpT6BOkd0xe4kknPL0=
7171
github.com/fluxcd/pkg/runtime v0.0.1/go.mod h1:cU1t0+Ld39pZjMyrrHukw1E++OZFNHxG2qAExfDWQ34=
72-
github.com/fluxcd/source-controller/api v0.0.13 h1:rf0uZ20OAN+yJVs0uHJUhw3n3ci9ZyjaLqt5Jt/5K9A=
73-
github.com/fluxcd/source-controller/api v0.0.13/go.mod h1:PUe+EYQ/s+KPnz2iOCgdf+L6clM0SWkyvdXIpbfpkQE=
72+
github.com/fluxcd/source-controller/api v0.0.16 h1:Mk+X2H+5CX7vfmrVhGT/TR8EnZ8UmZ20TpPyP3e8ZBs=
73+
github.com/fluxcd/source-controller/api v0.0.16/go.mod h1:PUe+EYQ/s+KPnz2iOCgdf+L6clM0SWkyvdXIpbfpkQE=
7474
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
7575
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
7676
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=

internal/server/receiver_handlers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ import (
3030
"k8s.io/apimachinery/pkg/types"
3131
"sigs.k8s.io/controller-runtime/pkg/client"
3232

33-
sourcev1 "github.com/fluxcd/source-controller/api/v1alpha1"
34-
3533
"github.com/fluxcd/notification-controller/api/v1alpha1"
34+
consts "github.com/fluxcd/pkg/runtime"
35+
sourcev1 "github.com/fluxcd/source-controller/api/v1alpha1"
3636
)
3737

3838
func (s *ReceiverServer) handlePayload() func(w http.ResponseWriter, r *http.Request) {
@@ -225,7 +225,7 @@ func (s *ReceiverServer) annotate(ctx context.Context, resource v1alpha1.CrossNa
225225
if source.Annotations == nil {
226226
source.Annotations = make(map[string]string)
227227
}
228-
source.Annotations[sourcev1.ReconcileAtAnnotation] = metav1.Now().String()
228+
source.Annotations[consts.ReconcileAtAnnotation] = metav1.Now().String()
229229
if err := s.kubeClient.Update(ctx, &source); err != nil {
230230
return fmt.Errorf("unable to annotate GitRepository '%s' error: %w", resourceName, err)
231231
}
@@ -237,7 +237,7 @@ func (s *ReceiverServer) annotate(ctx context.Context, resource v1alpha1.CrossNa
237237
if source.Annotations == nil {
238238
source.Annotations = make(map[string]string)
239239
}
240-
source.Annotations[sourcev1.ReconcileAtAnnotation] = metav1.Now().String()
240+
source.Annotations[consts.ReconcileAtAnnotation] = metav1.Now().String()
241241
if err := s.kubeClient.Update(ctx, &source); err != nil {
242242
return fmt.Errorf("unable to annotate HelmRepository '%s' error: %w", resourceName, err)
243243
}

0 commit comments

Comments
 (0)