Skip to content

Commit dab43ba

Browse files
authored
Merge branch 'master' into tg/remove-docker
2 parents 37e280e + f06867d commit dab43ba

File tree

1,926 files changed

+174493
-52869
lines changed

Some content is hidden

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

1,926 files changed

+174493
-52869
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
44+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
4545
with:
4646
egress-policy: audit
4747

4848
- name: Checkout repository
49-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
53+
uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +60,7 @@ jobs:
6060
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6161
# If this step fails, then you should remove it and run the build manually (see below)
6262
- name: Autobuild
63-
uses: github/codeql-action/autobuild@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
63+
uses: github/codeql-action/autobuild@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
6464

6565
# ℹ️ Command-line programs to run using the OS shell.
6666
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +73,6 @@ jobs:
7373
# ./location_of_script_within_repo/buildscript.sh
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
76+
uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
7777
with:
7878
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
20+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
2121
with:
2222
egress-policy: audit
2323

2424
- name: 'Checkout Repository'
25-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
27+
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1

.github/workflows/scorecards.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131

3232
steps:
3333
- name: Harden Runner
34-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
34+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
3535
with:
3636
egress-policy: audit
3737

3838
- name: "Checkout code"
39-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4040
with:
4141
persist-credentials: false
4242

4343
- name: "Run analysis"
44-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
44+
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
4545
with:
4646
results_file: results.sarif
4747
results_format: sarif
@@ -63,14 +63,14 @@ jobs:
6363
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6464
# format to the repository Actions tab.
6565
- name: "Upload artifact"
66-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
66+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6767
with:
6868
name: SARIF file
6969
path: results.sarif
7070
retention-days: 5
7171

7272
# Upload the results to GitHub's code scanning dashboard.
7373
- name: "Upload to code-scanning"
74-
uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
74+
uses: github/codeql-action/upload-sarif@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
7575
with:
7676
sarif_file: results.sarif

.github/workflows/tag-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
contents: write
1919
steps:
2020
- name: Harden Runner
21-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
21+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
2222
with:
2323
egress-policy: audit
2424

25-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
with:
2727
fetch-depth: 0
2828
- run: /usr/bin/git config --global user.email [email protected]

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
# Must override builder-base, not builder, since the latter is referred to later in the file and so must not be
2020
# directly replaced. See here, and note that "stage" parameter mentioned there has been renamed to
2121
# "build-context": https://github.com/docker/buildx/pull/904#issuecomment-1005871838
22-
FROM golang:1.24-bookworm@sha256:fa1a01d362a7b9df68b021d59a124d28cae6d99ebd1a876e3557c4dd092f1b1d as builder-base
23-
FROM builder-base as builder
24-
LABEL maintainer="Andy Xie <[email protected]>"
22+
FROM golang:1.24.6-bookworm@sha256:bdc7cfd953b2701fcd95fd591ea3d788f41e4b74f21f1787b9f9843a28e72196 AS builder-base
23+
FROM builder-base AS builder
2524

2625
ARG TARGETARCH
2726

28-
ENV GOPATH /gopath/
29-
ENV PATH $GOPATH/bin:$PATH
27+
ENV GOPATH=/gopath/
28+
ENV PATH=$GOPATH/bin:$PATH
3029

3130
RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
3231
RUN go version
@@ -35,7 +34,7 @@ COPY . /gopath/src/k8s.io/node-problem-detector/
3534
WORKDIR /gopath/src/k8s.io/node-problem-detector
3635
RUN GOARCH=${TARGETARCH} make bin/node-problem-detector bin/health-checker bin/log-counter
3736

38-
FROM --platform=${TARGETPLATFORM} registry.k8s.io/build-image/debian-base:bookworm-v1.0.4@sha256:0a17678966f63e82e9c5e246d9e654836a33e13650a698adefede61bb5ca099e as base
37+
FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b410480f6e6dcdfc075b0dfcab2c137953dd40189dbd06bdf9938 AS base
3938

4039
LABEL maintainer="Random Liu <[email protected]>"
4140

OWNERS_ALIASES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ aliases:
77
- sjenning
88
- mrunalp
99
- klueska
10+
- SergeyKanzhelev
11+
- tallclair
1012
sig-node-reviewers:
1113
- Random-Liu
1214
- dchen1107

deployment/node-problem-detector-healthchecker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
requests:
3939
cpu: 10m
4040
memory: 80Mi
41-
imagePullPolicy: Always
41+
imagePullPolicy: IfNotPresent
4242
securityContext:
4343
privileged: true
4444
env:

deployment/node-problem-detector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
requests:
3838
cpu: 10m
3939
memory: 80Mi
40-
imagePullPolicy: Always
40+
imagePullPolicy: IfNotPresent
4141
securityContext:
4242
privileged: true
4343
env:

