Commit Graph

18659 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
64af2d93e5
Merge pull request #117295 from aojea/transport_cache_metrics
add new metric for the internal client-go cache size
2023-05-11 08:59:02 -07:00
Antonio Ojea
3f3e1d507d add new metrics for the internal client-go transport generator
Add two new metrics to monitor the client-go logic that
generate http.Transports for the clients.

- rest_client_transport_cache_entries is a gauge metrics
with the number of existin entries in the internal cache

- rest_client_transport_create_calls_total is a counter
that increments each time a new transport is created, storing
the result of the operation needed to generate it: hit, miss
or uncacheable

Change-Id: I2d8bde25281153d8f8e8faa249385edde3c1cb39
2023-05-11 09:07:11 +00:00
Sean Sullivan
5fdeaa8e42 update for feedback 2023-05-10 19:13:54 +00:00
Sean Sullivan
6f23c77408 QueryParamVerifier falls back on invalid v3 document 2023-05-10 18:30:16 +00:00
Kubernetes Prow Robot
5d524f3dc3
Merge pull request #117900 from skitt/ioutil-apimachinery-util
apimachinery/util: stop using deprecated io/ioutil
2023-05-10 10:59:10 -07:00
Kubernetes Prow Robot
f319dab8d9
Merge pull request #117899 from thockin/codegen_purge_openapi_shell_indirection
Simpler openapi gen - subprojects do themselves
2023-05-10 09:35:07 -07:00
gxwilkerson33
a5575425b0
add no resources found message to rollout-status command (#117884)
* add no resources found message to rollout-status command

* return err if not nil before no resource message
2023-05-10 06:02:58 -07:00
Kubernetes Prow Robot
626b2db1ca
Merge pull request #117335 from kkkkun/update-etcd-3.5.8
etcd: Update version to 3.5.8
2023-05-10 03:38:59 -07:00
Stephen Kitt
2c03afac4c
apimachinery/util: stop using deprecated io/ioutil
This replaces deprecated ioutil functions as follows:

* ioutil.NopCloser -> io.NopCloser
* ioutil.ReadAll -> io.ReadAll
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempFile -> os.CreateTemp

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-10 09:29:34 +02:00
Tim Hockin
6607834207
Use the same report files as before 2023-05-09 19:33:21 -07:00
Kubernetes Prow Robot
cd648c9c7d
Merge pull request #117114 from pohly/test-integration-race-detection-logs-registry
component-base: avoid data race in log format registry
2023-05-09 18:50:58 -07:00
Tim Hockin
ef796dca9b
Simpler openapi gen - subprojects do themselves
This involves moving the report files, but it allows me to delete the
indirect variable and indirect array code in update-codgen.  As proud as
I was of figuring that out, I am also ashamed of myself for doing it.

This is my atonement.
2023-05-09 16:24:18 -07:00
Tim Hockin
93b2845bec
Codegen: subprojects openapi
Use the "subprojects" aspect of update-codegen to generat openapi for
the subprojects.  Next we can simplify and remove the generic support.

apiextensions-apiserver seems like it was ALWAYS broken:
k8s.io/apiextensions/ doesn't exist, but k8s.io/apiextensions-apiserver
does.

Fixing that causes different openapi results, obviously.
2023-05-09 16:24:17 -07:00
Kubernetes Prow Robot
4c45313c3f
Merge pull request #115704 from AkihiroSuda/cri-rprivate
cri-api: fix comment lines about PROPAGATION_PRIVATE
2023-05-09 13:31:54 -07:00
Kubernetes Prow Robot
7cdf67ebf8
Merge pull request #117262 from thockin/codegen_new_script_for_subprojects
Codegen: a new script for subprojects to use
2023-05-09 11:02:09 -07:00
Kubernetes Prow Robot
b277afdf46
Merge pull request #116506 from HirazawaUi/fix-events-field
generate ReportingInstance and ReportingController in Event
2023-05-09 11:01:57 -07:00
Kubernetes Prow Robot
d96993fc1c
Merge pull request #117688 from liggitt/dynamic-version
Allow override of prerelease/buildID portions of version at runtime
2023-05-09 07:35:58 -07:00
Min Ni
e865b30abd
update serial number to a valid non-zero number in ca certificate (#117791)
* update serial number to a valid non-zero number in ca certificate

* fix the existing problem (0 SerialNumber in all certificate) as part of this PR in a separate commit
2023-05-09 06:34:08 -07:00
Kubernetes Prow Robot
9e9ec8f62c
Merge pull request #117539 from TommyStarK/fix-flaky/mount-utils-TestFormat
mount-utils: fix flaky test 'TestFormat'
2023-05-09 06:33:56 -07:00
Kubernetes Prow Robot
b248684334
Merge pull request #117741 from mowangdk/chore/clearify_testcases
Chore: clarify need update test cases
2023-05-09 00:18:52 -07:00
mowangdk
e79daae682 Chore: clearify need update test cases 2023-05-09 10:46:32 +08:00
Tim Hockin
fb4d0150b9
Convert apiextensions-apiserver to new codegen 2023-05-08 14:36:26 -07:00
Tim Hockin
29913a8973
Convert code-generator/examples to new codegen 2023-05-08 14:36:25 -07:00
Tim Hockin
643bf1b036
Convert kube-aggregator to new codegen
This caused some of the generated code to be sorted where it wasn't
before.
2023-05-08 14:36:24 -07:00
Tim Hockin
1e0b7aab75
Convert metrics to new codegen 2023-05-08 14:36:23 -07:00
Tim Hockin
e368f1b25b
Convert sample-controller to new codegen 2023-05-08 14:36:22 -07:00
Tim Hockin
d0e5adb58b
Add a new way for subprojects to do codegen
This script (k8s.io/code-generator/kube_codegen.sh) should be somewhat
easier to understand and maintain.

This commit converts one caller (sample-apiserver) to use it, which
exercises all 3 functions.  More to follow.
2023-05-08 14:36:21 -07:00
Kubernetes Prow Robot
5fd29596ef
Merge pull request #117862 from p0lyn0mial/upstream-watchlist-etcd-impl-compatibility
storage/etcd: skip SendInitialEvents if the request is backward compatible
2023-05-08 11:53:03 -07:00
Kubernetes Prow Robot
76552fac38
Merge pull request #114764 from claudiubelu/unittests-7
unittests: Fixes unit tests for Windows (part 7)
2023-05-08 11:52:51 -07:00
Kubernetes Prow Robot
6442024f1c
Merge pull request #116779 from jpbetz/cel-ratcheting
Controlled rollout of CEL libraries and language feautres
2023-05-08 09:51:40 -07:00
Joe Betz
e740f8340e Introduce CEL EnvSets for managing safe rollout of new CEL features, libraries and expression variables 2023-05-08 11:52:31 -04:00
Lukasz Szaszkiewicz
f2de1a00b8 storage/etcd: skip SendInitialEvents if the request is backward compatible
otherwise an error will be returned.
backward compatibility is defined as RV = "" || RV = "O" and AllowWatchBookmark is set to false.
in that case we rely on 267eb25e60/staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go (L260)
2023-05-08 15:59:31 +02:00
Claudiu Belu
d3237b7258 unittests: Fixes unit tests for Windows (part 7)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- if a powershell command that could return an array (e.g.: Get-Disk) would return an array of
  only one element, powershell will in fact return that object directly, and **not** an array
  containing that element. In a few cases, these commands are used and their output is converted
  to json, after which they're unmarshalled in golang, with the expectation that the unmarshalled
  data to be an array. If it's not an array, we get an error.
- when mounting Block Devices, Windows expects the given source to be a Disk Number, not a path.
- for rbd_windows_test.go, we should start with Disk Number 0, which exists on all hosts.
- if a Disk has multiple volumes, Get-Volume doesn't return the volumes in the same order. This
  can result in various assertions failing.
- the pkg/volume/rbd/rdb_test.TestPlugin test expects that mounter.MountSensitive is called when
  attacher.MountDevice is called. The Windows attacher doesn't currently make that call.
2023-05-08 10:53:39 +00:00
Kubernetes Prow Robot
6aa68d6a8b
Merge pull request #117802 from kerthcet/cleanup/update-PodFailurePolicy-field
Update podFailurePolicy comments
2023-05-06 15:31:17 -07:00
Kubernetes Prow Robot
54da29dd56
Merge pull request #117426 from cbandy/kubectl-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests
2023-05-06 07:23:15 -07:00
Kubernetes Prow Robot
c44b2ed0d8
Merge pull request #117342 from kkkkun/update-etcd-deps-3.5.8
upgrade etcd deps to v3.5.8
2023-05-06 06:19:17 -07:00
kkkkun
57969c1b52 Fix etcd3 config changed 2023-05-06 19:40:40 +08:00
kkkkun
c56839c0a1 etcd: Update version to 3.5.8
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-05-06 17:29:47 +08:00
Kubernetes Prow Robot
af92da5cb7
Merge pull request #117717 from saschagrunert/invalid-signature-error
Add support for CRI `ErrSignatureValidationFailed`
2023-05-05 10:39:25 -07:00
kerthcet
c3e77bf21c Update podFailurePolicy comments from alpha-level to beta
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-05 21:23:42 +08:00
Kubernetes Prow Robot
7e25f1232a
Merge pull request #117211 from HirazawaUi/add-auth-metrics
add Authorization tracking request/error counts and latency metrics
2023-05-05 03:19:14 -07:00
TommyStarK
1c45bacfb0 mount-utils: fix flaky test 'TestFormat'
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-05-05 11:20:46 +02:00
Kubernetes Prow Robot
940101e07e
Merge pull request #117422 from cbandy/client-go-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests
2023-05-05 01:05:12 -07:00
Kubernetes Prow Robot
dea1312e03
Merge pull request #117677 from Huang-Wei/fix-quota-priorityclass
🐛 Fix incorrect calculation for ResourceQuota with PriorityClass as its scope
2023-05-04 17:59:12 -07:00
Wei Huang
359bcec0e0
benchmark test to evaluate the overhead of podMatchesScopeFunc 2023-05-04 17:02:47 -07:00
Kubernetes Prow Robot
8aa49a7955
Merge pull request #117243 from jsafrane/vsphere-node-informer
Add node check to vSphere cloud provider
2023-05-04 14:37:13 -07:00
Marko Mudrinić
1c52fb3875
Update publishing-bot rules for release branches to Go 1.19.9
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-05-04 11:17:09 +02:00
Kubernetes Prow Robot
7efa07c74e
Merge pull request #117380 from yulng/dryrun1
Remove GA feature gates in 1.28 about DryRun
2023-05-03 23:54:41 -07:00
Sascha Grunert
63b69dd50c
Add support for CRI ErrSignatureValidationFailed
This allows container runtimes to propagate an image signature
verification error through the CRI and display that to the end user
during image pull. There is no other behavioral difference compared to a
regular image pull failure.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-05-04 08:34:11 +02:00
Sean Sullivan
8969fdd2f5 QueryParamVerifierV3 resilient to minimal OpenAPI V3 documents 2023-05-03 17:11:45 -07:00