From 16dd709335e0234b3c2764c16310e11e8756225b Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sat, 12 Sep 2020 10:27:15 +0300 Subject: [PATCH] Release v0.0.10 --- CHANGELOG.md | 5 +++++ config/manager/kustomization.yaml | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- internal/server/receiver_handlers.go | 8 ++++---- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c1c4a0..00eff88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project are documented in this file. +## 0.0.10 (2020-09-12) + +This prerelease comes with the option to watch for resources +in the runtime namespace of the controller or at cluster level. + ## 0.0.9 (2020-09-11) This prerelease makes the `api` package available as diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index aa026c2..39917b4 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -6,4 +6,4 @@ resources: images: - name: fluxcd/notification-controller newName: fluxcd/notification-controller - newTag: v0.0.9 + newTag: v0.0.10 diff --git a/go.mod b/go.mod index adeda05..2cb45eb 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,10 @@ go 1.14 replace github.com/fluxcd/notification-controller/api => ./api require ( - github.com/fluxcd/notification-controller/api v0.0.9 + github.com/fluxcd/notification-controller/api v0.0.10 github.com/fluxcd/pkg/recorder v0.0.6 github.com/fluxcd/pkg/runtime v0.0.1 - github.com/fluxcd/source-controller/api v0.0.13 + github.com/fluxcd/source-controller/api v0.0.16 github.com/go-logr/logr v0.1.0 github.com/google/go-github/v32 v32.0.0 github.com/hashicorp/go-retryablehttp v0.6.6 diff --git a/go.sum b/go.sum index 47eb8cd..f9aef16 100644 --- a/go.sum +++ b/go.sum @@ -69,8 +69,8 @@ github.com/fluxcd/pkg/recorder v0.0.6 h1:me/n8syeeGXz50OXoPX3jgIj9AtinvhHdKT9Dy+ github.com/fluxcd/pkg/recorder v0.0.6/go.mod h1:IfQxfVRSNsWs3B0Yp5B6ObEWwKHILlAx8N7XkoDdhFg= github.com/fluxcd/pkg/runtime v0.0.1 h1:h8jztHVF9UMGD7XBQSfXDdw80bpT6BOkd0xe4kknPL0= github.com/fluxcd/pkg/runtime v0.0.1/go.mod h1:cU1t0+Ld39pZjMyrrHukw1E++OZFNHxG2qAExfDWQ34= -github.com/fluxcd/source-controller/api v0.0.13 h1:rf0uZ20OAN+yJVs0uHJUhw3n3ci9ZyjaLqt5Jt/5K9A= -github.com/fluxcd/source-controller/api v0.0.13/go.mod h1:PUe+EYQ/s+KPnz2iOCgdf+L6clM0SWkyvdXIpbfpkQE= +github.com/fluxcd/source-controller/api v0.0.16 h1:Mk+X2H+5CX7vfmrVhGT/TR8EnZ8UmZ20TpPyP3e8ZBs= +github.com/fluxcd/source-controller/api v0.0.16/go.mod h1:PUe+EYQ/s+KPnz2iOCgdf+L6clM0SWkyvdXIpbfpkQE= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= diff --git a/internal/server/receiver_handlers.go b/internal/server/receiver_handlers.go index 605abc3..af96e37 100644 --- a/internal/server/receiver_handlers.go +++ b/internal/server/receiver_handlers.go @@ -30,9 +30,9 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" - sourcev1 "github.com/fluxcd/source-controller/api/v1alpha1" - "github.com/fluxcd/notification-controller/api/v1alpha1" + consts "github.com/fluxcd/pkg/runtime" + sourcev1 "github.com/fluxcd/source-controller/api/v1alpha1" ) 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 if source.Annotations == nil { source.Annotations = make(map[string]string) } - source.Annotations[sourcev1.ReconcileAtAnnotation] = metav1.Now().String() + source.Annotations[consts.ReconcileAtAnnotation] = metav1.Now().String() if err := s.kubeClient.Update(ctx, &source); err != nil { return fmt.Errorf("unable to annotate GitRepository '%s' error: %w", resourceName, err) } @@ -237,7 +237,7 @@ func (s *ReceiverServer) annotate(ctx context.Context, resource v1alpha1.CrossNa if source.Annotations == nil { source.Annotations = make(map[string]string) } - source.Annotations[sourcev1.ReconcileAtAnnotation] = metav1.Now().String() + source.Annotations[consts.ReconcileAtAnnotation] = metav1.Now().String() if err := s.kubeClient.Update(ctx, &source); err != nil { return fmt.Errorf("unable to annotate HelmRepository '%s' error: %w", resourceName, err) }