Commit Graph

73025 Commits

Author SHA1 Message Date
Clayton Coleman
fe74efb1f9
Add transport wrapper that blocks api calls after context close
The ContextCanceller transport wrapper blocks all API requests
after the provided context is closed. Used with the leader election
step down, a controller can ensure that new requests are not made
after the client has stepped down.
2019-01-11 12:49:32 -05:00
Clayton Coleman
1f590e697e
Make wrapping a client transport more pleasant
Properly wrapping a transport can be tricky. Make the normal case
(adding a non-nil transport wrapper to a config) easier with a helper.
Also enforce a rough ordering, which in the future we can use to
simplify the WrapTransport mechanism down into an array of functions
we execute in order and avoid wrapping altogether.
2018-12-27 13:11:41 -05:00
Clayton Coleman
09890b6c48
leaderelection: Allow leader elected code to step down on a context cancel
The current code simply exits without continuing to renew the lease, which means
participants using a slower lease duration might have to wait multiple minutes
before a new leader is elected. Allow an optional flag to be set on
LeaderElectionConfig that will release the lease when the calling context is
cancelled. Callers *must* ensure their lease guarded code has completed before
the context is cancelled, or other processes may acquire the lease before this
lease has released.

Add an example command that demonstrates how cancellation could be done.

As a convenience to users, make event recorder optional - not all users of the
lock code will need a recorder.
2018-12-27 13:11:07 -05:00
Kubernetes Prow Robot
bb7973a34c
Merge pull request #72361 from DataDog/lbernail/netlink-mutex
[kube-proxy/ipvs] Protect Netlink calls with a mutex
2018-12-27 03:17:20 -08:00
Laurent Bernaille
1412d53b62 [kube-proxy/ipvs] Protect Netlink calls with a mutex 2018-12-27 10:53:27 +01:00
Kubernetes Prow Robot
aee1ab34ab
Merge pull request #72260 from bsalamat/fix_waiting_pods
Add pods in the backoff queue to the list of pending pods
2018-12-27 00:03:18 -08:00
Kubernetes Prow Robot
81a1f12dab
Merge pull request #70277 from kdada/master
Fix goroutine leak of wait.poller
2018-12-26 22:29:47 -08:00
Kubernetes Prow Robot
68451f301b
Merge pull request #72291 from msau42/fix-subpath-orphan
Fix subpath issues with orphaned pod cleanup
2018-12-26 19:48:27 -08:00
Kubernetes Prow Robot
915c81f17e
Merge pull request #72348 from liggitt/addon-followup
Fixup apps/v1 addon manifests
2018-12-26 18:38:11 -08:00
Kubernetes Prow Robot
d61286987d
Merge pull request #72251 from sbezverk/VolumeMode
VolumeMode - Update DropDisabled[Alpha]Fields behaviour
2018-12-26 16:20:36 -08:00
Kubernetes Prow Robot
52b6b4086f
Merge pull request #72250 from sbezverk/AllowVolumeExpansion
AllowVolumeExpansion validation and tests
2018-12-26 16:20:24 -08:00
Kubernetes Prow Robot
dfaf10f469
Merge pull request #72321 from Pingan2017/kubectl-config-type
code cleanup for kubectl config
2018-12-26 13:19:48 -08:00
Jordan Liggitt
d2c1fdbcfa Fixup apps/v1 addon manifests 2018-12-26 15:19:01 -05:00
Kubernetes Prow Robot
ee00cd3d0b
Merge pull request #72344 from liggitt/fix-create-docker-registry
Fix create secret docker-registry compatibility
2018-12-26 12:08:39 -08:00
Kubernetes Prow Robot
40b2b5e695
Merge pull request #72171 from sbezverk/podPriority_field
PodPriority - Update DropDisabled[Alpha]Fields behaviour
2018-12-26 12:08:29 -08:00
Serguei Bezverkhi
a5d5a174af VolumeMode Validation and tests
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2018-12-26 14:28:53 -05:00
Michelle Au
3ebbbbd5d8 Leave refactoring TODO 2018-12-26 10:49:28 -08:00
Michelle Au
8724b46623 Check for volume-subpaths directory in orpahaned pod cleanup 2018-12-26 10:49:28 -08:00
Kai Chen
6a61a9af40 Fix an incorrectly formatted URL in the 1.10 release note (#62294)
* Fix an incorrectly formatted URL in the 1.10 release note

* Fix a few more incorrectly formatted URLs
2018-12-26 10:38:56 -08:00
Kubernetes Prow Robot
214efa9cc4
Merge pull request #72203 from liggitt/addon-apps-v1
Change add-on manifests to apps/v1
2018-12-26 09:18:45 -08:00
Jordan Liggitt
e243e646fc Fix create secret docker-registry compatibility 2018-12-26 11:11:29 -05:00
Kubernetes Prow Robot
197fc67693
Merge pull request #72215 from caesarxuchao/minor-test-fix
Fix the unit test patch to not modify the node name
2018-12-25 19:57:09 -08:00
Kubernetes Prow Robot
8626cb940b
Merge pull request #72317 from shyamjvs/add-eks-get-signer
Add eks case to GetSigner()
2018-12-25 00:54:23 -08:00
Pingan2017
672cad60e9 code cleanup for kubectl config 2018-12-25 15:24:57 +08:00
Kubernetes Prow Robot
5252352ad8
Merge pull request #70863 from mysunshine92/wym-1109
fix spelling errors its
2018-12-24 21:24:50 -08:00
Kubernetes Prow Robot
a353875f4a
Merge pull request #72316 from cblecker/fix-godep-comments
Fix tag on github.com/go-openapi
2018-12-24 17:44:11 -08:00
Shyam Jeedigunta
ce79d27048 Add eks case to GetSigner() 2018-12-24 16:50:45 -08:00
Christoph Blecker
f718397d92
Fix tag on github.com/go-openapi 2018-12-24 14:51:09 -08:00
Kubernetes Prow Robot
2e01f6d04d
Merge pull request #72306 from lovejoy/patch-1
Fix the authorization-policy-file description
2018-12-24 07:48:09 -08:00
Kubernetes Prow Robot
eb79f8f279
Merge pull request #69615 from k82cn/update_node_ns
Fixed node namespace to none.
2018-12-23 23:39:09 -08:00
lovejoy
d437305cbf
Fix the authorization-policy-file description
Actually this is in a format like below not a csv format
```json
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"group":"system:authenticated",  "namespace": "*", "resource": "*","apiGroup": "*"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"group":"system:authenticated",  "namespace": "*", "resource": "ingresses","apiGroup": "extensions"}}
{"apiVersion": "abac.authorization.kubernetes.io/v1beta1", "kind": "Policy", "spec": {"group":"system:authenticated",  "namespace": "*", "resource": "*","apiGroup": "apiextensions.k8s.io"}}
```
2018-12-24 14:54:34 +08:00
Kubernetes Prow Robot
d476af7c19
Merge pull request #72282 from rkojedzinszky/master
storage_scheduling: retry operation as intended
2018-12-23 01:00:09 -08:00
Kubernetes Prow Robot
3a6d4c10bf
Merge pull request #72284 from bhavin192/scheduler-cleanup
[scheduler] Move predicate & priority registration to separate file
2018-12-22 10:39:41 -08:00
Bhavin Gandhi
ca46c1da15
[scheduler] Move predicate & priority registration to separate file
- Maintain list of default predicates and priorities in defaults.go
  and move the registration to separate files

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
2018-12-22 19:30:34 +05:30
Serguei Bezverkhi
587c5d7263 PodPriority validation and tests
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2018-12-22 08:54:40 -05:00
Kubernetes Prow Robot
190f6d870e
Merge pull request #71946 from bart0sh/PR0045-kubeadm-1260-simplify-minimum-kubernetes-version-bumps
kubeadm: simplify minimum Kubernetes version bumps
2018-12-21 21:28:53 -08:00
Kubernetes Prow Robot
e2f2ca2b29
Merge pull request #70599 from caesarxuchao/kubectl-wait-all
Enable --all flag for kubectl wait
2018-12-21 20:19:21 -08:00
Kubernetes Prow Robot
37dc6789d7
Merge pull request #71978 from denkensk/move-predicate-types
Move predicate types from algorithm to predicates
2018-12-21 19:05:29 -08:00
Kubernetes Prow Robot
35061468cc
Merge pull request #72271 from jhrv/call_validate_for_rollback
call createValidation before rollback. Fixes #72256
2018-12-21 16:03:51 -08:00
Kubernetes Prow Robot
e3bf5dbc5b
Merge pull request #70862 from pohly/e2e-storage-tests
e2e storage tests: usable out-of-tree
2018-12-21 16:03:41 -08:00
Kubernetes Prow Robot
fa2cffbd4a
Merge pull request #72223 from misterikkit/godocs
Add godoc to pkg/util/configz.
2018-12-21 13:49:53 -08:00
Kubernetes Prow Robot
aaa4faba39
Merge pull request #72081 from denkensk/make-scheduleinternalcache-podFilter-public
Make PodFilter as part of public API
2018-12-21 12:37:39 -08:00
Kubernetes Prow Robot
91b81544d3
Merge pull request #72213 from sbezverk/containers_procmount
ProcMount - Update DropDisabled[Alpha]Fields behaviour
2018-12-21 11:28:57 -08:00
Johnny Horvi
954987f8f6 call createValidation before rollback. Fixes #72256 2018-12-21 20:10:19 +01:00
Kubernetes Prow Robot
5354f8bdfe
Merge pull request #72239 from wojtek-t/v1_lease_api
Promote Lease API to v1
2018-12-21 10:03:36 -08:00
Richard Kojedzinszky
a8c70aadd1 storage_scheduling: retry operation as intended
Fixes #72163
2018-12-21 17:22:00 +01:00
wangqingcan
000aa06912 Make scheduleinternalcache.PodFilter as public 2018-12-21 23:09:56 +08:00
wangqingcan
b82a1d4600 Move predicate types from algorithm to predicates 2018-12-21 22:26:47 +08:00
Kubernetes Prow Robot
870c050727
Merge pull request #72219 from micahhausler/aws-user-agent
Added kubernetes version to user-agent for AWS SDK calls
2018-12-21 03:50:38 -08:00
Patrick Ohly
ac8ac8ee6c e2e: update bazel BUILD files
Generated via hack/update-bazel.sh.
2018-12-21 10:30:10 +01:00