Commit Graph

11395 Commits

Author SHA1 Message Date
Gautier Delorme
3659bc8f7f prune type in preserve-unknown-fields objects
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
2020-11-09 21:23:50 +01:00
Kubernetes Prow Robot
8f6ffb24df Merge pull request #96236 from adtac/apfsnakecase
APF: use snake_case in metric labels
2020-11-06 02:20:50 -08:00
Kubernetes Prow Robot
bd95fb101d Merge pull request #94814 from adtac/preemption2
optimise defaultpreemption: enumerate fewer candidates
2020-11-05 21:18:50 -08:00
Tim Hockin
819ff9b087 Use topology labels instead of old beta names (#96033)
* Rename const for topology.../zone

* Rename const for topology.../region

* Rename const for failure-domain.../zone

* Rename const for failure-domain.../region

* Restore old names for compat
2020-11-05 20:26:50 -08:00
Kubernetes Prow Robot
cccd77bd3a Merge pull request #92968 from andrewsykim/endpointslice-termination
Add Terminating Condition to EndpointSlice
2020-11-05 19:32:50 -08:00
Kubernetes Prow Robot
4b30a88ab8 Merge pull request #96278 from cheftako/master
Switch GCP list calls to paginated calls.
2020-11-05 17:20:50 -08:00
Andrew Sy Kim
7cf19e5fb7 endpointslice API: rename 'accepting' condition to 'serving' condition
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-11-05 19:18:45 -05:00
Andrew Sy Kim
6e6d417993 endpointslice API: add accepting and terminating conditions
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-11-05 19:18:45 -05:00
Kubernetes Prow Robot
80c2f61939 Merge pull request #74363 from aanm/fix-client-go-metrics
client-go/rest: fix finalURLTemplate for url base == "/"
2020-11-05 16:14:50 -08:00
Kubernetes Prow Robot
226ea6b49d Merge pull request #96231 from deads2k/clean-up-feature
update features to indicate beta in comment
2020-11-05 15:17:04 -08:00
Walter Fender
1066d60630 Switch GCP list calls to paginated calls.
Three of the GCP list calls have paginated versions.
Switching those usages to the paginated versions.
Fixed go format.
2020-11-05 12:38:46 -08:00
Kubernetes Prow Robot
7b3c67b1c7 Merge pull request #96264 from verb/1.20-cli-bare-setimage
kubectl debug: allow set-image-only invocation
2020-11-05 10:53:38 -08:00
Kubernetes Prow Robot
569abbeb4e Merge pull request #96097 from rf232/datapol
Introduce a simple datapolicy library
2020-11-05 10:53:20 -08:00
Kubernetes Prow Robot
544f42ebcc Merge pull request #94893 from aubm/refactor-command-kubectl-create-priorityclass
Remove the dependency between create priorityclass command and genera…
2020-11-05 10:52:53 -08:00
Kubernetes Prow Robot
2bb92efa3c Merge pull request #96211 from feiskyer/fix-paging-issue
Fix paging issues when Azure API returns empty values with non-empty nextLink
2020-11-05 09:25:59 -08:00
Kubernetes Prow Robot
3e7e6c3455 Merge pull request #96111 from nilo19/feature/support-multiple-slb
Azure: Support multiple standard load balancers in one cluster
2020-11-05 09:25:42 -08:00
Kubernetes Prow Robot
11608f8c0c Merge pull request #95571 from eddiezane/ez/update-cobra
Update cobra dependency to v1.1.1
2020-11-05 09:25:33 -08:00
Kubernetes Prow Robot
374989e461 Merge pull request #95544 from SaiHarshaK/warn-race
warn user about resource being deleted
2020-11-05 09:25:21 -08:00
Kubernetes Prow Robot
662bffe4ad Merge pull request #95439 from HerrNaN/i18n
cleanup: use i18n.T on all command descriptions
2020-11-05 09:25:08 -08:00
Kubernetes Prow Robot
93aeff4ef0 Merge pull request #95292 from dougsland/kubectldiff
kubectl: allow users to use args with KUBECTL_EXTERNAL_DIFF
2020-11-05 09:24:54 -08:00
Adhityaa Chandrasekar
b16f36b251 APF metrics: set StabilityLevel to ALPHA
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-05 15:35:39 +00:00
Lee Verberne
d6024ce18d kubectl debug: allow set-image-only invocation 2020-11-05 15:51:23 +01:00
Rob Franken
f61bff7e46 Introduce a simple datapolicy library
The datapolicy fullfills the contracts needed to support the log
sanitization kep
(https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/1753-logs-sanitization)

The external types list is mostly a proof of concept now, and is open to
extension.
2020-11-05 15:41:56 +01:00
Aurélien Baumann
9fff7f70e6 Remove the dependency between create priorityclass command and generators 2020-11-05 09:33:19 -05:00
Kubernetes Prow Robot
ec1541c38f Merge pull request #96229 from adtac/apfrace
apiserver/filters test: fix data race and do not leak goroutines
2020-11-05 06:31:44 -08:00
Kubernetes Prow Robot
38f14f3874 Merge pull request #95876 from saschagrunert/proto
Propose seccomp/apparmor protobuf type definitions for CRI graduation
2020-11-05 06:31:08 -08:00
Kubernetes Prow Robot
dca4d8eb79 Merge pull request #86214 from shsjshentao/drain
return success if cordon node by replace
2020-11-05 06:30:55 -08:00
David Eads
73f7a9b394 update features to indicate beta in comment 2020-11-05 07:21:19 -05:00
Karl 'NaN' Wikström
cc8428566e cleanup: use i18n.T on all command descriptions
cleanup: use i18n.T only on string literals

cleanup: sort imports

Add i18n dependency for wait.go

Remove translation on envResource

cleanup: translate string instead of variable

cleanup: sort imports

cleanup: translate string literal only
2020-11-05 11:04:19 +01:00
André Martins
c039b02fa7 client-go/rest: fix finalURLTemplate for url base == "/"
In some environments, where url base is "/", it can cause all paths to
be presented in metrics with "{prefix}" as `groupIndex` is with the wrong
index. To fix the behavior in such environments, it was added a
conditional branch to check if the URL base is "/" and, thus, print the
metrics with the correct path, for example "api/v1/nodes/{name}" instead
of "{prefix}".

Fixes: 99248b8fe1 ("Rewrite finalURLTemplate used only for metrics because of dynamic client change")
Signed-off-by: André Martins <aanm90@gmail.com>
2020-11-05 10:12:37 +01:00
Kubernetes Prow Robot
e0a51c9e6b Merge pull request #93244 from Sh4d1/etcd_health_timeout
Allow configuration of etcd healthcheck timeout
2020-11-05 01:06:53 -08:00
Kubernetes Prow Robot
c0e88a352c Merge pull request #95986 from yue9944882/max-min-fairness
Mitigate wind-up problem in AP&F: prevent queue virtualStart lag
2020-11-04 22:50:53 -08:00
Qi Ni
667b2be621 Support multiple standard load balancers in one cluster 2020-11-05 14:12:50 +08:00
Kubernetes Prow Robot
b1d5816ada Merge pull request #96214 from obeyda/feature/fix-go-1-15-tests
testing: fix failing test on go 1.15.3
2020-11-04 18:11:16 -08:00
Kubernetes Prow Robot
dbd2be08fb Merge pull request #96020 from deads2k/dynamiclist
update fake dynamic client to return GVK
2020-11-04 18:11:06 -08:00
Kubernetes Prow Robot
7eaa7b4861 Merge pull request #95818 from ping035627/k8s-201023
Clean code: optimize some logs of mount
2020-11-04 18:10:53 -08:00
Kubernetes Prow Robot
468f9f6cac Merge pull request #96138 from verb/1.20-cli-debug-unalpha
Remove alpha from kubectl debug command invocation
2020-11-04 14:47:07 -08:00
Adhityaa Chandrasekar
a3d94b53ca optimise defaultpreemption: enumerate fewer candidates
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-04 22:39:58 +00:00
Adhityaa Chandrasekar
a2eb6d67ee apiserver/filters test: fix data race and do not leak goroutines
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-04 22:32:50 +00:00
Adhityaa Chandrasekar
f9d57a8d5d APF: use snake_case in metric labels
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-04 22:19:54 +00:00
Kubernetes Prow Robot
48fa50fb5e Merge pull request #95944 from wangyx1992/error-log-captialize
cleanup: fix some error log capitalization
2020-11-04 13:25:21 -08:00
Kubernetes Prow Robot
56c1be8317 Merge pull request #95603 from soltysh/api_extensions
Introduce api-extensions category in k8s apiserver
2020-11-04 13:25:07 -08:00
Kubernetes Prow Robot
583d01a9bf Merge pull request #93293 from soltysh/loading_precedence
kubeconfig: add explicit path, if specified to loading precedence
2020-11-04 13:24:53 -08:00
David Eads
f438345843 add GVK to fake dynamic client to match actual behavior 2020-11-04 14:57:18 -05:00
David Eads
eaac8b80ca demonstrate existing generated client and fake client behavior is consistent 2020-11-04 14:57:18 -05:00
Kubernetes Prow Robot
396b90f06c Merge pull request #95371 from staebler/plumb_channel_into_filters
plumb channel for lifetime of filter watermarks
2020-11-04 11:44:52 -08:00
David Eads
4dcf3807ac remove dead apiserver field 2020-11-04 14:35:13 -05:00
Lee Verberne
30262e9b14 Remove alpha from kubectl debug 2020-11-04 17:45:28 +01:00
Kubernetes Prow Robot
3f6ec26eef Merge pull request #96154 from rf232/update_klog
Update Klog dependency
2020-11-04 08:16:04 -08:00
staebler
6c9b866468 do not allow inflight watermark histograms to fall too far behind
The MaxInFlight and PriorityAndFairness apiserver filters maintain
watermarks with histogram metrics that are observed when requests
are handled. When a request is received, the watermark observer
needs to fill out observations for the entire time period since the
last request was received. If it has been a long time since a
request has been received, then it can take an inordinate amount of
time to fill out the observations, to the extent that the request
may time out. To combat this, these changes will have the filters
fill out the observations on a 10-second interval, so that the
observations never fall too far behind.

This follows a similar approach taken in
9e89b92a92.

https://github.com/kubernetes/kubernetes/issues/95300

The Priority-and-Fairness and Max-in-Flight filters start goroutines to
handle some maintenance tasks on the watermarks for those filters. Once
started, these goroutines run forever. Instead, the goroutines should
have a lifetime tied to the lifetime of the apiserver.

These changes move the functionality for starting the goroutines to
a PostStartHook. The goroutines have been changed to accept a stop channel
and only run until the stop channel is closed.
2020-11-04 11:00:44 -05:00