Commit Graph

11797 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
bf713ec936 Merge pull request #96680 from DataDog/hemanth.malla/nlc_event_type
Using UpperCamelCase event reason - DeletingNode, instead of verbose msg
2020-12-08 18:35:40 -08:00
Kubernetes Prow Robot
31fd5671ae Merge pull request #96673 from jsafrane/fix-cinder-16
Fix Cinder volume detection on OpenStack Train
2020-12-08 18:35:31 -08:00
Kubernetes Prow Robot
58287f3cb6 Merge pull request #96660 from KobayashiD27/staticcheck_in_endpoints_request
fix staticchekc failer in apiserver/pkg/endpoints/request
2020-12-08 18:34:57 -08:00
Kubernetes Prow Robot
e3bf0cc4ae Merge pull request #96643 from bboreham/lose-timestamp
Remove unused argument from generateEvent
2020-12-08 18:34:39 -08:00
Kubernetes Prow Robot
cb8ad64243 Merge pull request #96632 from sbueringer/pr-fix-staticcheck-apiserver-server
fix staticcheck: vendor/k8s.io/apiserver/pkg/server/{options,storage}
2020-12-08 17:30:07 -08:00
Kubernetes Prow Robot
59606fdb44 Merge pull request #96491 from prameshj/ilblog
Check Backend service by name instead of path in GCE LB code.
2020-12-08 17:29:00 -08:00
Kubernetes Prow Robot
5664482714 Merge pull request #96402 from lala123912/cc_4
fix staticcheck:vendor/k8s.io/kubectl/pkg/cmd/scale
2020-12-08 17:28:35 -08:00
Kubernetes Prow Robot
83b2c7a1bf Merge pull request #96311 from thockin/kep-1659-topology-labels
Convert users of old failure-domain labels to new
2020-12-08 17:28:27 -08:00
Kubernetes Prow Robot
403d0cdc28 Merge pull request #95790 from aojea/loopnet
autodetect global addresses on loopback interfaces
2020-12-08 16:29:36 -08:00
Kubernetes Prow Robot
4f2c21f9e8 Merge pull request #93549 from Dean-Coakley/fix-res-quota-comments
Fix ResourceQuota comments
2020-12-08 16:28:36 -08:00
Kubernetes Prow Robot
d61429975f Merge pull request #92342 from gavinfish/serverconfig-typo
Fix typo in apiserver config.file file
2020-12-08 16:28:17 -08:00
Kubernetes Prow Robot
4425569da6 Merge pull request #89688 from cprayer/kubectl-808
Added 'No resources found' message to logs command
2020-12-08 16:27:54 -08:00
Kubernetes Prow Robot
1b1b5ed890 Merge pull request #88771 from prameshj/customsubnet
Remove feature gate for ILB Custom Subnet.
2020-12-08 16:27:42 -08:00
Nikhita Raghunath
d8f9ac446c staging/publishing: fix rules for 1.20 2020-12-02 10:49:34 +05:30
Nikhita Raghunath
cda4e25f33 staging/publishing: add release-1.20 rules 2020-12-02 03:00:48 +05:30
Kubernetes Prow Robot
5ed4b76a03 Merge pull request #96421 from dgrisonnet/fix-apiservice-availability
Fix aggregator_unavailable_apiservice gauge
2020-11-26 07:24:19 -08:00
Jiaxun Song
ae1e452e7d fix: change disk client API version for Azure Stack 2020-11-23 23:13:19 -08:00
Stephen Augustus
3598ccae8e [go1.15] staging/publishing: Set default go version to go1.15.5
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-11-23 20:49:59 -05:00
Kubernetes Prow Robot
2ea6828ea0 Merge pull request #96720 from liggitt/throttled-logger
Deflake ThrottledLogger test
2020-11-20 13:56:22 -08:00
Kubernetes Prow Robot
7d72ddca6e Merge pull request #96705 from andyzhangx/resize-fix
fix: resize Azure disk issue when it's in attached state
2020-11-19 21:36:51 -08:00
Kubernetes Prow Robot
06b0179895 Merge pull request #96662 from wojtek-t/fix_starting_rv_test
Fix TestStartingResourceVersion flakiness
2020-11-19 19:14:51 -08:00
Jordan Liggitt
afd92b3b3e Revert "plumb context with request deadline"
This reverts commit 83f869ee13.
2020-11-19 18:15:04 -05:00
Jordan Liggitt
3e21057070 Revert "use default value when the specified timeout is 0s"
This reverts commit 0090e27bd3.
2020-11-19 18:13:37 -05:00
Kubernetes Prow Robot
d0398c395a Merge pull request #96185 from roycaihw/dedup-owner-references
Apiserver dedups owner references before creating/updating objects
2020-11-19 14:54:52 -08:00
Jordan Liggitt
c84df5d66e Deflake ThrottledLogger test 2020-11-19 13:59:27 -05:00
andyzhangx
0d38026687 fix: resize Azure disk issue when it's in attached state
fix comments
2020-11-19 14:27:10 +00:00
Damien Grisonnet
b525f9e0ed kube-aggregator: fix apiservice availability gauge
When an apiservice is deleted, its relative
aggregator_unavailable_apiservice metric remains with the value of the
last availability observed. Hence, if an apiservice is deleted while
being unavailable, the metric remains marked as unavailable.
This presents some problems when alerting on unavailable apiservices
as deleted apiservices might trigger the alert indefinitely.

