Commit Graph

10808 Commits

Author SHA1 Message Date
Gab Satch
f8e90eb5b0 Replaces modifying node object with returning a map of labels
- Adds label to update flow so can be picked up by an existing node
2019-11-12 16:50:43 -05:00
Jack Kleeman
7753bfa3a4 Fix incorrect message on describe netpol
When I describe network policies, it often tells me that pods are
isolated for egress connectivity because the policy that applies to them
has no egress rules. However, this would only lead to isolation if there
is an explicitly set egress policy type. Otherwise, the policy allows
egress traffic. The same applies if you have explicitly set an egress
type only, describe will incorrectly report isolated ingress traffic.

This PR fixes this by inferring the applicable direction for the policy
based on the PolicyTypes, and then if a policy doesn't apply eg to
egress, we print 'Not affecting egress traffic'
2019-11-12 21:35:31 +00:00
Kubernetes Prow Robot
3eff237357 Merge pull request #84882 from marosset/run-as-username-beta
Moving WindowsRunAsUserName to beta
2019-11-12 11:51:01 -08:00
Kubernetes Prow Robot
ea2750eaa6 Merge pull request #84718 from yastij/remove-validators
remove system validators package from kubeadm and use k8s.io/system-validators
2019-11-12 11:50:53 -08:00
David Eads
758f2ce44f allow individual ca bundles to be empty in union 2019-11-12 14:22:57 -05:00
Kubernetes Prow Robot
94efa988f4 Merge pull request #84813 from deads2k/admission-feature-gates
remove global variable dependency from admission plugins
2019-11-12 10:23:14 -08:00
David Eads
e44352f31a create utilities inspecting server TLS certs 2019-11-12 12:34:19 -05:00
Aaron Prindle
6619df1798 review changes - *Locked updates 2019-11-12 09:24:56 -08:00
Kubernetes Prow Robot
402e551ca2 Merge pull request #85135 from wojtek-t/delete_unnecessary_conversions_1
Eliminate couple unnecessary conversions
2019-11-12 09:07:01 -08:00
Kubernetes Prow Robot
760af28f69 Merge pull request #85134 from LukeShu/lukeshu/event-docs-non-api
client-go/tools: Docs: Clarify what's "old" core/v1 and what's "new" events/v1beta1
2019-11-12 09:06:48 -08:00
Kubernetes Prow Robot
41be6d65d8 Merge pull request #84970 from atlassian/pdzwart/kubernetes/kubernetes/84959
- Delete backing string set from a threadSafeMap index when the string set length reaches 0.
2019-11-12 09:06:20 -08:00
Rob Scott
0fa9981e01 Splitting IP address type into IPv4 and IPv6 for EndpointSlices 2019-11-12 09:03:53 -08:00
Aaron Prindle
396e2d4aa3 review changes 2019-11-12 08:56:50 -08:00
Aaron Prindle
24065cf5be fairqueuing implementation with unit tests 2019-11-12 08:12:48 -08:00
Jordan Liggitt
71fad812ca Promote WebhookAdmissionConfiguration to v1 2019-11-12 09:56:58 -05:00
Jordan Liggitt
1234290adf AdmissionConfiguration v1 2019-11-12 09:05:50 -05:00
wojtekt
067d173266 Eliminate couple unnecessary conversions 2019-11-12 15:00:09 +01:00
Luke Shumaker
2c4bb0fa4d client-go/tools: Docs: Clarify what's "old" core/v1 and what's "new" events/v1beta1 2019-11-12 08:31:11 -05:00
Kubernetes Prow Robot
a25cda5d66 Merge pull request #85088 from nikhita/publishing-go-version
publishing: bump go versions in rules
2019-11-12 04:48:58 -08:00
Kubernetes Prow Robot
35de7a2537 Merge pull request #84957 from ZP-AlwaysWin/dev-1105-1
Remove unnecessary judgment
2019-11-12 04:48:43 -08:00
Kubernetes Prow Robot
681d22428b Merge pull request #84768 from liggitt/delegated-authnz-v1
switch delegated authnz to v1 APIs
2019-11-12 04:48:35 -08:00
Kubernetes Prow Robot
0708eb5903 Merge pull request #84423 from mikedanese/tokbench
adjust token cache benchmarks to get more accurate behavior
2019-11-12 04:48:07 -08:00
Kubernetes Prow Robot
5dc87d2919 Merge pull request #83965 from robscott/endpointslice-managed-by
Adding new label to indicate what is managing an EndpointSlice
2019-11-12 03:08:07 -08:00
Kubernetes Prow Robot
48ddf3be87 Merge pull request #80284 from danielqsj/exec
Fix a racing issue in client-go UpdateTransportConfig
2019-11-12 01:10:07 -08:00
danielqsj
7518a44b18 Fix data race in client-go UpdateTransportConfig 2019-11-12 12:04:05 +08:00
Kubernetes Prow Robot
7d1f9b440e Merge pull request #83815 from howardjohn/appprotocol
Add appProtocol to EndpointSlice.Port
2019-11-11 17:48:06 -08:00
ZP-AlwaysWin
f812530e42 Remove unnecessary judgment 2019-11-12 09:31:42 +08:00
Yassine TIJANI
b9fe59c93e remove system validators package from kubeadm and use k8s.io/system-validators instead
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-11-12 01:09:56 +01:00
Pete de Zwart
29a051388a - Delete backing string set from a threadSafeMap index when the string set length reaches 0.
- Added thread_safe_store_test exercising new index backing string set delete at 0 functionality.

