Commit Graph

10808 Commits

Author SHA1 Message Date
Monis Khan
0bc62112ad Allow handlers early in the request chain to set audit annotations
This change adds the generic ability for request handlers that run
before WithAudit to set annotations in the audit.Event.Annotations
map.

Note that this change does not use this capability yet. Determining
which handlers should set audit annotations and what keys and values
should be used requires further discussion (this data will become
part of our public API).

Signed-off-by: Monis Khan <mok@vmware.com>
2020-04-08 19:52:23 -04:00
Kubernetes Prow Robot
b3837f858a Merge pull request #89942 from dims/update-fsnotify-to-pick-up-bug-fixes
Updating dependency github.com/fsnotify/fsnotify to version v1.4.9
2020-04-08 16:47:57 -07:00
Marek Siarkowicz
24321b2d4e Refactor show-hidden-metric-for-version flag 2020-04-08 22:42:14 +02:00
Gaurav Singh
29ceb8d5f2 Remove double import of k8s.io/apimachinery/pkg/util/net 2020-04-08 16:25:23 -04:00
Rafał Wicha
c4d20ca8a8 Add types for Scheduler plugin args to kube-scheduler.config.k8s.io 2020-04-08 20:23:56 +01:00
Kubernetes Prow Robot
3c3fc800df Merge pull request #89881 from embano1/etcd-leader-ctx
Add etcd WithRequireLeader option to API watches
2020-04-08 09:09:44 -07:00
Kubernetes Prow Robot
6747678a39 Merge pull request #88464 from brianpursley/kubernetes-86130
Fixed bug where jsonpath expression with nested range produces wrong output
2020-04-07 18:47:57 -07:00
Davanum Srinivas
eee5235d25 Updating dependency github.com/fsnotify/fsnotify to version v1.4.9
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-07 20:50:27 -04:00
Kubernetes Prow Robot
172553bf94 Merge pull request #89926 from wojtek-t/cleanup_default_conversions_2
Stop relying on default conversions for metav1beta1 and e2e-node tests
2020-04-07 16:46:23 -07:00
Michael Gasch
70c9f770d7 Add etcd WithRequireLeader option to API watches
Watches against etcd in the API server can hang forever if the etcd
cluster loses quorum, e.g. the majority of nodes crashes. This fix
improves responsiveness (detection and reaction time) of API server
watches against etcd in some rare (but still possible) edge cases so
that watches are terminated with `"etcdserver: no leader"
(ErrNoLeader)`.

Implementation behavior described by jingyih:

```
The etcd server waits until it cannot find a leader for 3 election
timeouts to cancel existing streams. 3 is currently a hard coded
constant. The election timeout defaults to 1000ms.

If the cluster is healthy, when the leader is stopped, the leadership
transfer should be smooth. (leader transfers its leadership before
stopping). If leader is hard killed, other servers will take an election
timeout to realize leader lost and start campaign.
```

For further details, discussion and validation see
https://github.com/kubernetes/kubernetes/issues/89488#issuecomment-606491110
and https://github.com/etcd-io/etcd/issues/8980.

Closes: https://github.com/kubernetes/kubernetes/issues/89488

