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
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.8
go-version: 1.25.5

- name: Cache Go modules
uses: actions/cache@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.23
go-version: 1.25
- uses: actions/checkout@v4

- name: Run govulncheck
Expand All @@ -20,7 +20,7 @@ jobs:
go-package: ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v9
with:
args: --timeout=5m
skip-pkg-cache: true
skip-cache: true
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/castai/spot-handler

go 1.24.4
go 1.25.5

require (
cloud.google.com/go/compute/metadata v0.6.0
Expand All @@ -13,6 +13,7 @@ require (
k8s.io/api v0.32.1
k8s.io/apimachinery v0.32.2
k8s.io/client-go v0.32.1
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e
sigs.k8s.io/controller-runtime v0.20.4
)

Expand Down Expand Up @@ -61,7 +62,6 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e // indirect
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion handler/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ func TestAwsInterruptChecker(t *testing.T) {
router.HandleFunc("/latest/api/token", func(writer http.ResponseWriter, request *http.Request) {

writer.Header().Set("X-aws-ec2-metadata-token-ttl-seconds", "1000")
fmt.Fprintf(writer, "TOKEN")
_, err := fmt.Fprintf(writer, "TOKEN")
require.NoError(t, err)
})
router.HandleFunc("/latest/meta-data/spot/instance-action", func(writer http.ResponseWriter, request *http.Request) {
action := ec2metadata.InstanceAction{
Expand Down
Loading