Skip to content

Commit 3609b35

Browse files
committed
Merge branch 'master' into feature/bump-go
2 parents 510856d + 69a2b4c commit 3609b35

10 files changed

+122
-142
lines changed

.github/workflows/build.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
go-version-file: 'go.mod'
2525

2626
- name: golangci-lint
27-
uses: reviewdog/action-golangci-lint@v2
27+
uses: golangci/golangci-lint[email protected]
2828
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
args: --timeout=10m
3030

3131
- name: Test and build image
3232
run: |
3333
make test docker-build
3434
35-
- uses: codecov/codecov-action@v3
35+
- uses: codecov/codecov-action@v4
3636

3737
- name: Push to GitHub Packages
3838
run: |
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
k8s: [ "v1.26.6", "v1.28.0" ]
47+
k8s: [ "v1.26.13", "v1.29.1" ]
4848
runs-on: ubuntu-latest
4949
if: "!contains(github.event.head_commit.message, 'skip ci')"
5050
steps:
@@ -58,7 +58,7 @@ jobs:
5858
go-version-file: 'go.mod'
5959

6060
- name: Create k8s Kind Cluster
61-
uses: helm/kind-action@v1.8.0
61+
uses: helm/kind-action@v1.9.0
6262
with:
6363
node_image: kindest/node:${{ matrix.k8s }}
6464

.github/workflows/release-drafter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
# Drafts your next Release notes as Pull Requests are merged into "master"
16-
- uses: release-drafter/release-drafter@v5
16+
- uses: release-drafter/release-drafter@v6
1717
env:
1818
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

controllers/githubactionrunner_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
garov1alpha1 "github.com/evryfs/github-actions-runner-operator/api/v1alpha1"
3030
"github.com/evryfs/github-actions-runner-operator/controllers/githubapi"
3131
"github.com/go-logr/logr"
32-
"github.com/google/go-github/v53/github"
32+
"github.com/google/go-github/v58/github"
3333
"github.com/redhat-cop/operator-utils/pkg/util"
3434
"github.com/thoas/go-funk"
3535
corev1 "k8s.io/api/core/v1"

controllers/githubactionrunner_controller_test.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package controllers
22

