Skip to content

Commit 112bb5c

Browse files
authored
Merge pull request #1448 from gianlucam76/release-1.2
(chore) prepare for release v1.2.0-beta.0
2 parents a32de02 + ebfc7c5 commit 112bb5c

24 files changed

+152
-96
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
99
"context": "${localWorkspaceFolder}",
1010
"args": {
11-
"GO_VERSION": "1.25.0",
11+
"GO_VERSION": "1.25.2",
1212
"KUBECTX_VERSION": "0.9.5",
1313
"SVELTOSCTL_VERSION": "0.53.0"
1414
}

.github/workflows/main.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2020
with:
21-
go-version: 1.25.0
21+
go-version: 1.25.2
2222
- name: Build
2323
run: make build
2424
- name: FMT
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Go
3838
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3939
with:
40-
go-version: 1.25.0
40+
go-version: 1.25.2
4141
- name: ut
4242
run: make test
4343
env:
@@ -50,7 +50,7 @@ jobs:
5050
- name: Set up Go
5151
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
5252
with:
53-
go-version: 1.25.0
53+
go-version: 1.25.2
5454
- name: Free Disk Space (Ubuntu)
5555
uses: jlumbroso/free-disk-space@main
5656
with:
@@ -78,7 +78,7 @@ jobs:
7878
- name: Set up Go
7979
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
8080
with:
81-
go-version: 1.25.0
81+
go-version: 1.25.2
8282
- name: Free Disk Space (Ubuntu)
8383
uses: jlumbroso/free-disk-space@main
8484
with:
@@ -106,7 +106,7 @@ jobs:
106106
- name: Set up Go
107107
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
108108
with:
109-
go-version: 1.25.0
109+
go-version: 1.25.2
110110
- name: Free Disk Space (Ubuntu)
111111
uses: jlumbroso/free-disk-space@main
112112
with:
@@ -134,7 +134,7 @@ jobs:
134134
- name: Set up Go
135135
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
136136
with:
137-
go-version: 1.25.0
137+
go-version: 1.25.2
138138
- name: Free Disk Space (Ubuntu)
139139
uses: jlumbroso/free-disk-space@main
140140
with:
@@ -162,7 +162,7 @@ jobs:
162162
- name: Set up Go
163163
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
164164
with:
165-
go-version: 1.25.0
165+
go-version: 1.25.2
166166
- name: Free Disk Space (Ubuntu)
167167
uses: jlumbroso/free-disk-space@main
168168
with:
@@ -190,7 +190,7 @@ jobs:
190190
- name: Set up Go
191191
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
192192
with:
193-
go-version: 1.25.0
193+
go-version: 1.25.2
194194
- name: Free Disk Space (Ubuntu)
195195
uses: jlumbroso/free-disk-space@main
196196
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.25.0 AS builder
2+
FROM golang:1.25.2 AS builder
33

44
ARG BUILDOS
55
ARG TARGETARCH

Dockerfile_WithGit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.25.0 AS builder
2+
FROM golang:1.25.2 AS builder
33

44
ARG BUILDOS
55
ARG TARGETARCH

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ OS ?= $(shell uname -s)
2727
OS := $(shell echo $(OS) | tr '[:upper:]' '[:lower:]')
2828
K8S_LATEST_VER ?= $(shell curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
2929
export CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
30-
TAG ?= v1.1.1
30+
TAG ?= v1.2.0-beta.0
3131

3232
.PHONY: all
3333
all: build
@@ -72,8 +72,8 @@ KIND := $(TOOLS_BIN_DIR)/kind
7272
KUBECTL := $(TOOLS_BIN_DIR)/kubectl
7373

7474
GOVULNCHECK_VERSION := "v1.1.4"
75-
GOLANGCI_LINT_VERSION := "v2.4.0"
76-
CLUSTERCTL_VERSION := "v1.11.0"
75+
GOLANGCI_LINT_VERSION := "v2.5.0"
76+
CLUSTERCTL_VERSION := "v1.11.2"
7777

7878
KUSTOMIZE_VER := v5.7.0
7979
KUSTOMIZE_BIN := kustomize

config/default/manager_auth_proxy_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- --shard-key=
1717
- --capi-onboard-annotation=
1818
- "--v=5"
19-
- "--version=v1.1.1"
19+
- "--version=v1.2.0-beta.0"
2020
- "--agent-in-mgmt-cluster=false"
2121
env:
2222
- name: GOMEMLIMIT

config/default/manager_image_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
spec:
99
containers:
1010
# Change the value of image field below to your controller image URL
11-
- image: docker.io/projectsveltos/addon-controller:v1.1.1
11+
- image: docker.io/projectsveltos/addon-controller:v1.2.0-beta.0
1212
name: controller

controllers/clustersummary_predicates.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"fmt"
2121
"reflect"
2222

23+
"github.com/fluxcd/pkg/apis/meta"
2324
sourcev1 "github.com/fluxcd/source-controller/api/v1"
2425
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
2526
"github.com/go-logr/logr"
@@ -308,7 +309,7 @@ func hasArtifactChanged(objNew, objOld client.Object) bool {
308309
return false
309310
}
310311

311-
func isArtifactSame(oldArtifact, newArtifact *sourcev1.Artifact) bool {
312+
func isArtifactSame(oldArtifact, newArtifact *meta.Artifact) bool {
312313
if oldArtifact == nil && newArtifact == nil {
313314
return true
314315
}

controllers/clustersummary_predicates_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
. "github.com/onsi/ginkgo/v2"
2424
. "github.com/onsi/gomega"
2525

26+
"github.com/fluxcd/pkg/apis/meta"
2627
sourcev1 "github.com/fluxcd/source-controller/api/v1"
2728
"github.com/go-logr/logr"
2829
corev1 "k8s.io/api/core/v1"
@@ -298,7 +299,7 @@ var _ = Describe("ClusterProfile Predicates: FluxSourcePredicates", func() {
298299
It("Update reprocesses when artifact has changed", func() {
299300
sourcePredicate := controllers.FluxGitRepositoryPredicate{Logger: logger}
300301

301-
gitRepository.Status.Artifact = &sourcev1.Artifact{
302+
gitRepository.Status.Artifact = &meta.Artifact{
302303
Revision: randomString(),
303304
}
304305

@@ -318,7 +319,7 @@ var _ = Describe("ClusterProfile Predicates: FluxSourcePredicates", func() {
318319
It("Update does not reprocess when artifact has not changed", func() {
319320
sourcePredicate := controllers.FluxGitRepositoryPredicate{Logger: logger}
320321

321-
gitRepository.Status.Artifact = &sourcev1.Artifact{
322+
gitRepository.Status.Artifact = &meta.Artifact{
322323
Revision: randomString(),
323324
}
324325

controllers/handlers_kustomize_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
. "github.com/onsi/ginkgo/v2"
3232
. "github.com/onsi/gomega"
3333

34+
"github.com/fluxcd/pkg/apis/meta"
3435
sourcev1 "github.com/fluxcd/source-controller/api/v1"
3536
"github.com/gdexlab/go-render/render"
3637
corev1 "k8s.io/api/core/v1"
@@ -261,7 +262,7 @@ var _ = Describe("Hash methods", func() {
261262
Namespace: randomString(),
262263
},
263264
Status: sourcev1.GitRepositoryStatus{
264-
Artifact: &sourcev1.Artifact{
265+
Artifact: &meta.Artifact{
265266
Revision: randomString(),
266267
},
267268
},

0 commit comments

Comments
 (0)