Commit Graph

10808 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3db67158cf Merge pull request #78043 from tedyu/drop-dbg-pruning
Drop debug log in prune
2019-05-17 23:21:25 -07:00
Kubernetes Prow Robot
76c214b259 Merge pull request #77843 from roycaihw/deletecollection-install-deleteoptions
Publish DeleteOptions parameters for deletecollection endpoints in OpenAPI spec
2019-05-17 23:21:13 -07:00
Mike Spreitzer
35710c5d2a sample-apiserver/README.md: more/better doc on fetching sample-apiserver and its dependencies 2019-05-18 01:17:17 -04:00
Kubernetes Prow Robot
961ea6bd76 Merge pull request #78012 from feiskyer/az-network-2018-07-01
Upgrade Azure network API version to 2018-07-01
2019-05-17 21:52:40 -07:00
Kubernetes Prow Robot
4891eaa3ad Merge pull request #77170 from smarterclayton/delay_queue_reentrant
DelayingQueue.ShutDown() should be reentrant
2019-05-17 20:26:34 -07:00
Kubernetes Prow Robot
df8e241fb9 Merge pull request #76346 from caesarxuchao/delete-admission-objects
Sending existing object to the webhook for the DELETE verb
2019-05-17 20:26:22 -07:00
Ted Yu
94af465819 Change lock type to write lock in eventBroadcasterImpl 2019-05-17 19:19:44 -07:00
Kubernetes Prow Robot
b6f51d16d8 Merge pull request #78041 from yastij/fix-lastTimeObserved
update LastObservedTime instead of eventTime
2019-05-17 18:57:54 -07:00
Kubernetes Prow Robot
7809732e30 Merge pull request #78040 from tedyu/evt-broadcast
Use lock in eventBroadcasterImpl#refreshExistingEventSeries
2019-05-17 18:57:42 -07:00
Kubernetes Prow Robot
0f8009b96d Merge pull request #78029 from liggitt/crd-watch
Terminate custom resource watches when storage is destroyed
2019-05-17 18:57:17 -07:00
Kubernetes Prow Robot
ddfa49b039 Merge pull request #77987 from apelisse/dont-fail-on-failures
fieldManager: Ignore conversion errors to internal types
2019-05-17 18:57:06 -07:00
JieJhih Jhang
2cd5fc54a1 add scheduling framework configuration
update bazel build

fix get plugin config method

initialize only needed plugins

fix unit test

fix import duplicate package

update bazel

add docstrings

add weight field to plugin

add plugin to v1alpha1

add plugins at appropriate extension points

remove todo statement

fix import package file path

set plugin json schema

add plugin unit test to option

initial plugin in test integration

initialize only needed plugins

update bazel

rename func

change plugins needed logic

remove v1 alias

change the comment

fix alias shorter

remove blank line

change docstrings

fix map bool to struct

add some docstrings

add unreserve plugin

fix docstrings

move variable inside the for loop

make if else statement cleaner

remove plugin config from reserve plugin unit test

add plugin config and reduce unnecessary options for unit test

update bazel

fix race condition

fix permit plugin integration

change plugins to be pointer

change weight to int32

fix package alias

initial queue sort plugin

rename unreserve plugin

redesign plugin struct

update docstrings

check queue sort plugin amount

fix error message

fix condition

change plugin struct

add disabled plugin for unit test

fix docstrings

handle nil plugin set
2019-05-18 06:30:28 +08:00
Clayton Coleman
d2f7eb5235 DelayingQueue.ShutDown() should be reentrant
All queue ShutDown() calls should be able to be invoked multiple times.

```
Observed a panic: "close of closed channel" (close of closed channel)
/go/src/github.com/openshift/cluster-version-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:76
/go/src/github.com/openshift/cluster-version-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/go/src/github.com/openshift/cluster-version-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/go/src/runtime/asm_amd64.s:573
/usr/local/go/src/runtime/panic.go:502
/usr/local/go/src/runtime/chan.go:333
/go/src/github.com/openshift/cluster-version-operator/vendor/k8s.io/client-go/util/workqueue/delaying_queue.go:137
```

Use sync.Once to guarantee a single close.
2019-05-17 16:56:30 -04:00
Mike Danese
cafc640bfa NewIndexerInformerWatcher: fix goroutine leak
There was some weird queuing going on. The queue was implement by
spawning goroutines that would block on the "ticketer" until it was
their turn to write to the output channel. If N events where in the
watch when the consumer of the watch stopped reading events, N
goroutines would leak. In unit tests of the certificate manager, this
was causing ~10k goroutines to leak.

Fix it with a buffering event processor that uses only one routine and
cancels correctly.
2019-05-17 13:11:40 -07:00
Tariq Ibrahim
3eefcfadc0 extract PodReasonUnschedulable out of the PodConditionType const group
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
2019-05-17 12:33:11 -07:00
Ted Yu
9d2a94ffa2 Drop debug log in prune 2019-05-17 11:04:10 -07:00
Jordan Liggitt
ea464235a8 Add CRD integration test for dropping watches 2019-05-17 13:34:15 -04:00
Yassine TIJANI
c6b224b16c update LastObservedTime instead of eventTime
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-05-17 18:56:38 +02:00
Chao Xu
7bb4a3bace Run deleteValidation at the storage layer so that it will be retried on
conflict.

Adding unit test verify that deleteValidation is retried.

adding e2e test verifying the webhook can intercept configmap and custom
resource deletion, and the existing object is sent via the
admissionreview.OldObject.

update the admission integration test to verify that the existing object
is passed to the deletion admission webhook as oldObject, in case of an
immediate deletion and in case of an update-on-delete.
2019-05-17 09:54:11 -07:00
yue9944882
34c4a6e057 Cherrypicking #66535
validate deletion admission object