docs/versioning.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Versioning Scheme for Node Problem Detector
2+
3+
This document describes the versioning scheme for the Node Problem Detector, which is designed to align with Kubernetes releases.
4+
5+
## Versioning Scheme: `v1.<k8s_minor>.<patch>`
6+
7+
The versioning scheme is `v1.<k8s_minor>.<patch>`.
8+
9+
* **v1**: The major version is 1, indicating the project is considered stable.
10+
* **`<k8s_minor>`**: This part of the version is the minor version of the supported Kubernetes release. For example, for Kubernetes v1.34, this would be `34`.
11+
* **`<patch>`**: This is a patch number for bug fixes and other small changes within the same supported Kubernetes version.
12+
13+
For example, for Kubernetes v1.34, the corresponding version of the Node Problem Detector is in the `v1.34.x` series. The first release for this Kubernetes version would be `v1.34.0`.
14+
15+
The release branch is named `release-1.<k8s_minor>` to match Kubernetes versions (e.g. `release-1.34`). Git tags are named after the version, like `v1.<k8s_minor>.<patch>`. Patches are created from these release branches.
16+
17+
This scheme is not ambiguous and will work for the foreseeable future. Kubernetes v1.100 is not expected until approximately 2047.
18+
19+
## Reasoning
20+
21+
This versioning scheme provides the following benefits:
22+
23+
* **Clarity**: It is immediately clear which version of Node Problem Detector is compatible with which version of Kubernetes.
24+
* **Consistency**: It aligns the project with the release cycle of Kubernetes and some other Kubernetes components versioning.
25+
* **Predictability**: Users can better predict when new releases will be available.
26+
* **Easier Maintenance**: By having separate version lines for each Kubernetes minor version (e.g., `v1.34.x`, `v1.35.x`), we can easily backport critical bug fixes and CVEs to older, still-supported release lines without being forced to also backport newer features.
27+
* **Targeted Testing**: Each version of Node Problem Detector is tested against a specific Kubernetes version. This also implies testing against particular versions of related components like the container runtime and OS. New features in Node Problem Detector will not necessarily be tested against older versions of these components.
28+
29+
## Previous Versioning Scheme
30+
31+
For reference, the previous versioning scheme was `vX.Y.Z`.
32+
33+
* The major version `X` was always `0`.
34+
* The minor version `Y` was incremented for releases with significant new features.
35+
* The patch version `Z` was used for smaller features and bug fixes.
36+
37+
This model did not provide a clear link to the supported Kubernetes version, making it difficult for users to determine compatibility. We will have a branch named `release-0.8` so we can keep track of changes that are used as hotfixes for `0.8.21` and below releases.

go.mod

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,110 @@
11
module k8s.io/node-problem-detector
22

3-
go 1.23.1
3+
go 1.24.6
44

55
require (
6-
cloud.google.com/go/compute/metadata v0.5.2
6+
cloud.google.com/go/compute/metadata v0.8.0
77
contrib.go.opencensus.io/exporter/prometheus v0.4.2
88
contrib.go.opencensus.io/exporter/stackdriver v0.13.14
99
github.com/acobaugh/osrelease v0.1.0
1010
github.com/avast/retry-go/v4 v4.6.1
1111
github.com/coreos/go-systemd/v22 v22.5.0
1212
github.com/euank/go-kmsg-parser v2.0.0+incompatible
1313
github.com/hpcloud/tail v1.0.0
14-
github.com/prometheus/client_model v0.6.1
15-
github.com/prometheus/common v0.55.0
16-
github.com/prometheus/procfs v0.15.1
14+
github.com/prometheus/client_model v0.6.2
15+
github.com/prometheus/common v0.65.0
16+
github.com/prometheus/procfs v0.17.0
1717
github.com/shirou/gopsutil/v3 v3.24.5
18-
github.com/spf13/pflag v1.0.6
18+
github.com/spf13/pflag v1.0.7
1919
github.com/stretchr/testify v1.10.0
2020
go.opencensus.io v0.24.0
21-
golang.org/x/sys v0.28.0
22-
google.golang.org/api v0.192.0
23-
k8s.io/api v0.31.7
24-
k8s.io/apimachinery v0.31.7
25-
k8s.io/client-go v0.31.7
21+
golang.org/x/sys v0.35.0
22+
google.golang.org/api v0.246.0
23+
k8s.io/api v0.33.3
24+
k8s.io/apimachinery v0.33.3
25+
k8s.io/client-go v0.33.3
2626
k8s.io/klog/v2 v2.130.1
27-
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
27+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
2828
)
2929

