Commit Graph

6504 Commits

Author SHA1 Message Date
Michael Taufen
ee7bcc53a2 Update klog to v0.3.1
Includes recent fixes, notably https://github.com/kubernetes/klog/pull/66
2019-05-22 10:55:37 -07:00
Kubernetes Prow Robot
a27d3aef30 Merge pull request #78200 from zhan849/revert-76976
Manually revert #76976
2019-05-22 05:24:32 -07:00
Kubernetes Prow Robot
0b67b95c8f Merge pull request #78049 from tariq1890/corev1_pod
extract PodReasonUnschedulable out of the PodConditionType const group
2019-05-22 04:00:38 -07:00
Kubernetes Prow Robot
932d8031ab Merge pull request #77756 from jpbetz/crd-conversion-tests
Add webhook converter integration test suite
2019-05-22 02:40:12 -07:00
Harry Zhang
47b8db47cf Manually revert #76976 2019-05-21 23:13:48 -07:00
Joe Betz
e23769f018 Add webhook converter integration test suite 2019-05-21 13:07:44 -07:00
Kubernetes Prow Robot
ae2a1628f6 Merge pull request #75459 from wk8/wk8/gmsa_beta
Kubelet & API changes for Windows GMSA support
2019-05-21 11:40:08 -07:00
Kubernetes Prow Robot
15d88d19d3 Merge pull request #78019 from mrkm4ntr/use-constant
Change to use a constant
2019-05-20 18:38:52 -07:00
Kubernetes Prow Robot
938041694c Merge pull request #77554 from sttts/sttts-structural-publishing
apiextensions: publish (only) structural OpenAPI schemas
2019-05-20 18:38:39 -07:00
Kubernetes Prow Robot
69c90d8cca Merge pull request #77991 from mikedanese/ledoc
cleanup some leader election client doc
2019-05-20 17:12:39 -07:00
Kubernetes Prow Robot
fa110d754e Merge pull request #78133 from sttts/sttts-apiextensions-avoid-nonstructural-message-fight
apiextensions: avoid two HA API servers to fight for NonStructural condition message
2019-05-20 14:54:13 -07:00
Dr. Stefan Schimanski
2cfc3c69dc apiextensions: avoid two HA API server to fight for NonStructural condition message 2019-05-20 22:26:19 +02:00
Kubernetes Prow Robot
667c3ed94c Merge pull request #78063 from tedyu/evt-lock
Change lock type to write lock in eventBroadcasterImpl
2019-05-18 05:01:12 -07:00
Kubernetes Prow Robot
df4f033a4f Merge pull request #77501 from JieJhih/scheduling/plugin
add scheduling framework configuration
2019-05-18 03:39:12 -07:00
Dr. Stefan Schimanski
d01e942d37 Update generated files 2019-05-18 11:12:48 +02:00
Dr. Stefan Schimanski
bc86aeba05 apiextensions: switch OpenAPI pubilshing to structural schema 2019-05-18 11:12:48 +02:00
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
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
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
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