Commit Graph

10175 Commits

Author SHA1 Message Date
Achraf BOUAOUDA
e645e06a7f fix(e2e-node-tests): project and zone in the prerequisites check 2024-09-19 12:23:08 +02:00
Jordan Liggitt
102a9dbab1 Pin godebug default to go1.23 2024-09-11 15:34:37 -04:00
Jordan Liggitt
65ef531390 Update go.mod to go 1.23 2024-09-11 15:34:37 -04:00
Akhil Mohan
b0bf3fba54 rewrite publishing-bot verify script in go
- setup scripts to trigger publishing-bot verify
- add golang verify script and remove python verification code
- pin k8s.io/publishing-bot to v0.5.0

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2024-09-06 09:30:51 +05:30
Kubernetes Prow Robot
2049360379 Merge pull request #125534 from pohly/gotestsum
filter `go test` output live with gotestsum
2024-09-05 21:18:49 +01:00
Jordan Liggitt
83f2b390b7 Add guard for dependencies recursively depending on kubernetes or staging modules 2024-09-04 16:58:04 -04:00
cpanato
b0c17b124f Bump images, dependencies and versions to go 1.23.0
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-09-02 10:42:04 -06:00
Jefftree
8dd2c7de47 Remove v2beta1 aggregated discovery from being generated 2024-08-29 18:08:11 +00:00
Sascha Grunert
931b9b3a70 Update cni-plugins to v1.5.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-28 12:58:36 +02:00
Kubernetes Prow Robot
f1a922c8e6 Merge pull request #126787 from Jefftree/update-kube-openapi
Bump k8s.io/kube-openapi and k8s.io/gengo
2024-08-27 23:39:02 +01:00
Jefftree
40f3453ace Update unwanted dependencies 2024-08-27 15:40:54 +00:00
Mykhailo Bobrovskyi
4ec1080bfc Add release notes to the body of the pull request on create cherry-pick. 2024-08-26 20:58:51 +03:00
Kubernetes Prow Robot
5ac315faf4 Merge pull request #126494 from bart0sh/PR153-migrate-DRA-Manager-to-contextual-logging
Migrate pkg/kubelet/cm/dra to contextual logging
2024-08-26 13:14:26 +01:00
Ed Bartosh
e1bc8defac kubelet: Migrate DRA Manager to contextual logging
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-08-22 11:12:41 +03:00
Aaron Prindle
780cfa572b feat: add EMULATED_VERSION env var and --emulated-version flag params to k8s binaries flags in hack/local-up-cluster.sh 2024-08-20 21:18:34 +00:00
Kubernetes Prow Robot
d770dd695a Merge pull request #121888 from SD-13/e2e-gomega-be-true-or-false
Enhance boolean assertions when fail
2024-08-20 04:24:42 -07:00
Kubernetes Prow Robot
113b12c6fb Merge pull request #124439 from bells17/csi-translation-lib-structured-and-contextual-logging
Migrate k8s.io/csi-translation-lib/.* to structured logging
2024-08-19 18:13:54 -07:00
Patrick Ohly
a7da865aa8 test: filter "go test" output with gotestsum instead of grep
Filtering the output with grep leads to hard to read log output, e.g. from
pull-kubernetes-unit:

    +++ [0613 15:32:48] Running tests without code coverage and with -race
    {"Time":"2024-06-13T15:33:47.845457374Z","Action":"output","Package":"k8s.io/kubernetes/cluster/gce/cos","Test":"TestCreateMasterAuditPolicy","Output":"        /tmp/configure-helper-test47992121/kube-env: line 1: `}'\n"}
    {"Time":"2024-06-13T15:33:49.053732803Z","Action":"output","Package":"k8s.io/kubernetes/cluster/gce/cos","Output":"ok  \tk8s.io/kubernetes/cluster/gce/cos\t2.906s\n"}

