Commit Graph

10808 Commits

Author SHA1 Message Date
danielqsj
6a27a4a5b9 update generated file 2019-03-01 06:41:09 -07:00
Dr. Stefan Schimanski
b7f11084fa Update staging godeps 2019-03-01 14:37:06 +01:00
Kevin Wiesmüller
9ac127408d implement sorting of managedFields 2019-03-01 12:51:01 +01:00
Max Leonard Inden
f90bbc3d6b src/k8s.io/apiserver: Increase cert expiration histogram resolution
The `certificate_expiration_seconds` histogram measures the remaining
time of client certificates used to authenticate to the API server. It
records the lifetime of received client request certificates in buckets
of 6h, 12h, ..., 1y.

In environments with automated certificate rotation it is not uncommen
to have issued certificates expire in less than the above mentioned
minimum bucket of 6h. In such environments the above histogram is
useless given that every request will be recorded in the first bucket.

This patch increases the histogram resolution by adding a 30m, 1h and 2h
bucket. Prometheus histogram buckets are cummulative, e.g. the 12h
bucket is counting _all_ records with an expiration date lower or equal
to 12h including _all_ requests of the 6h bucket. Thereby this patch
does not break existing monitoring setups.  This histogram is exposed
once per API server, thereby the 3 additional time series do not cause a
cardinality issue.
2019-03-01 11:49:49 +01:00
Kubernetes Prow Robot
fa86a27d02 Merge pull request #74778 from roycaihw/feat/crd-openapi-v3-v2-conversion
CRD openapi v3 -> v2 conversion
2019-03-01 02:29:51 -08:00
danielqsj
696c98a5e6 fix golint failures for metrics api 2019-03-01 17:36:20 +08:00
Haowei Cai
43843dad0d clean up import 2019-02-28 22:11:49 -08:00
Kubernetes Prow Robot
caaad1be26 Merge pull request #72526 from justinsb/testdata_should_not_be_executable
Remove executable permission from testdata
2019-02-28 20:35:56 -08:00
Haowei Cai
c2dd76263a generated 2019-02-28 19:33:25 -08:00
Haowei Cai
19ccaf5408 allow importing kube-openapi 2019-02-28 19:33:11 -08:00
Haowei Cai
662c53971c openapi v3 to v2 conversion
k/k#71137:
- apiextensions: prune {any,one}Of + Not recursively on OpenAPI v2 conversion

roycaihw/kubernetes#6:
- apiextensions: filter CRD schema to not break (too) strict kube-openapi
- model validator;
- SQUASH: fix root level filtering to not drop properties;
- SQUASH: fix incomplete test specs which degenerate during kubectl <= 1.13 filtering