- TestThreadSafeStoreDeleteRemovesEmptySetsFromIndex logic nesting inverted.

- Added test case for usage of an index where post element delete there is non-zero count of elements and expect the set to still exist.

- Fixed date.

- Fixed awprice nits.

- Fix bazel.
2019-11-12 09:55:16 +11:00
Jordan Liggitt
7349a824df generated 2019-11-11 17:19:12 -05:00
Jordan Liggitt
d54a70db5c Switch kubelet/aggregated API servers to use v1 subjectaccessreviews 2019-11-11 17:19:11 -05:00
Jordan Liggitt
5ef4fe959a Switch kubelet/aggregated API servers to use v1 tokenreviews 2019-11-11 17:19:10 -05:00
Kubernetes Prow Robot
f610133f69 Merge pull request #85035 from gongguan/fix_diff_panic
fix kubectl diff panic
2019-11-11 12:56:18 -08:00
Krishnakumar R(KK)
a10f80ffb9 Azure: Filter disks with ToBeDetached flag from attach/detach- UT 2019-11-11 12:24:35 -08:00
Krishnakumar R(KK)
c6b8207bfe Azure: Filter disks with ToBeDetached flag from attach/detach
After the detach calls are made, any further updates with the disks in
the process of getting detached will complain with errors such as:

"
Cannot attach data disk '<disk name>' to VM '<vm name>' because the
disk's ToBeDetached flag is set to true. Please either remove the
disk from APIModel or set the ToBeDetached flag to false and then
try again
"

This PR will ensure that the disks with the ToBeDetached flag set are
filtered out before the update to the cloud is made.
2019-11-11 12:24:35 -08:00
Mike Danese
43d34882c9 adjust token cache benchmarks to get more accurate behavior
b.N is adjusted by pkg/testing using an internal heuristic:

> The benchmark function must run the target code b.N times. During
> benchmark execution, b.N is adjusted until the benchmark function
> lasts long enough to be timed reliably.

Using b.N to seed other parameters makes the benchmark behavior
difficult to reason about. Before this change, thread count in the
CachedTokenAuthenticator benchmark is always 5000, and batch size is
almost always 1 when I run this locally. SimpleCache and StripedCache
benchmarks had similarly strange scaling.