We can do better than that. When feeding the output of the "go test" command(s)
into gotestsum *while it runs*, we can use --format=standard-quiet (= normal go
test output) or --format=standard-verbose (= `go test -v`) when FULL_LOG is
requested to get nicer output.

This works when testing everything at once. This was said to be not possible
when doing coverage profiling. But recent Go no longer has that limitation, so
the xargs trick gets removed. All that we need to do for coverage profiling is
to add some additional parameters and the conversion to HTML.
2024-08-19 16:14:05 +02:00
Kubernetes Prow Robot
0b3b733c84 Merge pull request #126709 from MadhavJivrajani/bump-go-tools
[go1.23] hack/tools: bump go-tools for go1.23.0
2024-08-15 21:01:51 -07:00
Madhav Jivrajani
6b7b36a4ad hack/tools: bump go-tools for go1.23.0
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-08-15 21:56:10 -05:00
Kubernetes Prow Robot
b860feb2a6 Merge pull request #126540 from skitt/avoid-double-mock-headers
Handle all mock header generation with mockery
2024-08-15 15:39:51 -07:00
Kubernetes Prow Robot
69dbf2eee9 Merge pull request #126665 from liggitt/version-build-id
Restore honoring --version build ID overrides
2024-08-13 22:12:17 -07:00
Kubernetes Prow Robot
cc4ed1d3fa Merge pull request #126234 from fengshunli/protobuf
hack/tools: bump google.golang.org/protobuf to v1.31.0 for v1.34.2
2024-08-13 21:03:10 -07:00
Jordan Liggitt
c181912dc5 Restore honoring --version build ID overrides 2024-08-13 21:52:58 -04:00
Stephen Kitt
f4ddb44c36 Handle all mock header generation with mockery
mockery is set up to generate headers in all the mocks it produces, so
the separate header generation in update-mocks.sh is no longer useful
(and leads to duplicate headers in three cases). This removes the
relevant parts of the shell script.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-08-05 11:19:37 +02:00
Siyuan Zhang
35488ef5c7 Verify: add static analysis to verify new feature gates are added as versioned feature specs.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-08-01 13:52:32 -07:00
Sujay
223aedcf6b enhance boolean assertions 2024-07-31 15:58:15 +00:00
ArkaSaha30
d1dfeed505 Revert "Bump images, dependencies and versions to go 1.23rc1"
This reverts commit 5c269fecf8.
2024-07-29 13:55:03 +05:30
Kubernetes Prow Robot
3a8a60eba2 Merge pull request #126240 from bzsuni/bz/etcd/update/v3.5.15
Update etcd to v3.5.15
2024-07-26 04:58:05 -07:00
Kubernetes Prow Robot
5f5c02da51 Merge pull request #124012 from Jefftree/le-controller
Coordinated Leader Election
2024-07-25 13:05:53 -07:00
Jordan Liggitt
08a74f24c4 Fix verify-vendor script to check all go.mod and go.sum files 2024-07-25 10:39:11 -04:00
bzsuni
4ad2cd9299 Update etcd from v3.5.14 to v3.5.15
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-07-25 10:48:34 +08:00
Dr. Stefan Schimanski
68226b0501 Review feedback
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-07-24 14:38:12 +00:00
Jefftree
c47ff1e1a9 CLE controller and client changes 2024-07-24 14:38:11 +00:00
Jefftree
3999b98c88 Coordinated Leader Election Alpha API 2024-07-24 14:38:10 +00:00
Kubernetes Prow Robot
67c7e77044 Merge pull request #126047 from cpanato/upgrade-go-123
[go] Bump images, dependencies and versions to go 1.23rc2
2024-07-23 11:02:29 -07:00
Patrick Ohly
91d7882e86 DRA: new API for 1.31
This is a complete revamp of the original API. Some of the key
differences:
- refocused on structured parameters and allocating devices
- support for constraints across devices
- support for allocating "all" or a fixed amount
  of similar devices in a single request
- no class for ResourceClaims, instead individual
  device requests are associated with a mandatory
  DeviceClass

