Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
push:
branches-ignore: [main]
env:
GO_VERSION: '1.26.0'
GOLANGCI_LINT_VERSION: 'v2.10.1'
GO_VERSION: '1.26.1'
GOLANGCI_LINT_VERSION: 'v2.11.4'
jobs:
# Check if there is any dirty change for go mod tidy
go-mod:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
name: go_work
path: go.work
- id: set-modules
run: echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
run: echo "modules=$(go work edit -json | jq -c '[.Use[].DiskPath]')" >> $GITHUB_OUTPUT
go-mod-examples:
needs: [detect-modules]
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ YQ = $(LOCALBIN)/yq
## TODO: remap in yaml file (version.yaml or smthng)
## Tool Versions
# GO_BUILDER_VERSION must be without 'v' prefix
GO_BUILDER_VERSION = 1.25.5
GOLANGCI_LINT_VERSION = v2.10.1
GO_BUILDER_VERSION = 1.26.1
GOLANGCI_LINT_VERSION = v2.11.4
YQ_VERSION ?= v4.50.1


Expand Down
2 changes: 1 addition & 1 deletion examples/basic-example-module/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module basic-example-module

go 1.24.0
go 1.25.8

require github.com/deckhouse/module-sdk v0.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/common-hooks/tls-certificate/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module tlscertificate

go 1.24.0
go 1.25.8

require github.com/deckhouse/module-sdk v0.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/dependency-example-module/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module dependency-example-module

go 1.24.0
go 1.25.8

require (
github.com/deckhouse/deckhouse/pkg/log v0.2.0
Expand Down
2 changes: 1 addition & 1 deletion examples/example-module/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module example-module

go 1.24.0
go 1.25.8

require (
github.com/deckhouse/deckhouse/pkg/log v0.2.0
Expand Down
2 changes: 1 addition & 1 deletion examples/settings-check/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module valuescheck

go 1.24.0
go 1.25.8

require github.com/deckhouse/module-sdk v0.0.0

Expand Down
4 changes: 2 additions & 2 deletions examples/single-file-app-example/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module singlefileexample
module singlefileappexample

go 1.24.0
go 1.25.8

require (
github.com/deckhouse/deckhouse/pkg/log v0.2.0
Expand Down
6 changes: 3 additions & 3 deletions examples/single-file-app-example/hooks/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/deckhouse/module-sdk/pkg"
"github.com/deckhouse/module-sdk/testing/mock"

singlefileexample "singlefileexample"
singlefileappexample "singlefileappexample"
)

const (
Expand All @@ -21,7 +21,7 @@ const (

var _ = Describe("handle hook single file example", func() {
snapshots := mock.NewSnapshotsMock(GinkgoT())
snapshots.GetMock.When(singlefileexample.SnapshotKey).Then(
snapshots.GetMock.When(singlefileappexample.SnapshotKey).Then(
[]pkg.Snapshot{
mock.NewSnapshotMock(GinkgoT()).UnmarshalToMock.Set(func(v any) error {
str := v.(*string)
Expand Down Expand Up @@ -49,7 +49,7 @@ var _ = Describe("handle hook single file example", func() {

Context("reconcile func", func() {
It("reconcile func executed correctly", func() {
err := singlefileexample.Handle(context.Background(), input)
err := singlefileappexample.Handle(context.Background(), input)
Expect(err).ShouldNot(HaveOccurred())
})
})
Expand Down
2 changes: 1 addition & 1 deletion examples/single-file-example/hooks/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module singlefileexample

go 1.24.0
go 1.25.8

require (
github.com/deckhouse/deckhouse/pkg/log v0.2.0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/deckhouse/module-sdk

go 1.24.0
go 1.25.8

require (
github.com/caarlos0/env/v11 v11.3.1
Expand Down
Loading