Commit Graph

10136 Commits

Author SHA1 Message Date
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
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
Benjamin Elder
0841358732 restrict permitted e2e images to known images list
allows tag bumps, but prevents adding new images to e2e without test/images approval

adds a pointer to agnhost as preferred before adding new images
2024-07-03 10:42:51 -07:00
ArkaSaha30
7be52ad4ba
Bump govulncheck to 1.1.2
This commit will bump govulncheck from 1.1.0 to 1.1.2 which now supports OpenVex.

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-07-03 17:17:41 +05:30
Kubernetes Prow Robot
a9c156baef
Merge pull request #125787 from dims/pandaamanda-remove_apiserver_logs_api
kube-apiserver: default --enable-logs-handler flag to false
2024-06-29 11:23:12 -07:00
Davanum Srinivas
a88dc632a4
kube-apiserver: default --enable-logs-handler flag to false
Co-Authored-By: Iceber Gu <wei.cai-nat@daocloud.io>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-28 15:22:22 -04:00
Matthieu MOREL
0cde5f1e28
fix: enable bool-compare rule from testifylint linter (#125135)
* fix: enable bool-compare rule from testifylint linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

* Update hack/golangci.yaml.in

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* Update golangci.yaml.in

* Update golangci-strict.yaml

* Update golangci.yaml.in

* Update golangci.yaml.in

* Update golangci.yaml.in

* Update golangci.yaml.in

* Update golangci.yaml

* Update golangci-hints.yaml

* Update golangci-strict.yaml

* Update golangci.yaml.in

* Update golangci.yaml

* Update mux_test.go

---------

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-06-28 10:58:05 -07:00
Kubernetes Prow Robot
4c44efe81c
Merge pull request #125759 from dims/bump-prometheus/common-v0.55.0
Bump `prometheus/common` to v0.55.0
2024-06-27 20:40:05 -07:00
Kubernetes Prow Robot
991e7a8c15
Merge pull request #125646 from HirazawaUi/apply-null
Prune explicit nulls from client-side apply create
2024-06-27 10:40:14 -07:00
Davanum Srinivas
35ccdc8b35
Bump prometheus/common to v0.55.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-27 09:34:23 -04:00
Kubernetes Prow Robot
bffc02b955
Merge pull request #125738 from pohly/hack-local-up-cluster-cors-fix
hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
2024-06-26 20:40:18 -07:00
Patrick Ohly
8cb4a19450 hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
https://github.com/kubernetes/kubernetes/pull/112809 tightened what regular
expressions are allowed and now requires that they start matching with a double
dash.
2024-06-26 18:52:03 +02:00
David Ashpole
56fdcf0837
Revert "update unwanted dependencies"
This reverts commit d65029f9bb.
2024-06-26 14:14:06 +00:00
HirazawaUi
c29a19610a add tests 2024-06-26 01:07:24 +08:00
David Ashpole
d65029f9bb
update unwanted dependencies
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.
2024-06-23 15:53:54 +00:00
HirazawaUi
d98561fb26 fix local-up-cluster.sh to fail 2024-06-23 20:11:55 +08:00
Stephen Kitt
3f36c83c68
Switch to stretchr/testify / mockery for mocks
testify is used throughout the codebase; this switches mocks from
gomock to testify with the help of mockery for code generation.

Handlers and mocks in test/utils/oidc are moved to a new package:
mockery operates package by package, and requires packages to build
correctly; test/utils/oidc/testserver.go relies on the mocks and fails
to build when they are removed. Moving the interface and mocks to a
different package allows mockery to process that package without
having to build testserver.go.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-06-20 19:42:53 +02:00
Kubernetes Prow Robot
1544c104b7
Merge pull request #124752 from ArkaSaha30/bump-govulncheck-1.1.0
Bump govulncheck version to 1.1.0
2024-06-19 20:00:16 -07:00
Davanum Srinivas
9a830da048
add gofuzz to unwanted-dependencies.json
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-13 08:31:38 -04:00
Davanum Srinivas
60fe406f67
remove vestiges of providerless tag
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-06 12:18:38 -04:00
Kubernetes Prow Robot
b70a5ad6a1
Merge pull request #125269 from jeremyrickard/revert-pr-109939
Revert "build: Adds Windows kube-proxy image"
2024-06-01 15:17:19 -07:00
Jeremy Rickard
f62cf3914f
Revert "build: Adds Windows kube-proxy image"
This reverts commit 3b0cec323e.
2024-06-01 10:43:08 -06:00
Humble Chirammal
07ef65a834 make use of etcd v3.5.14 in the builds.
https://github.com/etcd-io/etcd/releases/tag/v3.5.14

This release has been built with GO 1.21.10

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-06-01 09:06:35 +05:30
Kubernetes Prow Robot
802983e714
Merge pull request #109939 from claudiubelu/windows/kube-proxy-hostprocess
build: Adds Windows kube-proxy image
2024-05-31 07:19:57 -07:00
Claudiu Belu
3b0cec323e build: Adds Windows kube-proxy image
Adds the KUBE_BUILD_WINDOWS option to make release-images and quick-release-images,
which will allow it to build the a Windows kube-proxy image as well. That image can
then be used with Windows Host Process Containers to start the kube-proxy
service on Windows nodes.
2024-05-31 08:04:00 +00:00
Kubernetes Prow Robot
2c46fafa23
Merge pull request #125150 from humblec/csi-update
update CSI spec to v1.9.0 which has modifyVolume API support and other updated libraries in place
2024-05-30 05:13:48 -07:00
Kubernetes Prow Robot
4c0afd74c3
Merge pull request #125113 from bzsuni/bz/build/cni
update cni from 1.4.1 to 1.5.0
2024-05-29 13:06:08 -07:00
Kubernetes Prow Robot
1cfaa95cab
Merge pull request #124898 from alexzielenski/apiserver/prerelease-ga-tags
Require prerelease lifecycle tags on GA types
2024-05-29 08:02:42 -07:00
Stephen Kitt
5dae865602
update-kustomize: update the Go workspace
Changing the kustomize version can also require updating the Go
workspace, do this in the update.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:40:04 +02:00
Stephen Kitt
31686c5483
Drop the extraneous space in update-kustomize.sh
With coreutils sed, the argument to -i must follow it immediately;
having a space here causes the command to look for a file with an
empty name, which fails.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:39:58 +02:00
Kubernetes Prow Robot
1c84623028
Merge pull request #125045 from pohly/ginkgo-gomega-update
dependencies: ginkgo v2.19.0, gomega v1.33.1
2024-05-28 01:03:18 -07:00
Humble Chirammal
e0a4cb0962 remove csi spec from unwanted dependencies
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-27 19:24:58 +05:30
Patrick Ohly
f3adf499c2 hack/ginkgo-e2e.sh: skip S character by default, add newlines in CI
We typically have plenty of skipped tests in an E2E run, which causes Ginkgo to
print many S characters (one for each skipped test). This easily fills up an entire
console window. Now the default is to silence that
output. GINKGO_SILENCE_SKIPS=n reverts to the previous behavior.

By default, Ginkgo prints all progress characters (S and o) in a single
line. Buffering in Prow causes that output to occur only after the run is over,
which defeats the purpose of having those characters. Now a newline is added
after each character, so there is visible progress in Prow while Ginkgo runs.
2024-05-27 15:25:50 +02:00
bzsuni
61a35c2186 update cni from 1.4.1 to 1.5.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-05-25 10:33:52 +08:00
Lubomir I. Ivanov
5e290ebc90 switch k/k to pause version 3.10 2024-05-24 10:02:51 +03:00
Alexander Zielenski
99c4af2053 enforce that GA apis also have lifecycle tags 2024-05-21 13:27:01 -07:00
ArkaSaha30
2e0ce7960e
Bump govulncheck version to 1.1.0
This commit will bump govulncheck version
1.0.1 -> 1.1.0

Additionally, handle govulncheck exit code returned

It will handle the govulncheck exit code returned
which returning 3 instead of 0 with the new v1.1.0
by adding `|| true` so that the verify job does not
fail but logs the go vulnerability found.

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-05-21 16:43:53 +05:30
Kubernetes Prow Robot
6d4250ed41
Merge pull request #123149 from mochizuki875/remove_probe_from_copy_pod
kubectl debug: Add --keep-* flag to control the removal of probes, labels, annotations, and initContainers from copy pod
2024-05-16 17:35:53 -07:00
Monis Khan
974e2d956e
Ignore go.work.sum for fake workspaces
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-05-16 13:52:36 -04:00
mochizuki875
b63fa1300c Add keep options 2024-05-16 17:26:20 +00:00
carlory
7149cb9f5a Revert "Revert "remove legacycloudproviders from staging""
This reverts commit d9a0be3b01.
2024-05-15 20:10:09 +08:00