Skip to content

Commit e0fd947

Browse files
security fix for x/net and cloudflare/circl
Signed-off-by: Kostis Kapelonis <[email protected]> Security fix requires go version 1.23 Signed-off-by: Kostis Kapelonis <[email protected]> build: also update golangci to new major version Signed-off-by: Kostis Kapelonis <[email protected]> build: also update golangci to new major version Signed-off-by: Kostis Kapelonis <[email protected]> build: also update golangci to new major version Signed-off-by: Kostis Kapelonis <[email protected]> chore: new linter checks Signed-off-by: Kostis Kapelonis <[email protected]> chore: new linter checks Signed-off-by: Kostis Kapelonis <[email protected]> updated version Signed-off-by: Kostis Kapelonis <[email protected]>
1 parent 0f57278 commit e0fd947

File tree

83 files changed

+264
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+264
-170
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Set up Go
5151
uses: actions/[email protected]
5252
with:
53-
go-version: '1.21'
53+
go-version: '1.23'
5454
- uses: actions/checkout@v4
5555
- name: Setup k3s
5656
env:

.github/workflows/gh-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go
2727
uses: actions/[email protected]
2828
with:
29-
go-version: '1.21'
29+
go-version: '1.23'
3030
- name: build
3131
run: |
3232
pip install mkdocs mkdocs_material

.github/workflows/go.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- "master"
1212
env:
1313
# Golang version to use across CI steps
14-
GOLANG_VERSION: '1.21'
14+
GOLANG_VERSION: '1.23'
1515

1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
@@ -35,22 +35,22 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Set up Go
38-
uses: actions/setup-go@v5.0.0
38+
uses: actions/setup-go@v5.4.0
3939
with:
4040
go-version: ${{ env.GOLANG_VERSION }}
4141
- name: Checkout code
4242
uses: actions/checkout@v4
4343
- name: Run golangci-lint
44-
uses: golangci/golangci-lint-action@v4
44+
uses: golangci/golangci-lint-action@v8
4545
with:
46-
version: v1.57.2
46+
version: v2.1.6
4747
args: --timeout 6m
4848
build:
4949
name: Build
5050
runs-on: ubuntu-latest
5151
steps:
5252
- name: Set up Go
53-
uses: actions/setup-go@v5.0.0
53+
uses: actions/setup-go@v5.4.0
5454
with:
5555
go-version: ${{ env.GOLANG_VERSION }}
5656
id: go
@@ -102,7 +102,7 @@ jobs:
102102
- name: Checkout code
103103
uses: actions/checkout@v4
104104
- name: Setup Golang
105-
uses: actions/setup-go@v5.0.0
105+
uses: actions/setup-go@v5.4.0
106106
with:
107107
go-version: ${{ env.GOLANG_VERSION }}
108108
# k8s codegen generates files into GOPATH location instead of the GitHub git checkout location

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: Setup Golang
128128
uses: actions/setup-go@v4
129129
with:
130-
go-version: 1.21
130+
go-version: 1.23
131131

132132
- name: Generate release artifacts
133133
run: |

.golangci.yml

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
1+
version: "2"
12
run:
2-
deadline: 1m
3-
skip-files:
4-
- ".*\\.pb\\.go"
5-
skip-dirs:
6-
- pkg/client
73
modules-download-mode: readonly
8-
linter-settings:
9-
goimports:
10-
local-prefixes: github.com/argoproj/argo-rollouts
4+
timeout: 10m
115
linters:
6+
default: none
127
enable:
13-
- vet
14-
- gofmt
15-
- goimports
16-
- unused
8+
- govet
179
- ineffassign
18-
- unconvert
1910
- misspell
20-
disable-all: true
11+
- unconvert
12+
- unused
13+
exclusions:
14+
generated: lax
15+
presets:
16+
- comments
17+
- common-false-positives
18+
- legacy
19+
- std-error-handling
20+
paths:
21+
- .*\.pb\.go
22+
- pkg/client
23+
- third_party$
24+
- builtin$
25+
- examples$
26+
formatters:
27+
enable:
28+
- gofmt
29+
- goimports
30+
settings:
31+
goimports:
32+
local-prefixes:
33+
- github.com/argoproj/argo-rollouts
34+
exclusions:
35+
generated: lax
36+
paths:
37+
- .*\.pb\.go
38+
- pkg/client
39+
- third_party$
40+
- builtin$
41+
- examples$

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Initial stage which pulls prepares build dependencies and CLI tooling we need for our final image
44
# Also used as the image in CI jobs so needs all dependencies
55
####################################################################################################
6-
FROM --platform=$BUILDPLATFORM golang:1.21 as builder
6+
FROM --platform=$BUILDPLATFORM golang:1.23 as builder
77

