Skip to content

Commit e798696

Browse files
authored
Merge branch 'main' into xrfxlp/1597
2 parents fa5e43d + 8d55c0c commit e798696

139 files changed

Lines changed: 2926 additions & 2546 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
version: "2"
1616
run:
17-
go: "1.23"
17+
go: "1.27"
1818
modules-download-mode: readonly
1919
issues-exit-code: 1
2020
tests: false

.versions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Language Versions
3333
languages:
34-
go: '1.26.3'
34+
go: '1.27.0'
3535
python: '3.13'
3636

3737
# Build & Package Management
@@ -41,7 +41,7 @@ build_tools:
4141

4242
# Go Development Tools
4343
go_tools:
44-
golangci_lint: 'v2.5.0'
44+
golangci_lint: 'v2.13.1'
4545
gotestsum: 'v1.13.0'
4646
gocover_cobertura: 'v1.4.0'
4747
setup_envtest: 'v0.0.0-20260119123727-a2de7e94d2dd'

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ When reporting issues:
5858
## Development Setup
5959

6060
**Prerequisites**:
61-
- Go 1.25+ (see `.versions.yaml` for exact version)
61+
- Go 1.27+ (see `.versions.yaml` for exact version)
6262
- Kubernetes cluster (for testing)
6363
- Docker (for container builds)
6464
- Make (for build targets)

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ make show-versions
4040
### Prerequisites
4141

4242
**Core Tools** (required):
43-
- [Go 1.25+](https://golang.org/dl/) - See `.versions.yaml` for exact version
43+
- [Go 1.27+](https://golang.org/dl/) - See `.versions.yaml` for exact version
4444
- [Docker](https://docs.docker.com/get-docker/)
4545
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
4646
- [Helm 3.0+](https://helm.sh/docs/intro/install/)

api/gen/go/device/v1alpha1/gpu.pb.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/nvidia/nvsentinel/api
22

3-
go 1.26.0
4-
5-
toolchain go1.26.3
3+
go 1.27.0
64

75
require (
86
google.golang.org/grpc v1.83.1

commons/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/nvidia/nvsentinel/commons
22

3-
go 1.26.0
4-
5-
toolchain go1.26.3
3+
go 1.27.0
64

75
require (
86
github.com/BurntSushi/toml v1.6.0

commons/pkg/healthpub/metrics.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ import (
1919
"github.com/prometheus/client_golang/prometheus/promauto"
2020
)
2121

22+
// labelMonitor is the agent-name label shared by every publisher counter.
23+
const labelMonitor = "monitor"
24+
2225
// Counters are registered against the default registry via promauto.
2326
// The `monitor` label is the agent name; `code` on sendsError is a gRPC
2427
// status-code string (bounded cardinality, ~17 values).
@@ -28,22 +31,22 @@ var (
2831
Name: "nvsentinel_health_events_publisher_skipped_pc_unavailable_total",
2932
Help: "Total health-event sends skipped because the platform-connector Unix socket was missing.",
3033
},
31-
[]string{"monitor"},
34+
[]string{labelMonitor},
3235
)
3336

3437
sendsSuccess = promauto.NewCounterVec(
3538
prometheus.CounterOpts{
3639
Name: "nvsentinel_health_events_publisher_sends_success_total",
3740
Help: "Total successful health-event sends.",
3841
},
39-
[]string{"monitor"},
42+
[]string{labelMonitor},
4043
)
4144

4245
sendsError = promauto.NewCounterVec(
4346
prometheus.CounterOpts{
4447
Name: "nvsentinel_health_events_publisher_sends_error_total",
4548
Help: "Total failed health-event sends after retries exhausted (excluding socket-missing skips).",
4649
},
47-
[]string{"monitor", "code"},
50+
[]string{labelMonitor, "code"},
4851
)
4952
)

data-models/go.mod

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
module github.com/nvidia/nvsentinel/data-models
22

3-
go 1.26.0
4-
5-
toolchain go1.26.3
6-
7-
require (
8-
google.golang.org/grpc v1.83.1
9-
k8s.io/apimachinery v0.36.3
10-
)
3+
go 1.27.0
114

125
require (
136
github.com/yandex/protoc-gen-crd v1.1.0
14-
golang.org/x/sys v0.47.0 // indirect
15-
google.golang.org/genproto/googleapis/rpc v0.0.0-20260819154853-08b0e4226688 // indirect
7+
google.golang.org/grpc v1.83.1
168
google.golang.org/protobuf v1.36.12
9+
k8s.io/apimachinery v0.36.3
1710
)
1811

1912
require (
@@ -29,7 +22,9 @@ require (
2922
go.opentelemetry.io/otel/sdk/metric v1.45.0 // indirect
3023
go.yaml.in/yaml/v2 v2.4.4 // indirect
3124
golang.org/x/net v0.57.0 // indirect
25+
golang.org/x/sys v0.47.0 // indirect
3226
golang.org/x/text v0.40.0 // indirect
27+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260819154853-08b0e4226688 // indirect
3328
gopkg.in/inf.v0 v0.9.1 // indirect
3429
k8s.io/klog/v2 v2.140.0 // indirect
3530
k8s.io/kube-openapi v0.0.0-20260317180543-43fb72c5454a // indirect

demos/local-custom-remediation-demo/memory-pressure-monitor/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM public.ecr.aws/docker/library/golang:1.26.3-trixie AS builder
15+
FROM public.ecr.aws/docker/library/golang:1.27.0-trixie AS builder
1616

1717
WORKDIR /go/src/nvsentinel
1818

0 commit comments

Comments
 (0)