Co-authored-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2019-02-28 19:07:10 -08:00
Kubernetes Prow Robot
ae561229a6 Merge pull request #74735 from liggitt/simplfy-package-test
Simplify package skipping test
2019-02-28 14:46:30 -08:00
Kubernetes Prow Robot
0d7eb7006f Merge pull request #74532 from deads2k/crd-health
CRD server wait for CRDs to sync before reporting healthy
2019-02-28 14:46:19 -08:00
Jordan Liggitt
1676a49d8c Simplify package skipping test 2019-02-28 12:40:28 -05:00
Kevin Wiesmüller
822c0da844 start implementing managedFields sorting 2019-02-28 14:24:02 +01:00
SataQiu
11451bbb59 fix golint failures in staging/src/k8s.io/apiserver/pkg/storage/errors, staging/src/k8s.io/apiserver/pkg/storage/etcd 2019-02-28 15:51:05 +08:00
David Eads
62c32fd044 CRD server wait for CRDs to sync before reporting healthy 2019-02-27 16:00:32 -05:00
Kubernetes Prow Robot
d11baea6f9 Merge pull request #74663 from tnozicka/fix-retrywatcher-unit-flake
Fix race in RetryWatcher's unit tests
2019-02-27 11:13:30 -08:00
Tomas Nozicka
b39d079b69 Fix race in RetryWatcher's unit tests 2019-02-27 16:35:55 +01:00
Kubernetes Prow Robot
601c2d8550 Merge pull request #74344 from Betula-L/fix-dynamic-informer
fix dynamic informer mishandles parameter tweakListOptions
2019-02-27 04:33:52 -08:00
Kubernetes Prow Robot
a514fa042e Merge pull request #74636 from logicalhan/reflector-metrics
Remove reflector metrics since they are causing a memory leak
2019-02-27 03:24:09 -08:00
Kubernetes Prow Robot
218642e84e Merge pull request #74562 from roycaihw/feat/admission-webhook-timeout
admission webhook: timeout configuration
2019-02-26 23:40:44 -08:00
Kubernetes Prow Robot
38a325250f Merge pull request #73676 from martin-helmich/bugfix/expose-forwarded-local-port
client-go: Dynamically assigned local port number not retrievable when port-forwarding
2019-02-26 20:55:12 -08:00
Han Kang
ca096f8069 Remove reflector metrics as they currently cause a memory leak 2019-02-26 20:11:22 -08:00
Kubernetes Prow Robot
81e6407393 Merge pull request #74140 from Liujingfang1/kflag
add -k flag in cli-runtime and kubectl to process kustomization directories
2019-02-26 19:40:16 -08:00
Kubernetes Prow Robot
9059021d9a Merge pull request #67350 from tnozicka/retry-watcher
#50102 Task 3: Until, backed by retry watcher
2019-02-26 19:40:01 -08:00
Kubernetes Prow Robot
b9569559ce Merge pull request #74206 from kwiesmueller/add-strip-fields
add more fields to be stripped from managedFields
2019-02-26 18:11:58 -08:00
Kubernetes Prow Robot
c103ba914e Merge pull request #74617 from deads2k/audit-request-metadata
make audit metadata work for custom resources
2019-02-26 15:30:14 -08:00
Haowei Cai
1a25ced1c7 generated 2019-02-26 15:00:35 -08:00
Haowei Cai
e1e9ee5311 honor timeout when dispatch 2019-02-26 14:42:55 -08:00
Haowei Cai
609527a015 webhook timeout API change 2019-02-26 14:39:28 -08:00
Jingfang Liu
127c2f1e74 address comments 2019-02-26 14:12:58 -08:00
Kubernetes Prow Robot
a66c6e459c Merge pull request #74378 from dims/do-not-use-ghodss-yaml-in-k/k
Avoid using ghodss/yaml - switch to our forked repo
2019-02-26 14:07:44 -08:00
Kubernetes Prow Robot
7d67315d28 Merge pull request #74448 from liggitt/webhook-gvk
Explicitly set GVK when sending objects to webhooks
2019-02-26 12:44:35 -08:00
David Eads
9d41c0099a make audit metadata work for custom resources 2019-02-26 14:37:58 -05:00
Kevin Wiesmüller
8a6a2883f9 test that managedFields get stripped recursively 2019-02-26 20:22:54 +01:00
Kevin Wiesmüller
d73dbfc8c1 remove deletionTimestamp from strippedFields 2019-02-26 20:22:30 +01:00
Jingfang Liu
f55d87ab61 fix the failed test 2019-02-26 10:35:45 -08:00
Tomas Nozicka
d526dadd12 Update Bazel 2019-02-26 16:21:39 +01:00
Tomas Nozicka
603dd254ac Upgrade ListWatchUntil 2019-02-26 16:21:39 +01:00
Tomas Nozicka
09af8485f2 Add Until based on RetryWatcher 2019-02-26 16:21:38 +01:00
Jordan Liggitt
d1e865ee34 Update client callers to use explicit versions 2019-02-26 08:36:30 -05:00
Jordan Liggitt
93be54b288 Regenerate clients 2019-02-26 08:28:31 -05:00
Jordan Liggitt
40e42ca4b4 Stop generating versionless clientset method 2019-02-26 08:28:31 -05:00
Kubernetes Prow Robot
c5242f0368 Merge pull request #74244 from sttts/sttts-apiservice-metrics-typo
kube-aggregator: fix typo aggregator_unavailable_api{server -> service}_{gauge,}
2019-02-26 05:25:02 -08:00
lou-lan
e0c93d4a68 delete duplicate empty blanks 2019-02-26 19:53:45 +08:00
Martin Helmich
bbddd27f0d client-go: Dynamic local port not accessible when port-forwarding
When setting up a port forwarding with the client-go library (using the
`k8s.io/client-go/tools/portforward.PortForwarder`) with a non-defined local
port (i.e. passing `:80` as `ports` parameter to `portforward.New(...)`), a
local port will be assigned dynamically.

Currently, the local port will be _always_ 0 if it was not specified initially.
This is because the assigned local port is only set on a _copy_ of the actual
`ForwardedPort` type that is obtained in a `range` loop. This PR changes this
behaviour to set the local port at the correct instance by passing a pointer
instead of a copy to the relevant functions.
2019-02-26 08:38:59 +01:00
Kubernetes Prow Robot
c9e14c85f5 Merge pull request #74465 from bsalamat/priority_to_ga
Mark PriorityClass v1beta1 and v1alpha1 deprecated by v1 API
2019-02-25 17:25:44 -08:00
Jingfang Liu
46f4378bd9 add -k flag to FilenameFlags in cli-runtime 2019-02-25 16:29:27 -08:00
Jeff Grafton
26d51164e1 Run hack/update-bazel.sh 2019-02-25 15:33:53 -08:00