Commit Graph

15053 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f4046f9e6d Merge pull request #107507 from alexzielenski/client-preprocess-handler
Add configuration point to SharedInformer to transform objects before storing
2022-01-24 14:31:27 -08:00
Kubernetes Prow Robot
321b411784 Merge pull request #107088 from joejulian/dry-run-metadata
strip dry-run metadata unwanted fields
2022-01-24 14:31:15 -08:00
Kubernetes Prow Robot
c225bdd552 Merge pull request #106828 from MadhavJivrajani/watch-cache-interval-impl
cacher: Implement watchCacheInterval to reduce watchCache lock contention
2022-01-24 07:07:57 -08:00
Madhav Jivrajani
347607e971 cacher: watchCacheInterval to reduce lock contention
watchCacheInterval serves as an abstraction over a source
of watchCacheEvents. It maintains a window of events over
an underlying source and these events can be served using
the exposed Next() API. The main intent for doing things
this way is to introduce an upper bound of memory usage
for starting a watch and reduce the maximum possible time
interval for which the lock would be held while events are
copied over.

The source of events for the interval is typically either
the watchCache circular buffer, if events being retrieved
need to be for resource versions > 0 or the underlying
implementation of Store, if resource version = 0.

Furthermore, an interval can be either valid or invalid at
any given point of time. The notion of validity makes sense
only in cases where the window of events in the underlying
source can change over time - i.e. for watchCache circular
buffer. When the circular buffer is full and an event needs
to be popped off, watchCache::startIndex is incremented. In
this case, an interval tracking that popped event is valid
only if it has already been copied to its internal buffer.
However, for efficiency we perform that lazily and we mark
an interval as invalid iff we need to copy events from the
watchCache and we end up needing events that have already
been popped off. This translates to the following condition:
  watchCacheInterval::startIndex >= watchCache::startIndex.
When this condition becomes false, the interval is no longer
valid and should not be used to retrieve and serve elements
from the underlying source.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-01-24 19:35:53 +05:30
Nabarun Pal
0d21caee1c staging/publishing: update branch rules to reflect new Go versions 1.17.6 and 1.16.13
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-01-22 12:46:17 -05:00
Kubernetes Prow Robot
05701a1309 Merge pull request #107688 from liggitt/prune-array
Fix regression pruning array fields with x-kubernetes-preserve-unknown-fields: true
2022-01-21 19:55:52 -08:00
Kubernetes Prow Robot
3e9eddb8fe Merge pull request #107682 from slaskawi/fix_kubectl_explain_description_printer
Fix printing control character in kubectl explain
2022-01-21 15:01:19 -08:00
Kubernetes Prow Robot
d10161b45b Merge pull request #105632 from xens/fix/kubectl-socks5-proxy2
Add SOCKS5 proxy support for kubectl exec
2022-01-21 15:01:06 -08:00
Jordan Liggitt
acb8d4ed20 Fix regression pruning array fields with x-kubernetes-preserve-unknown-fields: true 2022-01-21 14:06:49 -05:00
Kubernetes Prow Robot
e7e58de49f Merge pull request #107657 from astraw99/fix-label-msg
Fix label msg when overwrite flag is set
2022-01-21 04:51:59 -08:00
Romain Aviolat
0a98875e95 feat: add missing SOCKS5 features
Goal of this commit is to add some missing features when the
Kubernetes API is accessed through a SOCKS5 proxy. That's for
example the case when port-forwarding is used (`kubectl port-forward`)
or when exec'ing inside a container (`kubectl exec`), with this
commit it'll now be possible to use both.

Signed-off-by: Romain Aviolat <romain.aviolat@kudelskisecurity.com>
Signed-off-by: Romain Jufer <romain.jufer@kudelskisecurity.com>
2022-01-21 11:49:41 +01:00
Sebastian Laskawiec
e4dbaef3cc Fix printing control character in kubectl explain 2022-01-21 09:22:49 +01:00
Kubernetes Prow Robot
8d0d428ddd Merge pull request #105142 from pacoxu/cespare-2.1.2
upgrade github.com/cespare/xxhash/v2 to v2.1.2
2022-01-20 14:48:29 -08:00
Kubernetes Prow Robot
6faa4f0010 Merge pull request #107456 from tkashem/apf-ssa
apf: change controller to use SSA for patches
2022-01-20 13:44:29 -08:00
Kubernetes Prow Robot
33a2c50bce Merge pull request #106629 from tkashem/apf-dispatch-metrics
apf: add metric to track dispatch with no accommodation
2022-01-20 09:57:36 -08:00
Kubernetes Prow Robot
9c3a0e63a7 Merge pull request #107588 from discordianfish/fix-readme
Include applying subresource in Running section
2022-01-20 08:01:52 -08:00
Alexander Zielenski
754bf3b3d0 modify SharedIndexInformer to use newInformer constructor which supports transformers
avoids code duplication, allows transformer to be used with SharedIndexInformer
2022-01-20 06:25:28 -08:00
astraw99
83fe357f3e fix label msg 2022-01-20 12:13:38 +08:00
Kubernetes Prow Robot
184daed0db Merge pull request #107559 from liggitt/invalid-selectors
Handle invalid selectors properly
2022-01-19 14:49:31 -08:00
Abu Kashem
30c0485e0c apf: add metric to track dispatch with no accommodation 2022-01-19 15:35:25 -05:00
Abu Kashem
d9f4d6507b apf: change controller to use SSA for patches 2022-01-19 14:56:53 -05:00
-e
8a4e66049e upgrade prometheus/client_golang to v1.12.0(common to v0.32.1) 2022-01-19 22:30:33 +08:00
-e
cbe72f5d0b upgrade cespare/xxhash/v2 to v2.1.2 2022-01-19 22:17:27 +08:00
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
Johannes 'fish' Ziemke
19bfbfd363 Include applying subresource in Running section
Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
2022-01-16 15:01:01 +01:00
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
Jordan Liggitt
c0af728f43 Handle invalid selectors properly 2022-01-14 12:11:02 -05: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