Skip to content

Commit 5fd1b24

Browse files
authored
Merge pull request stakater#1042 from stakater/upgrade-to-go-1.25
Upgradde to go 1.25.3 (latest)
2 parents 6e13950 + 57fb62f commit 5fd1b24

18 files changed

Lines changed: 129 additions & 126 deletions

.github/md_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
{
44
"pattern": "^(?!http).+"
55
}
6-
]
6+
],
7+
"retryOn429": true
78
}

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ jobs:
8080
make install
8181
8282
- name: Run golangci-lint
83-
uses: golangci/golangci-lint-action@v6
84-
with:
85-
version: latest
86-
only-new-issues: false
87-
args: --timeout 10m
83+
run: make lint
8884

8985
- name: Helm Lint
9086
run: |

.github/workflows/push-pr-image.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ jobs:
4747
make install
4848
4949
- name: Run golangci-lint
50-
uses: golangci/golangci-lint-action@v6
51-
with:
52-
version: latest
53-
only-new-issues: false
54-
args: --timeout 10m
50+
run: make lint
5551

5652
- name: Generate Tags
5753
id: generate_tag

.github/workflows/push.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ jobs:
5353
make install
5454
5555
- name: Run golangci-lint
56-
uses: golangci/golangci-lint-action@v6
57-
with:
58-
version: latest
59-
only-new-issues: false
60-
args: --timeout 10m
56+
run: make lint
6157

6258
- name: Install kubectl
6359
run: |

.github/workflows/release.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ jobs:
4848
make install
4949
5050
- name: Run golangci-lint
51-
uses: golangci/golangci-lint-action@v6
52-
with:
53-
version: latest
54-
only-new-issues: false
55-
args: --timeout 10m
51+
run: make lint
5652

5753
- name: Install kubectl
5854
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG BUILDER_IMAGE
22
ARG BASE_IMAGE
33

44
# Build the manager binary
5-
FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE:-golang:1.24.9} AS builder
5+
FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE:-golang:1.25.3} AS builder
66

77
ARG TARGETOS
88
ARG TARGETARCH

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ YQ ?= $(LOCALBIN)/yq
4141
KUSTOMIZE_VERSION ?= v5.3.0
4242
CONTROLLER_TOOLS_VERSION ?= v0.14.0
4343
ENVTEST_VERSION ?= release-0.17
44-
GOLANGCI_LINT_VERSION ?= v1.57.2
44+
GOLANGCI_LINT_VERSION ?= v2.6.1
4545

4646
YQ_VERSION ?= v4.27.5
4747
YQ_DOWNLOAD_URL = "https://github.com/mikefarah/yq/releases/download/$(YQ_VERSION)/yq_$(OS)_$(ARCH)"
@@ -75,7 +75,7 @@ $(ENVTEST): $(LOCALBIN)
7575
.PHONY: golangci-lint
7676
golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
7777
$(GOLANGCI_LINT): $(LOCALBIN)
78-
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,${GOLANGCI_LINT_VERSION})
78+
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/v2/cmd/golangci-lint,${GOLANGCI_LINT_VERSION})
7979

8080
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
8181
# $1 - target path with name of binary (ideally with version)
@@ -102,6 +102,9 @@ run:
102102
build:
103103
"$(GOCMD)" build ${GOFLAGS} ${LDFLAGS} -o "${BINARY}"
104104

105+
lint: golangci-lint ## Run golangci-lint on the codebase
106+
$(GOLANGCI_LINT) run ./...
107+
105108
build-image:
106109
docker buildx build \
107110
--platform ${OS}/${ARCH} \

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,14 @@ _Repository GitHub releases_: As requested by the community in [issue 685](https
433433

434434
To make a GitHub release:
435435

436-
1. Code owners create a release branch `release-vX.Y.Z`
437-
1. Code owners run a dispatch mode workflow to automatically generate version and manifests on the release branch
436+
1. Code owners create a release branch `release-vX.Y.Z` from `master`
437+
1. Code owners run [Init Release](https://github.com/stakater/Reloader/actions/workflows/init-branch-release.yaml) workflow to automatically generate version and manifests on the release branch
438+
- Set the `TARGET_BRANCH` parameter to release branch i.e. `release-vX.Y.Z`
439+
- Set the `TARGET_VERSION` to release version without 'v' i.e. `X.Y.Z`
438440
1. A PR is created to bump the image version on the release branch, example: [PR-798](https://github.com/stakater/Reloader/pull/798)
439441
1. Code owners create a GitHub release with tag `vX.Y.Z` and target branch `release-vX.Y.Z`, which triggers creation of images
440-
1. Code owners create a PR with `release/helm-chart` label to update the Helm chart version, example: [PR-846](https://github.com/stakater/Reloader/pull/846)
442+
1. Code owners create another branch from `master` and bump the helm chart version as well as Reloader image version.
443+
- Code owners create a PR with `release/helm-chart` label, example: [PR-846](https://github.com/stakater/Reloader/pull/846)
441444

442445
_Repository git tagging_: Push to the main branch will create a merge-image and merge-tag named `merge-${{ github.event.number }}`, for example `merge-800` when pull request number 800 is merged.
443446

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/stakater/Reloader
22

3-
go 1.24.9
3+
go 1.25.3
44

55
require (
66
github.com/argoproj/argo-rollouts v1.8.3

go.sum

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
github.com/argoproj/argo-rollouts v1.8.2 h1:DBvkYvFTEH/zJ9MxJerqz/NMWEgZcHY5vxztyCBS5ak=
2-
github.com/argoproj/argo-rollouts v1.8.2/go.mod h1:xZIw+dg+B4IqMv5fNPenIBUiPb9xljL2st1xxkjhaC0=
31
github.com/argoproj/argo-rollouts v1.8.3 h1:blbtQva4IK9r6gFh+dWkCrLnFdPOWiv9ubQYu36qeaA=
42
github.com/argoproj/argo-rollouts v1.8.3/go.mod h1:kCAUvIfMGfOyVf3lvQbBt0nqQn4Pd+zB5/YwKv+UBa8=
53
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@@ -106,12 +104,8 @@ github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N
106104
github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=
107105
github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg=
108106
github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM=
109-
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
110-
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
111107
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
112108
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
113-
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
114-
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
115109
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
116110
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
117111
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

0 commit comments

Comments
 (0)