Skip to content

Commit e3fa692

Browse files
authored
Merge pull request #762 from fluxcd/update-components
Update Flux to v2.6.1
2 parents 2256f4a + 79e0667 commit e3fa692

File tree

8 files changed

+49
-38
lines changed

8 files changed

+49
-38
lines changed

.golangci.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
allow-parallel-runners: true
4-
5-
issues:
6-
# don't skip warning about doc comments
7-
# don't exclude the default set of lint
8-
exclude-use-default: false
9-
# restore some of the defaults
10-
# (fill in the rest as needed)
11-
exclude-rules:
12-
- path: "api/*"
13-
linters:
14-
- lll
15-
- path: "internal/*"
16-
linters:
17-
- dupl
18-
- lll
19-
exclude-dirs:
20-
- "cmd/cli"
21-
linters-settings:
22-
gocyclo:
23-
min-complexity: 40
244
linters:
25-
disable-all: true
5+
default: none
266
enable:
277
- dupl
288
- errcheck
299
- ginkgolinter
3010
- goconst
3111
- gocyclo
32-
- gofmt
33-
- goimports
34-
- gosimple
3512
- govet
3613
- ineffassign
3714
- lll
3815
- misspell
3916
- nakedret
4017
- prealloc
4118
- staticcheck
42-
- typecheck
4319
- unconvert
4420
- unparam
4521
- unused
22+
settings:
23+
gocyclo:
24+
min-complexity: 40
25+
exclusions:
26+
generated: lax
27+
rules:
28+
- linters:
29+
- lll
30+
path: api/*
31+
- linters:
32+
- dupl
33+
- lll
34+
path: internal/*
35+
paths:
36+
- cmd/cli
37+
- third_party$
38+
- builtin$
39+
- examples$
40+
formatters:
41+
enable:
42+
- gofmt
43+
- goimports
44+
exclusions:
45+
generated: lax
46+
paths:
47+
- cmd/cli
48+
- third_party$
49+
- builtin$
50+
- examples$

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 1.6.1
6+
7+
**Release date:** 2025-06-02
8+
9+
This release includes flux2 [v2.6.1](https://github.com/fluxcd/flux2/releases/tag/v2.6.1).
10+
511
## 1.6.0
612

7-
**Release date:** 2025-02-29
13+
**Release date:** 2025-05-29
814

915
This release includes flux2 [v2.6.0](https://github.com/fluxcd/flux2/releases/tag/v2.6.0).
1016

docs/resources/bootstrap_git.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following examples are available to help you use the provider:
4949
- `secret_name` (String) Name of the secret the sync credentials can be found in or stored to. Defaults to `flux-system`.
5050
- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))
5151
- `toleration_keys` (Set of String) List of toleration keys used to schedule the components pods onto nodes with matching taints.
52-
- `version` (String) Flux version. Defaults to `v2.6.0`. Has no effect when `embedded_manifests` is enabled.
52+
- `version` (String) Flux version. Defaults to `v2.6.1`. Has no effect when `embedded_manifests` is enabled.
5353
- `watch_all_namespaces` (Boolean) If true watch for custom resources in all namespaces. Defaults to `true`.
5454

5555
### Read-Only

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ require (
1717
github.com/docker/docker v27.5.1+incompatible
1818
github.com/docker/go-connections v0.5.0
1919
github.com/fluxcd/cli-utils v0.36.0-flux.13
20-
github.com/fluxcd/flux2/v2 v2.6.0
20+
github.com/fluxcd/flux2/v2 v2.6.1
2121
github.com/fluxcd/helm-controller/api v1.3.0
2222
github.com/fluxcd/image-automation-controller/api v0.41.0
23-
github.com/fluxcd/image-reflector-controller/api v0.35.0
23+
github.com/fluxcd/image-reflector-controller/api v0.35.1
2424
github.com/fluxcd/kustomize-controller/api v1.6.0
2525
github.com/fluxcd/notification-controller/api v1.6.0
2626
github.com/fluxcd/pkg/apis/meta v1.12.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2
9999
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
100100
github.com/fluxcd/cli-utils v0.36.0-flux.13 h1:2X5yjz/rk9mg7+bMFBDZKGKzeZpAmY2s6iwbNZz7OzM=
101101
github.com/fluxcd/cli-utils v0.36.0-flux.13/go.mod h1:b2iSoIeDTtjfCB0IKtGgqlhhvWa1oux3e90CjOf81oA=
102-
github.com/fluxcd/flux2/v2 v2.6.0 h1:pOo9JCY4k2ZRuuMlQgu/4C8gLPtkzvccdo2QcQRurWc=
103-
github.com/fluxcd/flux2/v2 v2.6.0/go.mod h1:WaGrWX3bGVfzziibeItDjgZBFXx+XWRRHCaVMQJR9dc=
102+
github.com/fluxcd/flux2/v2 v2.6.1 h1:aBYwuMrfwMxlHwxO40L6g4tzC0gmjHesBCrpdQ7xeKU=
103+
github.com/fluxcd/flux2/v2 v2.6.1/go.mod h1:vKNyKQbn3Fuqm95nCJMxZyhiowB0f29g6iQt/Q4llf8=
104104
github.com/fluxcd/gitkit v0.6.0 h1:iNg5LTx6ePo+Pl0ZwqHTAkhbUHxGVSY3YCxCdw7VIFg=
105105
github.com/fluxcd/gitkit v0.6.0/go.mod h1:svOHuKi0fO9HoawdK4HfHAJJseZDHHjk7I3ihnCIqNo=
106106
github.com/fluxcd/go-git-providers v0.23.0 h1:7IkXIOzdMQZO98daCyFWORMMceA/eIDnq63qIXC04NM=
@@ -109,8 +109,8 @@ github.com/fluxcd/helm-controller/api v1.3.0 h1:PupXPuQbksmU0g2Lc6NjIYal2HJGL+6x
109109
github.com/fluxcd/helm-controller/api v1.3.0/go.mod h1:4b8PfdH0e/9Pfol2ogdMYbQ1nLjcVu9gAv27cQzIPK4=
110110
github.com/fluxcd/image-automation-controller/api v0.41.0 h1:wItzHTo0w50NKaJ4wV6iXKbWo5vvjDpl6bY9NOK6Rs8=
111111
github.com/fluxcd/image-automation-controller/api v0.41.0/go.mod h1:u1L/gztaeJgwRQrPEx2DqE4mlYoAfSeKTWx/JLUxRbA=
112-
github.com/fluxcd/image-reflector-controller/api v0.35.0 h1:PYPqDmo8BOu3B2vtNkp/KIdGotYAN1zwVJ0+7wumhaE=
113-
github.com/fluxcd/image-reflector-controller/api v0.35.0/go.mod h1:mjpokoQhFs2RxfFjY4rHpn3ZAUvee8TiELyROFN4wiA=
112+
github.com/fluxcd/image-reflector-controller/api v0.35.1 h1:QpnLjPR4BMRQN2C+cL6NhjvsUCQoQS00Qq40DC85OtY=
113+
github.com/fluxcd/image-reflector-controller/api v0.35.1/go.mod h1:mjpokoQhFs2RxfFjY4rHpn3ZAUvee8TiELyROFN4wiA=
114114
github.com/fluxcd/kustomize-controller/api v1.6.0 h1:8p230vpJy7giisoBNuI3CX99O+XKKVLLxXuJmv3sOHQ=
115115
github.com/fluxcd/kustomize-controller/api v1.6.0/go.mod h1:b0i/KVz28tV8iuqlNHx7MW6ZtTcIbBELGLoKdaK+X8M=
116116
github.com/fluxcd/notification-controller/api v1.6.0 h1:t0k662zxnUZlnDvFrk4DBDl6iivFmJxbwuRdyhH9Ot4=

internal/provider/resource_bootstrap_git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ func (r bootstrapGitResource) Delete(ctx context.Context, req resource.DeleteReq
800800
}
801801
}
802802

803-
if !(data.DeleteGitManifests.IsNull() || data.DeleteGitManifests.ValueBool()) {
803+
if !(data.DeleteGitManifests.IsNull() || data.DeleteGitManifests.ValueBool()) { //nolint:all
804804
tflog.Debug(ctx, "Skipping git repository removal", map[string]interface{}{})
805805
return
806806
}
@@ -1238,7 +1238,7 @@ func isFluxReady(ctx context.Context, kubeClient client.Client, data bootstrapGi
12381238
}
12391239
if conditions.IsFalse(rootSync, meta.ReadyCondition) {
12401240
conditions.GetMessage(rootSync, meta.ReadyCondition)
1241-
return false, fmt.Errorf("Kustomization/%s: %s", ns, conditions.GetMessage(rootSync, meta.ReadyCondition))
1241+
return false, fmt.Errorf("Kustomization/%s: %s", ns, conditions.GetMessage(rootSync, meta.ReadyCondition)) //nolint:all
12421242
}
12431243

12441244
return true, nil

internal/provider/resource_bootstrap_git_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func setupEnvironment(t *testing.T) environment {
716716
f, err := os.OpenFile(hostAliases, os.O_CREATE|os.O_WRONLY|os.O_APPEND, os.ModePerm)
717717
require.NoError(t, err)
718718
defer func() { _ = f.Close() }()
719-
_, err = f.WriteString(fmt.Sprintf("%s localhost\n", giteaName))
719+
_, err = f.WriteString(fmt.Sprintf("%s localhost\n", giteaName)) //nolint:all
720720
require.NoError(t, err)
721721

722722
// Run Gitea server.

internal/utils/flux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ limitations under the License.
1616

1717
package utils
1818

19-
const DefaultFluxVersion string = "v2.6.0"
19+
const DefaultFluxVersion string = "v2.6.1"

0 commit comments

Comments
 (0)