Skip to content

Commit fd2a1f8

Browse files
committed
chore: Build with go 1.22
1 parent d7d561f commit fd2a1f8

23 files changed

+30
-30
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ env:
2020
E2E_SETUP_KIND: yes
2121
E2E_SETUP_KUBECTL: yes
2222
SUDO: sudo
23-
GO_VERSION: "^1.21"
24-
GOLANGCI_LINT_VERSION: "v1.54.2"
23+
GO_VERSION: "^1.22"
24+
GOLANGCI_LINT_VERSION: "v1.56.2"
2525

2626
jobs:
2727
ci-go-lint:

.github/workflows/govulncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '0 0 * * 1'
77

88
env:
9-
GO_VERSION: "^1.21"
9+
GO_VERSION: "^1.22"
1010

1111
permissions:
1212
contents: read

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
deadline: 5m
2+
deadline: 10m
33

44
linters:
55
disable-all: true

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GOVERSION=1.21
1+
ARG GOVERSION=1.22
22
ARG GOARCH
33
FROM golang:${GOVERSION} as builder
44
ARG GOARCH

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OS ?= $(shell uname -s | tr A-Z a-z)
1616
ALL_ARCH = amd64 arm arm64 ppc64le s390x
1717
PKG = github.com/prometheus/common
1818
PROMETHEUS_VERSION = 2.46.0
19-
GO_VERSION = 1.21.8
19+
GO_VERSION = 1.22.2
2020
IMAGE = $(REGISTRY)/kube-state-metrics
2121
MULTI_ARCH_IMG = $(IMAGE)-$(ARCH)
2222
USER ?= $(shell id -u -n)

internal/store/clusterrole.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func clusterRoleMetricFamilies(allowAnnotationsList, allowLabelsList []string) [
9191
metric.Gauge,
9292
basemetrics.ALPHA,
9393
"",
94-
wrapClusterRoleFunc(func(r *rbacv1.ClusterRole) *metric.Family {
94+
wrapClusterRoleFunc(func(_ *rbacv1.ClusterRole) *metric.Family {
9595
return &metric.Family{
9696
Metrics: []*metric.Metric{{
9797
LabelKeys: []string{},

internal/store/configmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func configMapMetricFamilies(allowAnnotationsList, allowLabelsList []string) []g
8787
metric.Gauge,
8888
basemetrics.STABLE,
8989
"",
90-
wrapConfigMapFunc(func(c *v1.ConfigMap) *metric.Family {
90+
wrapConfigMapFunc(func(_ *v1.ConfigMap) *metric.Family {
9191
return &metric.Family{
9292
Metrics: []*metric.Metric{{
9393
LabelKeys: []string{},

internal/store/endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func endpointMetricFamilies(allowAnnotationsList, allowLabelsList []string) []ge
4848
metric.Gauge,
4949
basemetrics.STABLE,
5050
"",
51-
wrapEndpointFunc(func(e *v1.Endpoints) *metric.Family {
51+
wrapEndpointFunc(func(_ *v1.Endpoints) *metric.Family {
5252
return &metric.Family{
5353
Metrics: []*metric.Metric{
5454
{

internal/store/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func jobMetricFamilies(allowAnnotationsList, allowLabelsList []string) []generat
9494
metric.Gauge,
9595
basemetrics.STABLE,
9696
"",
97-
wrapJobFunc(func(j *v1batch.Job) *metric.Family {
97+
wrapJobFunc(func(_ *v1batch.Job) *metric.Family {
9898
return &metric.Family{
9999
Metrics: []*metric.Metric{
100100
{

internal/store/mutatingwebhookconfiguration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var (
4141
metric.Gauge,
4242
basemetrics.ALPHA,
4343
"",
44-
wrapMutatingWebhookConfigurationFunc(func(mwc *admissionregistrationv1.MutatingWebhookConfiguration) *metric.Family {
44+
wrapMutatingWebhookConfigurationFunc(func(_ *admissionregistrationv1.MutatingWebhookConfiguration) *metric.Family {
4545
return &metric.Family{
4646
Metrics: []*metric.Metric{
4747
{

0 commit comments

Comments
 (0)