After modifying CachedTokenAuthenticator to only adjust iterations based
on b.N, the batch chan was an point of contention and I wasn't able to
see any significant CPU consumption. This was fixed by using
ParallelBench to do the batching, rather than using a chan.
2019-11-11 11:29:08 -08:00
marosset
6d4aea60cd Moving WindowsRunAsUserName to beta 2019-11-11 19:27:19 +00:00
Nikhita Raghunath
e6ac57ef60 publishing: bump Go versions in rules 2019-11-11 15:37:40 +05:30
louisgong
4f13f2739a fix kubectl diff panic 2019-11-11 15:58:28 +08:00
Kubernetes Prow Robot
cf5ec7615b Merge pull request #82257 from prameshj/ilbsubnet
Support specifying a custom subnet for ILB ip in GCE
2019-11-10 22:59:41 -08:00
Kubernetes Prow Robot
c28921f248 Merge pull request #84692 from smarterclayton/protocol_errors
Fix watch negotiation when using a non-default mime type in the client
2019-11-10 21:41:56 -08:00
Kubernetes Prow Robot
4cdb15f6cc Merge pull request #84135 from RainbowMango/pr_remove_backoff
Stop register to prom registry
2019-11-10 21:41:41 -08:00
Kubernetes Prow Robot
ec86baf00b Merge pull request #84987 from RainbowMango/pr_migrate_custom_collector_kubelet_part2
migrate kubelet custom metrics to stability framework part 2
2019-11-10 19:44:04 -08:00
Clayton Coleman
3b780c64b8 Always negotiate a decoder using ClientNegotiator
This commit performs two refactors and fixes a bug.

Refactor 1 changes the signature of Request to take a RESTClient, which
removes the extra copy of everything on RESTClient from Request. A pair
of optional constructors are added for testing. The major functional
change is that Request no longer has the shim HTTPClient interface and
so some test cases change slightly because we are now going through
http.Client code paths instead of direct to our test stubs.

Refactor 2 changes the signature of RESTClient to take a
ClientContentConfig instead of ContentConfig - the primary difference
being that ClientContentConfig uses ClientNegotiator instead of
NegotiatedSerializer and the old Serializers type. We also collapse
some redundancies (like the rate limiter can be created outside the
constructor).

The bug fix is to negotiate the streaming content type on a Watch()
like we do for requests. We stop caching the decoder and simply
resolve it on the request. We also clean up the dynamic client
and remove the extra WatchSpecificVersions() method by providing
a properly wrapped dynamic client.
2019-11-10 21:30:36 -05:00
Clayton Coleman
b453106777 test: Exit early during resource helper test
The test will panic if it fails, and should instead check and exit
when invalid conditions are hit.
2019-11-10 21:30:36 -05:00
Clayton Coleman
8a9b8c87c4 test: kubectl unit tests should be using codecs without conversion
Tests are also refactored to use the simpler RESTClient code path.
2019-11-10 21:30:36 -05:00
Clayton Coleman
3f94f80b0a dynamic: The dynamic client no longer needs a special cased watch
By correctly handling content type negotiation, we can avoid the
need for a special version of watch and use the same code path as
typed clients.
2019-11-10 21:30:35 -05:00
Clayton Coleman
9aad6aa54d test: Watch should fail immediately on negotiate errors
Instead of returning an error on the watch stream, if we can't properly
negotiate a watch serialization format we should error and return that
error to the client.
2019-11-10 21:30:35 -05:00
Clayton Coleman
93868cb413 Create a shim for Codecs that handles client duties
Clients have to renegotiate frequently, and the shape of the interface
that a client wants is slightly different than the interface on the
server. Create a new ClientNegotiator interface that represents what
the client->server code would want to use (mostly, still evolving
Encoder) and move versioning details out of RESTClient.

In the long run, we want to remove internal clients and conversions
from clients. This takes a step in that direction and also makes sure
watch negotiation is consistent with the server.
2019-11-10 21:30:35 -05:00
Clayton Coleman
c416ee584c Remove deprecated-dynamic client
It is now unused.
2019-11-10 21:30:30 -05:00