3030
require (
31-
cloud.google.com/go/auth v0.8.1 // indirect
32-
cloud.google.com/go/auth/oauth2adapt v0.2.3 // indirect
33-
cloud.google.com/go/monitoring v1.20.3 // indirect
34-
cloud.google.com/go/trace v1.10.11 // indirect
31+
cloud.google.com/go/auth v0.16.3 // indirect
32+
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
33+
cloud.google.com/go/monitoring v1.24.2 // indirect
34+
cloud.google.com/go/trace v1.11.6 // indirect
3535
github.com/aws/aws-sdk-go v1.44.72 // indirect
3636
github.com/beorn7/perks v1.0.1 // indirect
3737
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
38-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
38+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3939
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4040
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
4141
github.com/felixge/httpsnoop v1.0.4 // indirect
4242
github.com/fsnotify/fsnotify v1.6.0 // indirect
4343
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
4444
github.com/go-kit/log v0.2.1 // indirect
4545
github.com/go-logfmt/logfmt v0.5.1 // indirect
46-
github.com/go-logr/logr v1.4.2 // indirect
46+
github.com/go-logr/logr v1.4.3 // indirect
4747
github.com/go-logr/stdr v1.2.2 // indirect
4848
github.com/go-ole/go-ole v1.2.6 // indirect
49-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
49+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
5050
github.com/go-openapi/jsonreference v0.20.2 // indirect
51-
github.com/go-openapi/swag v0.22.4 // indirect
51+
github.com/go-openapi/swag v0.23.0 // indirect
5252
github.com/gogo/protobuf v1.3.2 // indirect
5353
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
5454
github.com/golang/protobuf v1.5.4 // indirect
55-
github.com/google/gnostic-models v0.6.8 // indirect
56-
github.com/google/go-cmp v0.6.0 // indirect
57-
github.com/google/gofuzz v1.2.1-0.20210504230335-f78f29fc09ea // indirect
58-
github.com/google/s2a-go v0.1.8 // indirect
55+
github.com/google/gnostic-models v0.6.9 // indirect
56+
github.com/google/go-cmp v0.7.0 // indirect
57+
github.com/google/s2a-go v0.1.9 // indirect
5958
github.com/google/uuid v1.6.0 // indirect
60-
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
61-
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
62-
github.com/imdario/mergo v0.3.12 // indirect
59+
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
60+
github.com/googleapis/gax-go/v2 v2.15.0 // indirect
6361
github.com/jmespath/go-jmespath v0.4.0 // indirect
6462
github.com/josharian/intern v1.0.0 // indirect
6563
github.com/json-iterator/go v1.1.12 // indirect
64+
github.com/klauspost/compress v1.17.9 // indirect
6665
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
6766
github.com/mailru/easyjson v0.7.7 // indirect
6867
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6968
github.com/modern-go/reflect2 v1.0.2 // indirect
7069
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
70+
github.com/pkg/errors v0.9.1 // indirect
7171
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
7272
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
73-
github.com/prometheus/client_golang v1.19.1 // indirect
73+
github.com/prometheus/client_golang v1.20.4 // indirect
7474
github.com/prometheus/prometheus v0.35.0 // indirect
7575
github.com/prometheus/statsd_exporter v0.22.7 // indirect
7676
github.com/shoenig/go-m1cpu v0.1.6 // indirect
7777
github.com/tklauser/go-sysconf v0.3.12 // indirect
7878
github.com/tklauser/numcpus v0.6.1 // indirect
7979
github.com/x448/float16 v0.8.4 // indirect
8080
github.com/yusufpapurcu/wmi v1.2.4 // indirect
81-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
82-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
83-
go.opentelemetry.io/otel v1.24.0 // indirect
84-
go.opentelemetry.io/otel/metric v1.24.0 // indirect
85-
go.opentelemetry.io/otel/trace v1.24.0 // indirect
86-
golang.org/x/crypto v0.31.0 // indirect
87-
golang.org/x/net v0.33.0 // indirect
88-
golang.org/x/oauth2 v0.22.0 // indirect
89-
golang.org/x/sync v0.10.0 // indirect
90-
golang.org/x/term v0.27.0 // indirect
91-
golang.org/x/text v0.21.0 // indirect
92-
golang.org/x/time v0.6.0 // indirect
93-
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect
94-
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect
95-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect
96-
google.golang.org/grpc v1.64.1 // indirect
97-
google.golang.org/protobuf v1.34.2 // indirect
81+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
82+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
83+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
84+
go.opentelemetry.io/otel v1.36.0 // indirect
85+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
86+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
87+
golang.org/x/crypto v0.40.0 // indirect
88+
golang.org/x/net v0.42.0 // indirect
89+
golang.org/x/oauth2 v0.30.0 // indirect
90+
golang.org/x/sync v0.16.0 // indirect
91+
golang.org/x/term v0.33.0 // indirect
92+
golang.org/x/text v0.27.0 // indirect
93+
golang.org/x/time v0.12.0 // indirect
94+
google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect
95+
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
96+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0 // indirect
97+
google.golang.org/grpc v1.74.2 // indirect
98+
google.golang.org/protobuf v1.36.6 // indirect
99+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
98100
gopkg.in/fsnotify.v1 v1.4.7 // indirect
99101
gopkg.in/inf.v0 v0.9.1 // indirect
100102
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
101103
gopkg.in/yaml.v2 v2.4.0 // indirect
102104
gopkg.in/yaml.v3 v3.0.1 // indirect
103-
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
104-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
105-
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
105+
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
106+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
107+
sigs.k8s.io/randfill v1.0.0 // indirect
108+
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
106109
sigs.k8s.io/yaml v1.4.0 // indirect
107110
)

0 commit comments

Comments
 (0)