33
import (
44
"context"
5+
"k8s.io/utils/ptr"
56
"testing"
67

78
"github.com/evryfs/github-actions-runner-operator/api/v1alpha1"
8-
"github.com/google/go-github/v53/github"
9+
"github.com/google/go-github/v58/github"
910
"github.com/gophercloud/gophercloud/testhelper"
1011
"github.com/redhat-cop/operator-utils/pkg/util"
1112
"github.com/stretchr/testify/mock"
@@ -15,7 +16,6 @@ import (
1516
"k8s.io/apimachinery/pkg/types"
1617
"k8s.io/client-go/kubernetes/scheme"
1718
"k8s.io/client-go/tools/record"
18-
"k8s.io/utils/pointer"
1919
"sigs.k8s.io/controller-runtime/pkg/client/fake"
2020
"sigs.k8s.io/controller-runtime/pkg/log/zap"
2121
"sigs.k8s.io/controller-runtime/pkg/reconcile"
@@ -144,17 +144,17 @@ func TestGithubactionRunnerController(t *testing.T) {
144144

145145
// then scale down
146146
mockResult = append(mockResult, &github.Runner{
147-
ID: pointer.Int64(1),
148-
Name: pointer.String(podList.Items[0].Name),
149-
OS: pointer.String("Linux"),
150-
Status: pointer.String("online"),
151-
Busy: pointer.Bool(false),
147+
ID: ptr.To[int64](1),
148+
Name: ptr.To(podList.Items[0].Name),
149+
OS: ptr.To("Linux"),
150+
Status: ptr.To("online"),
151+
Busy: ptr.To(false),
152152
}, &github.Runner{
153-
ID: pointer.Int64(2),
154-
Name: pointer.String(podList.Items[1].Name),
155-
OS: pointer.String("Linux"),
156-
Status: pointer.String("online"),
157-
Busy: pointer.Bool(false),
153+
ID: ptr.To[int64](2),
154+
Name: ptr.To(podList.Items[1].Name),
155+
OS: ptr.To("Linux"),
156+
Status: ptr.To("online"),
157+
Busy: ptr.To(false),
158158
})
159159
mockAPI.On("GetRunners", org, repo, token).Return(mockResult, nil).Once()
160160

controllers/githubapi/runnerapi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"time"
66

77
prommetrics "github.com/deathowl/go-metrics-prometheus"
8-
"github.com/google/go-github/v53/github"
8+
"github.com/google/go-github/v58/github"
99
"github.com/gregjones/httpcache"
1010
"github.com/palantir/go-githubapp/githubapp"
1111
gometrics "github.com/rcrowley/go-metrics"

controllers/podrunner_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"time"
77

88
"github.com/evryfs/github-actions-runner-operator/api/v1alpha1"
9-
"github.com/google/go-github/v53/github"
9+
"github.com/google/go-github/v58/github"
1010
"github.com/redhat-cop/operator-utils/pkg/util"
1111
"github.com/thoas/go-funk"
1212
corev1 "k8s.io/api/core/v1"

controllers/podrunner_types_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package controllers
22

33
import (
4+
"k8s.io/utils/ptr"
45
"testing"
56
"time"
67

78
"github.com/evryfs/github-actions-runner-operator/api/v1alpha1"
8-
"github.com/google/go-github/v53/github"
9+
"github.com/google/go-github/v58/github"
910
"github.com/stretchr/testify/assert"
1011
v1 "k8s.io/api/core/v1"
1112
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
12-
"k8s.io/utils/pointer"
1313
)
1414

1515
var podList = v1.PodList{
@@ -40,15 +40,15 @@ var podList = v1.PodList{
4040
var runners = []*github.Runner{
4141
{
4242
ID: nil,
43-
Name: pointer.String("name1"),
43+
Name: ptr.To("name1"),
4444
OS: nil,
4545
Status: nil,
4646
Busy: nil,
4747
Labels: nil,
4848
},
4949
{
5050
ID: nil,
51-
Name: pointer.String("name2"),
51+
Name: ptr.To("name2"),
5252
OS: nil,
5353
Status: nil,
5454
Busy: nil,

go.mod

+29-28
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ go 1.22
55
require (
66
github.com/caitlinelfring/go-env-default v1.1.0
77
github.com/deathowl/go-metrics-prometheus v0.0.0-20221009205350-f2a1482ba35b
8-
github.com/go-logr/logr v1.2.4
9-
github.com/google/go-github/v53 v53.2.0
10-
github.com/gophercloud/gophercloud v1.7.0
8+
github.com/go-logr/logr v1.4.1
9+
github.com/google/go-github/v58 v58.0.0
10+
github.com/gophercloud/gophercloud v1.9.0
1111
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
1212
github.com/onsi/ginkgo v1.16.5
13-
github.com/onsi/gomega v1.28.0
14-
github.com/palantir/go-githubapp v0.18.0
13+
github.com/onsi/gomega v1.31.1
14+
github.com/palantir/go-githubapp v0.22.0
1515
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
16-
github.com/redhat-cop/operator-utils v1.3.7
16+
github.com/redhat-cop/operator-utils v1.3.8
1717
github.com/stretchr/testify v1.8.4
1818
github.com/thoas/go-funk v0.9.3
1919
go.uber.org/zap v1.26.0
20-
k8s.io/api v0.28.2
21-
k8s.io/apimachinery v0.28.2
22-
k8s.io/client-go v0.28.2
23-
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
20+
k8s.io/api v0.29.1
21+
k8s.io/apimachinery v0.29.1
22+
k8s.io/client-go v0.29.1
23+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
2424
sigs.k8s.io/controller-runtime v0.15.2
2525
)
2626

@@ -31,11 +31,11 @@ require (
3131
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
3232
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
3333
github.com/beorn7/perks v1.0.1 // indirect
34-
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 // indirect
34+
github.com/bradleyfalzon/ghinstallation/v2 v2.9.0 // indirect
3535
github.com/cespare/xxhash/v2 v2.2.0 // indirect
36-
github.com/cloudflare/circl v1.3.3 // indirect
36+
github.com/cloudflare/circl v1.3.7 // indirect
3737
github.com/davecgh/go-spew v1.1.1 // indirect
38-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
38+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
3939
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
4040
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
4141
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
@@ -50,7 +50,8 @@ require (
5050
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
5151
github.com/golang/protobuf v1.5.3 // indirect
5252
github.com/google/gnostic-models v0.6.8 // indirect
53-
github.com/google/go-cmp v0.5.9 // indirect
53+
github.com/google/go-cmp v0.6.0 // indirect
54+
github.com/google/go-github/v57 v57.0.0 // indirect
5455
github.com/google/go-querystring v1.1.0 // indirect
5556
github.com/google/gofuzz v1.2.0 // indirect
5657
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
@@ -61,8 +62,8 @@ require (
6162
github.com/josharian/intern v1.0.0 // indirect
6263
github.com/json-iterator/go v1.1.12 // indirect
6364
github.com/mailru/easyjson v0.7.7 // indirect
64-
github.com/mattn/go-colorable v0.1.12 // indirect
65-
github.com/mattn/go-isatty v0.0.14 // indirect
65+
github.com/mattn/go-colorable v0.1.13 // indirect
66+
github.com/mattn/go-isatty v0.0.19 // indirect
6667
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
6768
github.com/mitchellh/copystructure v1.0.0 // indirect
6869
github.com/mitchellh/reflectwalk v1.0.0 // indirect
@@ -78,40 +79,40 @@ require (
7879
github.com/prometheus/client_model v0.4.0 // indirect
7980
github.com/prometheus/common v0.44.0 // indirect
8081
github.com/prometheus/procfs v0.10.1 // indirect
81-
github.com/rs/zerolog v1.29.1 // indirect
82+
github.com/rs/zerolog v1.31.0 // indirect
8283
github.com/shopspring/decimal v1.2.0 // indirect
83-
github.com/shurcooL/githubv4 v0.0.0-20230424031643-6cea62ecd5a9 // indirect
84+
github.com/shurcooL/githubv4 v0.0.0-20231126234147-1cffa1f02456 // indirect
8485
github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f // indirect
8586
github.com/spf13/cast v1.3.1 // indirect
8687
github.com/spf13/pflag v1.0.5 // indirect
8788
github.com/stretchr/objx v0.5.0 // indirect
8889
github.com/xlab/treeprint v1.2.0 // indirect
8990
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
9091
go.uber.org/multierr v1.11.0 // indirect
91-
golang.org/x/crypto v0.14.0 // indirect
92-
golang.org/x/net v0.17.0 // indirect
93-
golang.org/x/oauth2 v0.9.0 // indirect
92+
golang.org/x/crypto v0.18.0 // indirect
93+
golang.org/x/net v0.20.0 // indirect
94+
golang.org/x/oauth2 v0.16.0 // indirect
9495
golang.org/x/sync v0.2.0 // indirect
95-
golang.org/x/sys v0.13.0 // indirect
96-
golang.org/x/term v0.13.0 // indirect
97-
golang.org/x/text v0.13.0 // indirect
96+
golang.org/x/sys v0.16.0 // indirect
97+
golang.org/x/term v0.16.0 // indirect
98+
golang.org/x/text v0.14.0 // indirect
9899
golang.org/x/time v0.3.0 // indirect
99100
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
100101
google.golang.org/appengine v1.6.7 // indirect
101-
google.golang.org/protobuf v1.30.0 // indirect
102+
google.golang.org/protobuf v1.31.0 // indirect
102103
gopkg.in/inf.v0 v0.9.1 // indirect
103104
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
104105
gopkg.in/yaml.v2 v2.4.0 // indirect
105106
gopkg.in/yaml.v3 v3.0.1 // indirect
106107
k8s.io/apiextensions-apiserver v0.27.2 // indirect
107108
k8s.io/cli-runtime v0.28.2 // indirect
108109
k8s.io/component-base v0.28.2 // indirect
109-
k8s.io/klog/v2 v2.100.1 // indirect
110-
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
110+
k8s.io/klog/v2 v2.110.1 // indirect
111+
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
111112
k8s.io/kubectl v0.28.2 // indirect
112113
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
113114
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
114115
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect
115-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
116+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
116117
sigs.k8s.io/yaml v1.3.0 // indirect
117118
)

0 commit comments

Comments
 (0)