Commit Graph

6132 Commits

Author SHA1 Message Date
Kyle Bai
8a82b21f46 client-go: update leader election example 2019-03-19 15:48:02 +08:00
WanLinghao
f510f49955 Remove dead code about failure-domains option in kube-scheduler 2019-03-18 14:25:04 +08:00
Haowei Cai
df1ee5e778 generated 2019-03-13 15:16:50 -07:00
Clayton Coleman
4c87a14e6b Avoid allocating when performing VisitRulesFor on service accounts
Service account authorization checks are done frequently and were
observed to perform 7% of allocations on a system running e2e tests.
The allocation comes from when we walk the authorization rules to
find matching service accounts.

Optimize the check for service account names to avoid allocating.
2019-03-13 17:40:21 -04:00
Kubernetes Prow Robot
e7d09ceb50 Merge pull request #75289 from dims/update-http2-dep-go-1.12
Update golang.org/x/net/... dependencies to release-branch.go1.12
2019-03-13 04:33:46 -07:00
Kubernetes Prow Robot
93402fc8e8 Merge pull request #75277 from jennybuckley/fix-ints
Fix server side apply int/float bug
2019-03-12 17:36:40 -07:00
Kubernetes Prow Robot
cc8afb25fc Merge pull request #74040 from ajatprabha/issue_73648
add ResourceVersion to DeleteOptions.Preconditions
2019-03-12 15:44:38 -07:00
Kubernetes Prow Robot
0977ab69ad Merge pull request #75157 from aaron-prindle/version-check-apply
Added version check between patch and live object in server side apply
2019-03-12 13:19:06 -07:00
Justin Cormack
0fb4b81c3f Use UUIDv4 not UUIDv1
UUIDv1 has several disadvantages:
 - it encodes the MAC address of the host, which is a potential privacy issue
 - it uses the clock of the host, which reveals time information
 - the clock is very coarse, hence the complex code handling duplicates

UUIDv4 is simply a 122 bit random number encoded into the UUID format, which
has no problems with duplicates or locking.

Use the google/uuid library, as newer versions of pborman/uuid just wrap the
Google upstream.

Note that technically a random UUID might fail, but Go ensures that this
should not take place, as it will block if entropy is not available.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2019-03-12 16:03:21 +00:00
Davanum Srinivas
2aa1348e6c Update to go 1.12 version of golang.org/x/net
Change-Id: I3f2fa5d7b6811c9eca58992318d19e44ec9131fd
2019-03-12 11:30:24 -04:00
Laurent Bernaille
09f821ddb5 [kube-proxy/ipvs] Add flag to enable strict ARP 2019-03-12 15:56:22 +01:00
Prasad Ghangal
317ecf58cc Update golang.org/x/net/... dependencies to release-branch.go1.11
- latest grpc-ecosystem/go-grpc-middleware

Change-Id: Ida7d01e4606f6e0313e1355db6e85be0c0ef1dd1
2019-03-12 09:48:52 -04:00
ajatprabha
4bd0c4ad56 update generated-protobuf 2019-03-12 17:00:42 +05:30
ajatprabha
c2755f6685 update generated-swagger-docs 2019-03-12 17:00:42 +05:30
ajatprabha
fe3b9f486f update testDeleteWithResourceVersion 2019-03-12 17:00:41 +05:30
ajatprabha
4ddc198c39 pin ResourceVersion precondition only when specified 2019-03-12 17:00:41 +05:30
ajatprabha
3135cea2cc add ResourceVersion check to Preconditions#Check 2019-03-12 17:00:40 +05:30
ajatprabha
64ecf9de7f update deepcopy function 2019-03-12 17:00:40 +05:30
ajatprabha
42f0a36f44 check for ResourceVersion conflict in separate if block 2019-03-12 17:00:39 +05:30
ajatprabha
8f48d76271 add ResourceVersion to DeleteOptions.Preconditions 2019-03-12 17:00:39 +05:30
jennybuckley
10259c959e Fix int/float apply bug 2019-03-11 23:07:21 -07:00
danielqsj
b31a3403c4 remove the deprecated admission metrics 2019-03-12 14:06:38 +08:00
Aaron Prindle
d5bd17cda0 Added version check between patch and live object in server side apply
What is the problem being solved?
https://github.com/kubernetes/kubernetes/pull/75135
Currently version compatibility is not being checked in server side apply between the patch object and the live object.  This is causing a merge that will error to be run and the apiserver returns a 500 error.  The request should fail if the apiVersion provided in the object is different from the apiVersion in the url, but it should fail before trying to merge, and be a 4xx error. Probably a bad request error.