Signed-off-by: Michael Gasch <mgasch@vmware.com>
2020-04-07 22:42:08 +02:00
wojtekt
466acf62e3 Move unstructured test to better place 2020-04-07 17:19:26 +02:00
wojtekt
248a75f9f4 Stop relying on default conversions for metav1beta1 2020-04-07 17:19:00 +02:00
Morten Hauberg
5fe57c6148 Remove double kubectl from output 2020-04-07 12:54:26 +02:00
Kubernetes Prow Robot
41856db7b8 Merge pull request #88270 from brianpursley/duration-2y0d
Add unit tests for human readable duration functions
2020-04-07 03:25:43 -07:00
Kubernetes Prow Robot
38f0a8bc74 Merge pull request #89652 from liggitt/relist-timeout
Fix client watch reestablishment handling of client-side timeouts
2020-04-07 01:15:44 -07:00
Kubernetes Prow Robot
871ca4b2a7 Merge pull request #89902 from wojtek-t/ilb_for_large_clusters
Fix setting up internal load balancer for GCE
2020-04-06 17:47:57 -07:00
Kubernetes Prow Robot
cabf5d1cdc Merge pull request #89350 from SataQiu/fix-kube-proxy-20200323
kube-proxy: treat failure to bind to a port as fatal
2020-04-06 17:47:20 -07:00
Kubernetes Prow Robot
f8176abe43 Merge pull request #89858 from tedyu/api-svr-err-etcd
kube-apiserver should exit with error if not able to connect to etcd
2020-04-06 13:48:13 -07:00
Kubernetes Prow Robot
9c3b5887d2 Merge pull request #89821 from wojtek-t/cleanup_apimachinery_tests
Cleanup apimachinery tests and stop relying on default conversions
2020-04-06 13:48:00 -07:00
wojtekt
c6f6972958 Fix GCE ILB for large clusters 2020-04-06 20:17:12 +02:00
wojtekt
3fb80a6d82 Fix default conversion for pkg/runtime tests 2020-04-06 18:07:10 +02:00
Ted Yu
8d90805c4b kube-apiserver should exit with error if not able to connect to etcd
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-06 08:47:15 -07:00
Andrew Sy Kim
2e56866c97 move apparmor annotation constants to k8s.io/api/core/v1
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-04-06 10:22:04 -04:00
Kubernetes Prow Robot
c1f1b1bceb Merge pull request #89848 from seans3/kubectl-apply-fix
Even with build error, kubectl apply should apply all valid resources
2020-04-05 18:57:46 -07:00
Kubernetes Prow Robot
b3db9d3c6c Merge pull request #89857 from tedyu/hdr-protocol-ver
Correctly parse X-Stream-Protocol-Version header
2020-04-05 17:21:46 -07:00
Kubernetes Prow Robot
07c556f40e Merge pull request #89822 from jingyih/update_etcd_client_3p4p7
Update etcd client to v3.4.7 in k8s v1.19
2020-04-05 15:15:46 -07:00
Sean R. Sullivan
748ad74245 Even with build error, kubectl apply should apply all valid resources 2020-04-04 15:48:31 -07:00
Kubernetes Prow Robot
5ea2d69ccd Merge pull request #89834 from spiffxp/update-gengo
Update k8s.io/gengo to e0e292d8aa12
2020-04-04 12:11:45 -07:00
Ted Yu
8aada68c99 Correctly parse X-Stream-Protocol-Version header
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-04 09:15:53 -07:00
Kubernetes Prow Robot
7c6473b7c9 Merge pull request #87329 from windmilleng/nicks/informer-error-handling
cache: add error handling to informers
2020-04-04 08:35:46 -07:00
Kubernetes Prow Robot
1cf634d24c Merge pull request #87821 from tedyu/cfg-map-update
Check Annotations map against nil for ConfigMapLock#Update()
2020-04-03 22:41:46 -07:00
Jordan Liggitt
8b9165839f k8s.io/kube-openapi v0.0.0-20200403204345-e1beb1bd0f35
fix client-side validation to allow a value of 0 for a number field
2020-04-03 22:18:49 -04:00
Jordan Liggitt
aeef92b3bd Preserve int/float distinction when decoding raw values 2020-04-03 22:18:44 -04:00
Connor Gorman
aa57a36b0e Make DefaultChanSize an exported var so it can be modified 2020-04-03 17:58:52 -07:00
Ted Yu
086d6ae9bb Check Annotations map against nil for ConfigMapLock#Update()
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-03 16:47:19 -07:00
Aaron Crickenberger
f9538b118d Update k8s.io/gengo to e0e292d8aa12
This is mainly to pick up the bugfix for reducing log noise while
running import-boss
2020-04-03 14:40:22 -07:00
Kubernetes Prow Robot
d911254deb Merge pull request #89704 from liggitt/gnostic
github.com/googleapis/gnostic v0.4.1
2020-04-03 14:19:46 -07:00
Kubernetes Prow Robot
cfc845be63 Merge pull request #89747 from alvaroaleman/add-ass-validated-selector
apimachinery/pkg/labels: add SelectorFromSet
2020-04-03 12:33:46 -07:00
wojtekt
8eb60c2474 Remove k8s.io/apimachinery/pkg/runtime/serializer/testing directory 2020-04-03 17:45:02 +02:00
Lee Verberne
8414d180fe kubectl debug: support different kinds
This is a refactor ahead of adding support for supporting `kubectl debug` of nodes.
2020-04-03 17:11:09 +02:00
jingyih
4df38040dc Pin go.etcd.io/etcd to 3.4.7 and rebuild vendor 2020-04-03 07:15:59 -07:00
Kubernetes Prow Robot
15c3e492b3 Merge pull request #89795 from julianvmodesto/fix-diff
Ensure diff doesn't persist patches
2020-04-03 04:27:58 -07:00
Kubernetes Prow Robot
dd35908c7f Merge pull request #89298 from gavinfish/scheuler-config-alph1
Remove kubescheduler.config.k8s.io/v1alpha1
2020-04-02 21:39:59 -07:00
Maru Newby
ab8b69b54e kubectl: Update run's --restart help to reflect generator removal
PR #87077 ensured that only pods would created by `kubectl run`. This
change updates the help text for the `--restart` parameter to no longer
reference the removed job and deployment generators.
2020-04-02 21:37:58 -07:00
Julian V. Modesto
9c0320f1bf Ensure diff doesn't persist patches 2020-04-02 19:23:32 -04:00
Kubernetes Prow Robot
691fa9f5a1 Merge pull request #89566 from yue9944882/feat/override-clientside-retry
Opt-out/Override client-side max-retry
2020-04-02 12:42:38 -07:00
Prashant Sharma
f6c7d70092 Minor, Api doc clarification for the mode value. (#88364)
* Api doc clarification for the mode value.

Apply suggestions from code review

Co-Authored-By: Robert Kielty <rob.kielty@gmail.com>

* Added a note regarding json and yaml api.

* running hack/* scripts.

Co-authored-by: Robert Kielty <rob.kielty@gmail.com>
2020-04-02 04:18:23 -07:00
yue9944882
f373697c64 make client-side max-retry override'ble 2020-04-02 15:43:10 +08:00
Kubernetes Prow Robot
c4f1b015b2 Merge pull request #89743 from wojtek-t/remove_default_conversions_apiserver_endpoints
Stop reling on default conversions in apiserver test
2020-04-02 00:38:24 -07:00
wojtekt
8c59c2133c Not rely on default conversions in apiserver test 2020-04-02 08:16:59 +02:00