88
RUN apt-get update && apt-get install -y \
99
wget \
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \
1212
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1313

1414
# Install golangci-lint
15-
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2 && \
15+
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6 && \
1616
golangci-lint linters
1717

1818
COPY .golangci.yml ${GOPATH}/src/dummy/.golangci.yml
@@ -40,7 +40,7 @@ RUN NODE_ENV='production' yarn build
4040
####################################################################################################
4141
# Rollout Controller Build stage which performs the actual build of argo-rollouts binaries
4242
####################################################################################################
43-
FROM --platform=$BUILDPLATFORM golang:1.21 as argo-rollouts-build
43+
FROM --platform=$BUILDPLATFORM golang:1.23 as argo-rollouts-build
4444

4545
WORKDIR /go/src/github.com/argoproj/argo-rollouts
4646

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.7.2-CR-29629
1+
v1.7.2-OSS-697

analysis/controller.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import (
55
"sync"
66
"time"
77

8-
"github.com/argoproj/argo-rollouts/metric"
9-
jobProvider "github.com/argoproj/argo-rollouts/metricproviders/job"
108
"github.com/aws/smithy-go/ptr"
119
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1210
"k8s.io/apimachinery/pkg/types"
1311

12+
"github.com/argoproj/argo-rollouts/metric"
13+
jobProvider "github.com/argoproj/argo-rollouts/metricproviders/job"
14+
1415
unstructuredutil "github.com/argoproj/argo-rollouts/utils/unstructured"
1516

1617
log "github.com/sirupsen/logrus"

cmd/kubectl-argo-rollouts/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ package main
33
import (
44
"os"
55

6-
logutil "github.com/argoproj/argo-rollouts/utils/log"
76
log "github.com/sirupsen/logrus"
87
"k8s.io/cli-runtime/pkg/genericclioptions"
98
_ "k8s.io/client-go/plugin/pkg/client/auth/azure"
109
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
1110
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
1211
"k8s.io/klog/v2"
1312

13+
logutil "github.com/argoproj/argo-rollouts/utils/log"
14+
1415
"github.com/argoproj/argo-rollouts/pkg/kubectl-argo-rollouts/cmd"
1516
"github.com/argoproj/argo-rollouts/pkg/kubectl-argo-rollouts/options"
1617
)

cmd/rollouts-controller/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/argoproj/argo-rollouts/metricproviders"
10-
"github.com/argoproj/argo-rollouts/utils/record"
119
"github.com/argoproj/pkg/kubeclientmetrics"
1210
smiclientset "github.com/servicemeshinterface/smi-sdk-go/pkg/gen/client/split/clientset/versioned"
1311
log "github.com/sirupsen/logrus"
@@ -23,6 +21,9 @@ import (
2321
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
2422
"k8s.io/client-go/tools/clientcmd"
2523

24+
"github.com/argoproj/argo-rollouts/metricproviders"
25+
"github.com/argoproj/argo-rollouts/utils/record"
26+
2627
"github.com/argoproj/argo-rollouts/controller"
2728
"github.com/argoproj/argo-rollouts/controller/metrics"
2829
jobprovider "github.com/argoproj/argo-rollouts/metricproviders/job"

0 commit comments

Comments
 (0)