Skip to content

Commit cb922ee

Browse files
authored
Merge pull request #25 from aryan9600/aryan9600/update-deps
Bump go, controller-runtime and flux components versions
2 parents 08f2200 + 73afc87 commit cb922ee

File tree

5 files changed

+417
-138
lines changed

5 files changed

+417
-138
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: 1.16.x
25+
go-version: 1.17.x
2626
- name: Run tests
2727
run: make test
2828
- name: Check if working tree is dirty

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16-alpine as builder
1+
FROM golang:1.17-alpine as builder
22

33
WORKDIR /workspace
44

@@ -16,7 +16,7 @@ COPY controllers/ controllers/
1616
# build
1717
RUN CGO_ENABLED=0 go build -a -o source-watcher main.go
1818

19-
FROM alpine:3.13
19+
FROM alpine:3.15
2020

2121
RUN apk add --no-cache ca-certificates tini
2222

controllers/gitrepository_watcher.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"net/http"
2424
"os"
2525

26-
"github.com/go-logr/logr"
2726
"k8s.io/apimachinery/pkg/runtime"
2827
ctrl "sigs.k8s.io/controller-runtime"
2928
"sigs.k8s.io/controller-runtime/pkg/builder"
@@ -43,7 +42,7 @@ type GitRepositoryWatcher struct {
4342
// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories/status,verbs=get
4443

4544
func (r *GitRepositoryWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
46-
log := logr.FromContext(ctx)
45+
log := ctrl.LoggerFrom(ctx)
4746

4847
// get source object
4948
var repository sourcev1.GitRepository

go.mod

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,67 @@
11
module github.com/fluxcd/source-watcher
22

3-
go 1.16
3+
go 1.17
44

55
require (
6-
github.com/fluxcd/pkg/runtime v0.12.0
7-
github.com/fluxcd/pkg/untar v0.0.5
8-
github.com/fluxcd/source-controller/api v0.15.0
9-
github.com/go-logr/logr v0.4.0
6+
github.com/fluxcd/pkg/runtime v0.12.3
7+
github.com/fluxcd/pkg/untar v0.1.0
8+
github.com/fluxcd/source-controller/api v0.20.1
9+
github.com/go-logr/logr v1.2.2
1010
github.com/spf13/pflag v1.0.5
11-
k8s.io/apimachinery v0.21.1
12-
k8s.io/client-go v0.21.1
13-
sigs.k8s.io/controller-runtime v0.9.0
11+
k8s.io/apimachinery v0.23.1
12+
k8s.io/client-go v0.23.1
13+
sigs.k8s.io/controller-runtime v0.11.0
14+
)
15+
16+
require (
17+
cloud.google.com/go v0.81.0 // indirect
18+
github.com/beorn7/perks v1.0.1 // indirect
19+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
20+
github.com/davecgh/go-spew v1.1.1 // indirect
21+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
22+
github.com/fluxcd/pkg/apis/acl v0.0.3 // indirect
23+
github.com/fluxcd/pkg/apis/meta v0.10.2 // indirect
24+
github.com/fsnotify/fsnotify v1.5.1 // indirect
25+
github.com/go-logr/zapr v1.2.0 // indirect
26+
github.com/gogo/protobuf v1.3.2 // indirect
27+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
28+
github.com/golang/protobuf v1.5.2 // indirect
29+
github.com/google/go-cmp v0.5.6 // indirect
30+
github.com/google/gofuzz v1.2.0 // indirect
31+
github.com/google/uuid v1.1.2 // indirect
32+
github.com/googleapis/gnostic v0.5.5 // indirect
33+
github.com/imdario/mergo v0.3.12 // indirect
34+
github.com/json-iterator/go v1.1.12 // indirect
35+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
36+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
37+
github.com/modern-go/reflect2 v1.0.2 // indirect
38+
github.com/pkg/errors v0.9.1 // indirect
39+
github.com/prometheus/client_golang v1.11.0 // indirect
40+
github.com/prometheus/client_model v0.2.0 // indirect
41+
github.com/prometheus/common v0.28.0 // indirect
42+
github.com/prometheus/procfs v0.6.0 // indirect
43+
go.uber.org/atomic v1.7.0 // indirect
44+
go.uber.org/multierr v1.6.0 // indirect
45+
go.uber.org/zap v1.19.1 // indirect
46+
golang.org/x/net v0.0.0-20211215060638-4ddde0e984e9 // indirect
47+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
48+
golang.org/x/sys v0.0.0-20211029165221-6e7872819dc8 // indirect
49+
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
50+
golang.org/x/text v0.3.7 // indirect
51+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
52+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
53+
google.golang.org/appengine v1.6.7 // indirect
54+
google.golang.org/protobuf v1.27.1 // indirect
55+
gopkg.in/inf.v0 v0.9.1 // indirect
56+
gopkg.in/yaml.v2 v2.4.0 // indirect
57+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
58+
k8s.io/api v0.23.1 // indirect
59+
k8s.io/apiextensions-apiserver v0.23.0 // indirect
60+
k8s.io/component-base v0.23.0 // indirect
61+
k8s.io/klog/v2 v2.30.0 // indirect
62+
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
63+
k8s.io/utils v0.0.0-20211208161948-7d6a63dca704 // indirect
64+
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
65+
sigs.k8s.io/structured-merge-diff/v4 v4.2.0 // indirect
66+
sigs.k8s.io/yaml v1.3.0 // indirect
1467
)

0 commit comments

Comments
 (0)