Skip to content

Commit b7f470b

Browse files
authored
Merge pull request #1210 from kube-logging/depup2
Various dependency updates
2 parents 2c414dc + 208ba1b commit b7f470b

File tree

14 files changed

+536
-138
lines changed

14 files changed

+536
-138
lines changed

.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v3
1717
with:
18-
go-version: '1.19'
18+
go-version: '1.20'
1919

2020
- name: Checkout code
2121
uses: actions/checkout@v3
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Go
3535
uses: actions/setup-go@v3
3636
with:
37-
go-version: '1.19'
37+
go-version: '1.20'
3838

3939
- name: Checkout code
4040
uses: actions/checkout@v3
@@ -52,7 +52,7 @@ jobs:
5252
- name: Set up Go
5353
uses: actions/setup-go@v3
5454
with:
55-
go-version: '1.19'
55+
go-version: '1.20'
5656

5757
- name: Checkout code
5858
uses: actions/checkout@v3

.github/workflows/e2e.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
env:
10-
GO_VERSION: '1.19.3'
10+
GO_VERSION: '1.20'
1111
KIND_VERSION: 'v0.17.0'
1212
KIND_NODE_VERSION: 'v1.23.13@sha256:ef453bb7c79f0e3caba88d2067d4196f427794086a7d0df8df4f019d5e336b61'
1313
KUBECTL_VERSION: 'v1.24.1'

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ENVTEST_K8S_VERSION := 1.24.1
3636
ENVTEST_BINARY_ASSETS := ${ENVTEST_BIN_DIR}/bin
3737

3838
GOLANGCI_LINT := ${BIN}/golangci-lint
39-
GOLANGCI_LINT_VERSION := v1.47.2
39+
GOLANGCI_LINT_VERSION := v1.51.2
4040

4141
KIND := ${BIN}/kind
4242
KIND_VERSION := v0.11.1
@@ -45,7 +45,7 @@ KUBEBUILDER := ${BIN}/kubebuilder
4545
KUBEBUILDER_VERSION = v3.1.0
4646

4747
LICENSEI := ${BIN}/licensei
48-
LICENSEI_VERSION = v0.5.0
48+
LICENSEI_VERSION = v0.7.0
4949

5050
SETUP_ENVTEST := ${BIN}/setup-envtest
5151

controllers/logging/logging_controller.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ func getResourceStateMetrics(logger logr.Logger) (stateMetrics *prometheus.Gauge
225225

226226
func getOrRegisterGaugeVec(reg prometheus.Registerer, gv *prometheus.GaugeVec) (*prometheus.GaugeVec, error) {
227227
if err := reg.Register(gv); err != nil {
228-
if err, ok := err.(prometheus.AlreadyRegisteredError); ok {
229-
if gv, ok := err.ExistingCollector.(*prometheus.GaugeVec); ok {
228+
if suberr, ok := err.(prometheus.AlreadyRegisteredError); ok {
229+
if gv, ok := suberr.ExistingCollector.(*prometheus.GaugeVec); ok {
230230
return gv, nil
231231
} else {
232-
return nil, errors.WrapIfWithDetails(err, "already registered metric name with different type ", "metric", gv)
232+
return nil, errors.WrapIfWithDetails(suberr, "already registered metric name with different type ", "metric", gv)
233233
}
234234
} else {
235235
return nil, err
@@ -342,7 +342,7 @@ func SetupLoggingWithManager(mgr ctrl.Manager, logger logr.Logger) *ctrl.Builder
342342
case *loggingv1beta1.SyslogNGFlow:
343343
return reconcileRequestsForLoggingRef(loggingList.Items, o.Spec.LoggingRef)
344344
case *corev1.Secret:
345-
r := regexp.MustCompile("logging.banzaicloud.io/(.*)")
345+
r := regexp.MustCompile(`^logging\.banzaicloud\.io/(.*)`)
346346
var requestList []reconcile.Request
347347
for key := range o.Annotations {
348348
if result := r.FindStringSubmatch(key); len(result) > 1 {

e2e/go.mod

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kube-logging/logging-operator/e2e
22

3-
go 1.18
3+
go 1.20
44

55
require (
66
emperror.dev/errors v0.8.1
@@ -51,21 +51,21 @@ require (
5151
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5252
github.com/pkg/errors v0.9.1 // indirect
5353
github.com/pmezard/go-difflib v1.0.0 // indirect
54-
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.62.0 // indirect
54+
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.63.0 // indirect
5555
github.com/prometheus/client_golang v1.14.0 // indirect
5656
github.com/prometheus/client_model v0.3.0 // indirect
5757
github.com/prometheus/common v0.37.0 // indirect
5858
github.com/prometheus/procfs v0.8.0 // indirect
59-
github.com/spf13/cast v1.4.1 // indirect
59+
github.com/spf13/cast v1.5.0 // indirect
6060
github.com/spf13/pflag v1.0.5 // indirect
6161
github.com/wayneashleyberry/terminal-dimensions v1.0.0 // indirect
6262
go.uber.org/atomic v1.7.0 // indirect
6363
go.uber.org/multierr v1.6.0 // indirect
64-
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 // indirect
64+
golang.org/x/net v0.7.0 // indirect
6565
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
66-
golang.org/x/sys v0.3.0 // indirect
67-
golang.org/x/term v0.3.0 // indirect
68-
golang.org/x/text v0.5.0 // indirect
66+
golang.org/x/sys v0.5.0 // indirect
67+
golang.org/x/term v0.5.0 // indirect
68+
golang.org/x/text v0.7.0 // indirect
6969
golang.org/x/time v0.3.0 // indirect
7070
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
7171
google.golang.org/appengine v1.6.7 // indirect
@@ -76,14 +76,12 @@ require (
7676
k8s.io/component-base v0.26.1 // indirect
7777
k8s.io/klog/v2 v2.90.0 // indirect
7878
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
79-
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
80-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
79+
k8s.io/utils v0.0.0-20230202215443-34013725500c // indirect
80+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
8181
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
8282
sigs.k8s.io/yaml v1.3.0 // indirect
8383
)
8484

8585
replace github.com/kube-logging/logging-operator/pkg/sdk => ../pkg/sdk
8686

87-
replace github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.11.0
88-
8987
replace github.com/kube-logging/logging-operator/pkg/sdk/logging/model/syslogng/config => ../pkg/sdk/logging/model/syslogng/config

0 commit comments

Comments
 (0)