For the sake of simplicity, optional basic types (ints, strings) where the null
value is the default are represented as values in the API types. This makes Go
code simpler because it doesn't have to check for nil (consumers) and values
can be set directly (producers). The effect is that in protobuf, these fields
always get encoded because `opt` only has an effect for pointers.

The roundtrip test data for v1.29.0 and v1.30.0 changes because of the new
"request" field. This is considered acceptable because the entire `claims`
field in the pod spec is still alpha.

The implementation is complete enough to bring up the apiserver.
Adapting other components follows.
2024-07-22 18:09:34 +02:00
Patrick Ohly
b51d68bb87 DRA: bump API v1alpha2 -> v1alpha3
This is in preparation for revamping the resource.k8s.io completely. Because
there will be no support for transitioning from v1alpha2 to v1alpha3, the
roundtrip test data for that API in 1.29 and 1.30 gets removed.

Repeating the version in the import name of the API packages is not really
required. It was done for a while to support simpler grepping for usage of
alpha APIs, but there are better ways for that now. So during this transition,
"resourceapi" gets used instead of "resourcev1alpha3" and the version gets
dropped from informer and lister imports. The advantage is that the next bump
to v1beta1 will affect fewer source code lines.

Only source code where the version really matters (like API registration)
retains the versioned import.
2024-07-21 17:28:13 +02:00
fsl
99680bfd76 hack/tools: bump google.golang.org/protobuf to v1.31.0 for v1.34.2
Signed-off-by: fengshunli <1171313930@qq.com>
2024-07-20 03:40:40 +08:00
cpanato
5c269fecf8 Bump images, dependencies and versions to go 1.23rc1
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-07-19 11:33:24 +02:00
bells17
1298c8a5fe csi-translation-lib: Support structured and contextual logging 2024-07-18 14:01:27 +09:00
Kubernetes Prow Robot
fe1840205c Merge pull request #125926 from MadhavJivrajani/bump-staticcheck-exclude-SA1006
[go1.23] hack: bump go-tools and exclude SA1006
2024-07-15 10:05:19 -07:00
Madhav Jivrajani
0d2c0e0d3c hack: disable SA1006 check
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-07-15 15:03:15 +05:30
Madhav Jivrajani
92f5b08f8c hack/tools: bump go-tools to v0.5.0-rc.1 for go1.23
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2024-07-15 15:03:10 +05:30
Kubernetes Prow Robot
2d4514e169 Merge pull request #125802 from mmorel-35/testifylint/len+empty
fix: enable empty and len rules from testifylint on pkg and staging package
2024-07-11 23:12:06 -07:00
Matthieu MOREL
f014b754fb fix: enable empty and len rules from testifylint on pkg package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-07-06 23:15:43 +00:00
Davanum Srinivas
ff7942be83 update OpenTelemetry dependencies and grpc
This update dropped the otelgrpc → cloud.google.com/go/compute dependency,
among others. This dropped out because genproto cleaned up it's dependencies
on google cloud libraries, and otel updated - details in #113366.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: David Ashpole <dashpole@google.com>
2024-07-05 21:21:30 -04:00
Kubernetes Prow Robot
95debfb5b6 Merge pull request #125864 from ArkaSaha30/bump-govulncheck-master
Bump govulncheck to 1.1.2
2024-07-04 20:14:48 -07:00
Kubernetes Prow Robot
c87c06d7ff Merge pull request #125850 from dims/fix-for-typecheck-does-not-notice-compile-errors-in-test-files
Fix for typecheck doesn't notice compile errors in test files
2024-07-04 13:21:42 -07:00
Davanum Srinivas
c230a45383 Fix for typecheck doesn't notice compile errors in test files
- ensure we add all the staging modules so the _test files in there are "loaded"
- use build tags to skip tests that fail to build in specific os/arch pairs

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: Tim Hockin <thockin@google.com>
2024-07-04 15:01:41 -04:00