To solve this issue, the aggregator_unavailable_apiservice metric should
only reflect the availability of existing apiservices.

This is achievable by using a custom Collector instead of a GaugeVec and
create throw-away metrics based on an apiservice lister output. With
this approach, on deletion, the apiservice will not be listed anymore,
resulting in its availability metric not being exposed.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-11-19 11:20:42 +01:00
wojtekt
37b0004978 Fix TestStartingResourceVersion flakiness 2020-11-19 07:56:17 +01:00
Haowei Cai
40a65577c7 generated 2020-11-18 12:48:26 -08:00
Haowei Cai
8bcf34a203 unit and integration tests
apiserver dedups and adds warning in CREATE/UPDATE/PATCH requests;
also handles duplication caused by mutating admission.
2020-11-18 12:46:20 -08:00
Haowei Cai
ffc54ed1d2 apiserver dedups owner references and adds warning
for CREATE and UPDATE requests, we check duplication before managedFields
update, and after mutating admission; for PATCH requests, we check
duplication after mutating admission
2020-11-18 12:35:45 -08:00
Kubernetes Prow Robot
b381baab66 Merge pull request #96681 from tkashem/request-timout-e2e
Use default value when the specified timeout for a request is 0s
2020-11-18 11:44:05 -08:00
Abu Kashem
0090e27bd3 use default value when the specified timeout is 0s 2020-11-18 12:01:27 -05:00
Jan Safranek
92c3895115 Fix Cinder volume detection on OpenStack Train
Newer OpenStack does not truncate volumeID to 20 characters.
/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_033fa19a-a5e3-445a-8631-3e9349e540e5
was seen on an OpenStack Train node.
2020-11-18 14:46:05 +01:00
Kubernetes Prow Robot
b3fc888863 Merge pull request #96586 from Doude/for/upstream/master/96585
Fixes fake client test generation
2020-11-18 01:44:05 -08:00
Kobayashi Daisuke
fa68cda13f fix staticchekc failer in apiserver/pkg/endpoints/request 2020-11-18 15:28:35 +09:00
Kubernetes Prow Robot
afeac926fa Merge pull request #95981 from caesarxuchao/http2-healthcheck
Enables HTTP/2 health check
2020-11-17 14:48:05 -08:00
Hemanth Malla
2b697e68f3 Using UpperCamelCase event reason - DeletingNode, instead of verbose msg 2020-11-17 17:12:20 -05:00
Bryan Boreham
beceee6815 Remove unused argument from generateEvent 2020-11-17 16:51:10 +00:00
Jordan Liggitt
e491c3bc70 Add GC unit tests
Adds unit tests covering the problematic scenarios identified
around conflicting data in child owner references

                      Before   After
package level         51%      68%
garbagecollector.go   60%      75%
graph_builder.go      50%      81%
graph.go              50%      68%

Added/improved coverage of key functions that had lacking unit test coverage:

* attemptToDeleteWorker
* attemptToDeleteItem
* processGraphChanges (added coverage of all added code)
2020-11-17 10:49:32 -05:00
Stefan Bueringer
6190b87927 rollback httplog change 2020-11-17 12:56:47 +01:00
Stefan Bueringer
ed0adcb65e fix staticcheck: vendor/k8s.io/apiserver/pkg/server 2020-11-17 11:58:13 +01:00
Pavithra Ramesh
a65675f1b7 Avoid checking the entire backend service URL for FR equality.
Check only the resource name, since the path could have differences like
"www.googleapis.com" vs "compute.googleapis.com"

Add a log message for what changed in the ILB forwarding rule.

updated BUILD

Follow up comments and unit tests
2020-11-16 23:13:52 -08:00
Chao Xu
15648f1a7b allow configuring ReadIdelTimeout and PingTimeout via env var 2020-11-15 21:40:04 +00:00
Chao Xu
ba7b1f7a89 Add a unit test testing the HTTP/2 health check help the REST client
detects broken TCP connections.
2020-11-15 21:40:04 +00:00
cprayer
00083d1535 Added 'No resources found' message to logs command 2020-11-15 11:47:28 +09:00
Antonio Ojea
432e74d245 get ips from loopback interfaces 2020-11-14 22:11:41 +01:00
Abu Kashem
83f869ee13 plumb context with request deadline
- as soon as a request is received by the apiserver, determine the
timeout of the request and set a new request context with the deadline.
- the timeout filter that times out non-long-running requests should
use the request context as opposed to a fixed 60s wait today.
- admission and storage layer uses the same request context with the
deadline specified.
2020-11-14 11:54:17 -05:00
Edouard Thuleau
e4bd128ec6 Fixes fake client test generation
The test code generation for create subresource was missing the resource
name parameter in the template which caused a compile error for the
sample projects using the scale subresource. That only occurs with
non-namespaced resource kind.
Also re-ran the code generation after applying the fix.
2020-11-14 11:03:50 +01:00
Kubernetes Prow Robot
05d1b94a70 Merge pull request #96317 from Jefftree/test-ssa
Integrate defaults marker to defaulter-gen
2020-11-13 22:35:03 -08:00