Commit Graph

15027 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
fb26256803
Merge pull request #106845 from jdnurme/controller-metrics
Controller metrics
2022-01-18 21:06:05 -08:00
Kubernetes Prow Robot
ba1fc6f83c
Merge pull request #107612 from palnabarun/releng/go-update
[go] update to Go 1.17.6
2022-01-18 12:02:34 -08:00
Kubernetes Prow Robot
40055e45a8
Merge pull request #107606 from xens/feat/propagate_req_context_into_proxyreq
feat: propagate req context into proxyReq
2022-01-18 12:02:22 -08:00
Kubernetes Prow Robot
ab4801c4f3
Merge pull request #107439 from brianpursley/kubectl-1157-2
Fix kubectl bug where bash completions don't work if --context flag is specified with a value that contains a colon
2022-01-18 12:02:10 -08:00
JD Nurme
6d2dd9952b updated name to address han's comments 2022-01-18 19:33:41 +00:00
Kubernetes Prow Robot
dc06c3faf3
Merge pull request #107316 from MikeSpreitzer/fix-apf-feature-alpha
Explain rollout of API Priority and Fairness in kube_features.go
2022-01-18 10:19:10 -08:00
Kubernetes Prow Robot
24b0c3ce13
Merge pull request #107603 from jayesh-srivastava/IANA-links
Updated Links to IANA for Service Name and Transport Protocol Port Number Registry
2022-01-18 07:11:21 -08:00
Ismayil Mirzali
75c0987de3
client-go: refactor: Fix styling issues (#107248)
* client-go: Remove unreachable return

Due to the way the switch statement is done,
the return at the end of the function will neverbe reached.

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>

* client-go: Refactor for clarity

Fixed one instance where the error message should be lowercase.
Made the fields in the struct literal more explicit

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
2022-01-18 02:03:08 -08:00
Nabarun Pal
77816bd9b1
[go] update to Go 1.17.6
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-01-18 14:35:24 +05:30
Romain Aviolat
a5e41daaa4
feat: propagate req context into proxyReq
Goal of this commit is to propagate req context into proxyReq
so it propagates to proxyClientConn.Do.

This change is linked to PR #105632
2022-01-17 15:57:17 +01:00
Jayesh Srivastava
c5fcc0ff44 Update IANA links 2022-01-17 18:48:08 +05:30
Kubernetes Prow Robot
22a03f893d
Merge pull request #107207 from ehashman/deprecate-log-sanitization
Deprecate dynamic log sanitization
2022-01-15 15:19:26 -08:00
Kubernetes Prow Robot
7bde4baac4
Merge pull request #107406 from andyzhangx/delete-disk-error
fix: delete non existing Azure disk issue
2022-01-14 18:21:40 -08:00
Kubernetes Prow Robot
a4931cc411
Merge pull request #107551 from wojtek-t/remove_unused_selflink_test_references
Remove unused selflink references in different testing-related files
2022-01-14 16:49:40 -08:00
Jiahui Feng
31205dc7d9 generated: ./hack/update-vendor.sh 2022-01-14 10:31:44 -08:00
Jiahui Feng
821912a751 upgrade sigs.k8s.io/structured-merge-diff/v4 to v4.2.1 2022-01-14 10:30:39 -08:00
Kubernetes Prow Robot
4e1306ca79
Merge pull request #107540 from dims/validate-owners-files-remove-sections-on-emeritus-reviewers
Validate OWNERS files - remove sections about emeritus reviewers
2022-01-14 07:03:50 -08:00
Wojciech Tyczyński
551790729f Remove selflink references in different testing-related files 2022-01-14 12:58:05 +01:00
Kubernetes Prow Robot
03bcfab1a6
Merge pull request #106164 from nilo19/fix/route
fix: remove outdated ipv4 route when the corresponding node is deleted
2022-01-13 22:14:27 -08:00
Kubernetes Prow Robot
35c8975710
Merge pull request #105387 from howardjohn/metadata-client/tracker
Make metadata fake client implement testing.FakeClient
2022-01-13 19:22:27 -08:00
Davanum Srinivas
8d43d0bc24
Validate OWNERS files - remove sections about emeritus reviewers
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-13 20:40:01 -05:00
Kubernetes Prow Robot
08fc9febb1
Merge pull request #106445 from majst01/fix-typo-in-cloudprovider
Fix typo
2022-01-13 14:28:29 -08:00
Kubernetes Prow Robot
01da891398
Merge pull request #107529 from humblec/vol-fields
storage: correct struct fields in volume plugins
2022-01-13 10:30:41 -08:00
Kubernetes Prow Robot
3bd422dc76
Merge pull request #107293 from dims/jan-1-owners-cleanup
Cleanup OWNERS files - Jan 2021 Week 1
2022-01-13 10:30:30 -08:00
Kubernetes Prow Robot
0669da445f
Merge pull request #107510 from MikeSpreitzer/order-flow-schemas
Order suggested FlowSchemas by matching precedence
2022-01-13 08:46:30 -08:00
Humble Chirammal
283022a88d storage: correct struct fields in volume plugins
This commit corrects struct field names in the godoc for various
storage volume plugins volume sources and persistent volume sources.

Additional Ref# #105963 (comment)

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-01-13 21:20:19 +05:30
Kubernetes Prow Robot
2f64227aea
Merge pull request #107429 from andyzhangx/azuredisk-translation-camel
fix: azuredisk parameter lowercase translation issue
2022-01-12 21:28:29 -08:00
Qi Ni
efeda3c32a fix: remove outdated ipv4 route when the corresponding node is deleted 2022-01-13 12:01:11 +08:00
Mike Spreitzer
798fc67a37 Order suggested FlowSchemas by matching precedence 2022-01-12 21:40:22 -05:00
Kubernetes Prow Robot
dad0c48959
Merge pull request #106594 from pohly/log-benchmark
logs: add benchmark
2022-01-12 18:01:08 -08:00
brianpursley
64fac6cf49 Upgrade Cobra from 1.2.1 to 1.3.0 to fix a bug where bash completions don't work when the kubectl command uses the --context flag to specify a context that contains a colon 2022-01-12 10:37:13 -05:00
Kubernetes Prow Robot
46c072d9d9
Merge pull request #106978 from pohly/log-message-verbosity
log message verbosity
2022-01-12 07:24:36 -08:00
Kubernetes Prow Robot
5bfc4286ee
Merge pull request #106943 from wojtek-t/graduate_watch_resumption_to_ga
Graduate EfficientWatchResumption feature to GA
2022-01-12 06:06:36 -08:00
Patrick Ohly
9eaa2dc554 avoid klog Info calls without verbosity
In the following code pattern, the log message will get logged with v=0 in JSON
output although conceptually it has a higher verbosity:

   if klog.V(5).Enabled() {
       klog.Info("hello world")
   }

Having the actual verbosity in the JSON output is relevant, for example for
filtering out only the important info messages. The solution is to use
klog.V(5).Info or something similar.

Whether the outer if is necessary at all depends on how complex the parameters
are. The return value of klog.V can be captured in a variable and be used
multiple times to avoid the overhead for that function call and to avoid
repeating the verbosity level.
2022-01-12 07:48:36 +01:00
Philip Hamer
ea2dff12e6
add test case for issue 106277 (PR 106268) (#106532)
* add test case for issue 106277 - fix edit of non-registered custom API types

* remove unneeded struct, as suggested
2022-01-11 15:53:23 -08:00
Kubernetes Prow Robot
7082bb90ad
Merge pull request #107192 from SergeyKanzhelev/cri-api-readme
synced up v1 and v1alpha2 CRI API comments and updated the readme
2022-01-11 10:48:54 -08:00
Kubernetes Prow Robot
fa52d44037
Merge pull request #107466 from humblec/new-field
correct struct fields in various core storage structs
2022-01-11 09:46:49 -08:00
Kubernetes Prow Robot
8f453c9d79
Merge pull request #107044 from pohly/cli-invalid-command
cli: avoid logging command line errors in more cases
2022-01-11 09:46:37 -08:00
Humble Chirammal
1cb0dd028f correct struct fields in various core storage structs
The field names in godoc for various core storage structs have been
corrected with this commit.

Additional Ref# #105963 (comment)

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-01-11 20:35:04 +05:30
Patrick Ohly
25c646cbdd json: never call fsync for stdout or stderr
We don't need to worry about data loss once the data has been written to an
output stream. Calling fsync unnecessarily has been the reason for performance
issues in the past.
2022-01-11 09:56:22 +01:00
Patrick Ohly
072859c967 logs: create separate test/integration directory
The benchmark depends on k8s.io/api (for v1.Container). Such a dependency is
not desirable for k8s.io/component-base/logs, even if it's just for
testing. The solution is to create a separate directory where such a dependency
isn't a problem.

The alternative, a separate package with its own go.mod file under
k8s.io/component-base/logs wouldd have been more complicated to maintain (yet
another go.mod file and different whitelisted dependencies).
2022-01-11 09:56:22 +01:00
Patrick Ohly
8e2f03d336 logs: add benchmark
The benchmark reads a JSON log file and measures how long it takes to re-encode
it. The focus is on the encoding of message and values, therefore additional
work (time stamping, caller, writing to file) gets avoided.
2022-01-11 09:56:21 +01:00
Patrick Ohly
40b38f09d9 json: more flexible constructor
The encoder configuration can now be chosen by the caller. This will be used by
a benchmark to write messages without caller and time stamp.

While at it, some places where the logger was unnecessarily tested with split
output streams writing into the same actual stream were replaced with writing
as single stream. This is a leftover from a previous incarnation of the split
output stream patch where identical streams were used instead of nil for the
error stream to indicate "single stream".
2022-01-11 09:56:21 +01:00
Kubernetes Prow Robot
3cec1d1a13
Merge pull request #107452 from liggitt/timeout_headers
Fix header mutation race in timeout filter
2022-01-10 14:36:37 -08:00
Mikhail Mazurskiy
0b8d725f5a
Close HTTP response body on failed GET attempts (#105591)
* Close response body when it's not needed

* Code cleanups
2022-01-10 11:40:26 -08:00
Jordan Liggitt
5b2a31f375 Fix header mutation race in timeout filter 2022-01-10 12:24:48 -05:00
Kubernetes Prow Robot
d1f559711d
Merge pull request #107441 from humblec/more-pv-source
correct struct fields in VolumeSource and PersistentVolumeSource
2022-01-10 09:07:24 -08:00
Patrick Ohly
a5d2d6fec3 cli: let kubectl handle error printing
cli.Run was an attempt to elliminate error handling in Kubernetes
commands. However, it had to rely on heuristics that are not necessarily right
for all commands.

kubectl is one example which has its own error printing code that should be
used in all cases after a command failure. It now gets used also for
`--warnings-as-errors`. Previously, that caused the following message to be
logged at the end:

  E0110 16:56:01.987555  202060 run.go:120] "command failed" err="1 warning received"

Now it ends with:

 error: 1 warning received
2022-01-10 17:09:30 +01:00
Davanum Srinivas
ba1f853b5a
Add mwielgus back
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-10 09:02:53 -05:00
Davanum Srinivas
3b2839f563
run update-yamlfmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-10 08:14:37 -05:00