backward compatibility: add validation for direct storage delete calls

apply nil validation to existing tests

revert behavior changes in deleteCollection call

fixes validation on wiring graceful deletion

remove nil validation check

continue admission check on not found error
2019-05-17 09:50:16 -07:00
Ted Yu
32241b0751 Use lock in eventBroadcasterImpl#refreshExistingEventSeries 2019-05-17 09:30:55 -07:00
Jordan Liggitt
d304c9ecbb Terminate watchers when watch cache is destroyed 2019-05-17 10:21:24 -04:00
Kubernetes Prow Robot
e67c266a72 Merge pull request #65782 from yastij/eventv2-eventf
Implementing logic for v1beta1.Event API
2019-05-17 07:00:10 -07:00
Dr. Stefan Schimanski
6acd9215b0 apiextensions: add structural schema extension unfolding 2019-05-17 14:59:54 +02:00
Kubernetes Prow Robot
3193e78a2f Merge pull request #77333 from sttts/sttts-structural-crd-pruning
apiextensions: implement structural schema CRD pruning
2019-05-17 05:38:05 -07:00
Shintaro Murakami
2fcb248354 Change to use a constant 2019-05-17 18:45:02 +09:00
Kubernetes Prow Robot
27410955e2 Merge pull request #77952 from liggitt/delete-on-update
Handle updates removing remaining finalizers on deleted objects
2019-05-17 02:04:32 -07:00
Yassine TIJANI
464a994a10 Implementing logic for v1beta1.Event API
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-05-17 10:50:58 +02:00
Dr. Stefan Schimanski
d10f8c1ad3 Update generated files 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
77bfddacfd apiextensions: add pruning integration tests 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
3f3ed79484 apiextensions: only prune correct GroupKind 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
70ee02725f apiextensions: wire pruning into handler 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
52577aa908 apiextensions: low-level pruning algorithms 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
32d05973f5 apiextensions: add structural schema validation if preserveUnknownFields=false 2019-05-17 09:35:10 +02:00
Dr. Stefan Schimanski
7484892009 apiextensions: add preserveUnknownFields API 2019-05-17 09:35:10 +02:00
Sergiusz Urbaniak
83b850cd54 kube-aggregator/openapi/controller: remove trailing 1 in failure rate limiter 2019-05-17 09:34:15 +02:00
Kubernetes Prow Robot
e0f28e5d0f Merge pull request #77945 from michaelfig/client-go-namespaced-dynamicinformer
Honour NewFilteredDynamicSharedInformerFactory namespace argument
2019-05-17 00:26:31 -07:00
Kubernetes Prow Robot
a6b546eb72 Merge pull request #77936 from liggitt/shorten-cert-wait
Interrupt WaitForCertificate if desired kubelet serving cert changes
2019-05-17 00:26:19 -07:00
Kubernetes Prow Robot
56683a2f1f Merge pull request #77925 from liggitt/icc-tokenfile
honor overridden tokenfile, add InClusterConfig override tests
2019-05-16 20:39:51 -07:00
Pengfei Ni
98aba3b4b8 Upgrade Azure network API version to 2018-07-01 2019-05-17 11:25:18 +08:00
Tim Allclair
dd5c8e14fd Avoid the default server mux 2019-05-16 17:31:20 -07:00
Jean Rouge
181706b0f0 Auto-generated changes for Windows GMSA support
This patch comprises the auto-generated changes for the API changes outlined in
the Windows GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md)
to add GMSA support to Windows workloads.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-05-16 15:34:22 -07:00
Jean Rouge
794176f3c4 GRPC changes for GMSA support
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-05-16 15:34:10 -07:00
Jean Rouge
a3e914528a API changes for Windows GMSA support
This patch comprises the API changes outlined in the Windows GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md)
to add GMSA support to Windows workloads.

It includes validation, as well as dropping fields if the `WindowsGMSA` feature
flag is not set, both with unit tests.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-05-16 15:32:59 -07:00
Mike Danese
5df7f529f0 cleanup some leader election client doc 2019-05-16 12:57:11 -07:00
Antoine Pelisse
4e32d183d0 fieldManager: Ignore conversion errors to internal types
Errors on updates are bad because they usually come from controllers and
it's very hard to take actions on them. We also don't want to start
breaking kubernetes clusters if something in a schema happens a way we
didn't foresee (even though we've tried to be diligent and test as much
as possible, these can still happen).

Log an identifiable error when they happen. Ideally people can look in
the logs to find these and report them, or providers can look for these
in logs and make sure they don't happen.

Only conversion to internal types are going to be logged and ignored.

It means that we're still failing for:
- Version conversions. If we can't convert the object from one version
  to another,
- Unions. If we can't normalize the union,
- Invalid MangedFields sent in the object. If something has changed the
  ManagedFields to an invalid value.
- Failure to serialize the manager information, this really shouldn't
  happen.
- Encoding the ManagedFields
2019-05-16 12:37:25 -07:00
Jordan Liggitt
739a75fc32 Interrupt WaitForCertificate if desired kubelet serving cert changes 2019-05-16 15:14:47 -04:00
Kubernetes Prow Robot
6a9ecf71fd Merge pull request #77912 from andyzhangx/fix-azuredisk-lun-error
Fix incorrect azuredisk lun error
2019-05-16 08:48:54 -07:00
Kubernetes Prow Robot
5a233ccb84 Merge pull request #77906 from feiskyer/az-no-authz
Allow Kubelet to run with no Azure identity
2019-05-16 08:48:12 -07:00
Han Kang
2d48b3e81e add process start time metric to metric probes since they use counters 2019-05-16 08:19:29 -07:00