Why is this the best approach?
The approach of serializing the patch byte array and then checking for version equality with the already serialized live object is the simplest and most straightforward solution.
2019-03-11 22:08:30 -07:00
Chao Xu
887cb93d8d generated BUILD
generated proto
2019-03-11 10:26:56 -07:00
Chao Xu
0ace8b3da4 Let the sample apiserver show feature gates flag 2019-03-11 10:26:56 -07:00
Chao Xu
3b618af0d4 Expose storage version hash 2019-03-11 10:26:56 -07:00
Kubernetes Prow Robot
44e369b000 Merge pull request #75167 from tnozicka/fix-retry-watcher-error
Handle unstructured status in RetryWatcher
2019-03-11 05:17:27 -07:00
jennybuckley
f9e57744d3 Fix version converter 2019-03-08 22:35:33 -08:00
Antoine Pelisse
92d8b19c0f Generated files 2019-03-08 16:55:53 -08:00
Antoine Pelisse
eb904d8fa8 Add "fieldManager" to flag to PATCH/CREATE/UPDATE
And add a corresponding flag in kubectl (for apply), even though the
value is defaulted in kubectl with "kubectl".

The flag is required for Apply patch-type, and optional for other PATCH,
CREATE and UPDATE (in which case we fallback on the user-agent).
2019-03-08 16:03:03 -08:00
Kubernetes Prow Robot
8bde75e63f Merge pull request #75201 from joelsmith/secdoc
Update embargo doc link in SECURITY_OWNERS and change PST to PSC
2019-03-08 15:41:36 -08:00
Kubernetes Prow Robot
81e8401127 Merge pull request #74997 from jennybuckley/apply-metrics
Track dry-run and apply in metrics
2019-03-08 15:40:58 -08:00
Kubernetes Prow Robot
8634ebed22 Merge pull request #75075 from kwiesmueller/fix-fieldmanager-sorting
fix handling of nil times in managedFields sorting
2019-03-08 14:19:21 -08:00
Kubernetes Prow Robot
349ce4c312 Merge pull request #74376 from mbohlool/gimli
Add latency metric for CR Webhook Conversion
2019-03-08 14:18:54 -08:00
David Eads
3874e43550 provide verbose output when health check fails 2019-03-08 15:49:29 -05:00
Joel Smith
7fd6ea47e8 Also update SECURITY_CONTACTS from staging 2019-03-08 11:23:24 -07:00
Clayton Coleman
3230a0b4fd Support Table and PartialObjectMetadata on watch
Clean up the code paths that lead to objects being transformed and output with negotiation.
Remove some duplicate code that was not consistent. Now, watch will respond correctly to
Table and PartialObjectMetadata requests. Add unit and integration tests.

When transforming responses to Tables, only the first watch event for a given type will
include the columns. Columns will not change unless the watch is restarted.

Add a volume attachment printer and tighten up table validation error cases.

Disable protobuf from table conversion because Tables don't have protobuf because they
use `interface{}`
2019-03-08 13:03:59 -05:00
Vladimir Vivien
d998fc8f0f CSI Inline Volume - Generated files 2019-03-08 12:39:58 -05:00
Vladimir Vivien
4ec7d2305d CSI Inline Volume - API changes 2019-03-08 12:35:07 -05:00
Mehdy Bohlool
18be830680 update generated files 2019-03-08 08:34:12 -08:00
Mehdy Bohlool
b62c8bca7a Add latency metric for CR Webhook Conversion 2019-03-08 08:34:12 -08:00
Mehdy Bohlool
094eb614fe Refactor CR converter code to share code between nopConverter and webhookConverter 2019-03-08 08:33:25 -08:00
Kubernetes Prow Robot
f229aa0ad6 Merge pull request #75044 from errordeveloper/move-cli-runtime-subpackages
Move printers & resources packages
2019-03-08 05:43:26 -08:00
Kubernetes Prow Robot
e318642946 Merge pull request #74998 from mbohlool/pippin
Webhook configurations can choose which version of Review request they accept
2019-03-08 03:01:26 -08:00
vivekbagade
9d8e6fb1b9 Added config to EventCorrelator in client-go
Added CorrelatorOptions that contains options to change the
defaults in EventSourceObjectSpamFilter and EventAggregator
in EventCorrelator. Added a eventCorrelator property to the
eventBroadcasterImpl to help with this.
2019-03-08 10:02:11 +01:00
Tomas Nozicka
8302b5b262 Handle unstructured status in RetryWatcher 2019-03-08 09:34:56 +01:00
Kubernetes Prow Robot
183e6cc190 Merge pull request #74433 from tallclair/runtimeclass-internal
Migrate RuntimeClass from a CRD to an internal API
2019-03-07 21:19:30 -08:00
Clayton Coleman
fa0fd28767 Handle nil interface inputs to diff.ObjectReflectDiff
Causes a panic today. Add godoc bragging about how ridiculously awesome
ObjectReflectDiff is.
2019-03-08 00:15:50 -05:00
Mehdy Bohlool
cbe00023c0 Update generated files 2019-03-07 21:00:29 -08:00
Mehdy Bohlool
9b28b915f5 Add ConversionReviewVersions to CustomResourceDefinitionSpec and defdefault it to v1beta1 2019-03-07 21:00:28 -08:00