Commit Graph

2162 Commits (714fcd910fb7abf8647a6f67bfb15eeed10854a1)

Author SHA1 Message Date
Kubernetes Prow Robot b7fa33ec15
Merge pull request #77703 from ddebroy/inline-mig-1
API changes to support migration of inline in-tree volumes to CSI
2019-05-31 12:23:19 -07:00
wangqingcan 52f3380ef3 change preempting to PreemptionPolicy 2019-05-31 12:42:05 +08:00
wangqingcan 5c9438c691 non-preempting-priorityclass
Co-authored-by: Vallery Lancey <vallery@zeitgeistlabs.io>
Co-authored-by: Tan shanshan <tan.shanshan@zte.com.cn>
2019-05-31 12:37:07 +08:00
Deep Debroy c34309acdf API changes to support CSI migration of inline volumes
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-05-30 09:34:47 +00: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
Jordan Liggitt fba885a0d2 Handle updates removing remaining finalizers on deleted objects 2019-05-15 17:17:39 -04:00
David McCormick 3537eed826 Remove the generation altering code - validate an update for a PDB by running ValidatePodDisruptionBudget only. 2019-05-14 12:25:23 +01:00
David McCormick 5b9e4f1e88 Rebase allow updates to pdbs to latest upstream master 2019-05-14 12:25:22 +01:00
Antoine Pelisse e017436bef Fix missing pdb in test 2019-05-10 14:58:22 -07:00
Kubernetes Prow Robot 09c4e10333
Merge pull request #74021 from andrewsykim/move-features-component-base
Move feature gate package from k8s.io/apiserver to k8s.io/component-base
2019-05-08 13:06:34 -07:00
Daniel (Shijun) Qian 5268f69405 fix duplicated imports of k8s code (#77484)
* fix duplicated imports of api/core/v1

* fix duplicated imports of client-go/kubernetes

* fix duplicated imports of rest code

* change import name to more reasonable
2019-05-08 10:12:47 -07:00
Andrew Kim c919139245 update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00
danielqsj 142fe19f2d fix increment-decrement lint error 2019-05-06 13:14:51 +08:00
Kubernetes Prow Robot 83f769c2a3
Merge pull request #77139 from cmluciano/cml/ingressnetv1beta1default
ingress: use networking api group for default storage of ingress
2019-05-02 16:22:18 -07:00
Kubernetes Prow Robot b07f311322
Merge pull request #76882 from SataQiu/fix-golint-controller-20190422
Fix golint failures of pkg/controller/certificates/approver, etc
2019-05-02 03:16:18 -07:00
SataQiu 538776d6ad fix golint failures of pkg/registry/rbac/role 2019-05-02 10:36:35 +08:00
SataQiu 55d1b5e3d4 fix golint failures of pkg/registry/rbac/clusterrole 2019-05-02 10:35:47 +08:00
Christopher M. Luciano dd891bbbb8
ingress: generated files netv1beta1
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2019-05-01 15:29:08 -04:00
Christopher M. Luciano 4bac85c162
ingress: use networking api group for default storage of ingress
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>

The change to registrytest was found by liggitt to mitigate a NPE error.
This is necessary since ingress is a cohabitating resource that is not
stored in the default version for the networking resource.

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2019-05-01 15:14:11 -04:00
Kubernetes Prow Robot b4cc2a5523
Merge pull request #76051 from zhouhaibing089/rm-orphan-by-default
namespace: remove gc finalizers based on delete options
2019-04-30 16:10:56 -07:00
zhouhaibing089 a458e9bb85 namespace: remove gc finalizers based on delete options
This makes the behavior being consistent with generic store, The
orphan finalizer should be removed if the delete options does not
specify propagarionPolicy as orphan.
2019-04-26 16:13:41 -07:00
Kubernetes Prow Robot 28172ec17c
Merge pull request #76969 from apelisse/fix-dry-run-eviction
Fix eviction dry-run
2019-04-24 21:44:56 -07:00
Antoine Pelisse 37f266349c Fix eviction dry-run 2019-04-24 09:51:26 -07:00
Jordan Liggitt 2a5c25aca5 Copy object sent to validating admission 2019-04-24 08:59:28 -04:00
Serguei Bezverkhi 6fe28ee957 Adding non persistent review test
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-04-23 18:02:40 -04:00
Jordan Liggitt a4576ec5a6 Fix binding and eviction admission 2019-04-23 10:31:34 -04:00
Jordan Liggitt cc3252d13d Fix deploymentrollback to be named creator, populate object name in admission 2019-04-20 03:33:36 -04:00
Jordan Liggitt dced88e703 Fix scale subresource when used with admission webhooks 2019-04-20 03:33:36 -04:00
Jordan Liggitt aee1997a19 quiet integration test logs 2019-04-20 02:20:31 -04:00
Davanum Srinivas 7b8c9acc09
remove unused code
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
Sean Sullivan abfc5bbbf7 Rename TablePrinter interface to TableGenerator 2019-04-16 12:55:30 -07:00
Kubernetes Prow Robot 552d1ebd70
Merge pull request #76237 from mkumatag/fix_storage_test
Fix the TestUpdate
2019-04-09 13:58:59 -07:00
Jordan Liggitt e377e9fed9 Fix up cronjob and job registry tests to not use testapi 2019-04-09 13:30:34 -04:00
Jordan Liggitt 56f3f6eec7 Use kubeapiserver storage config for registry tests 2019-04-09 13:26:05 -04:00
Manjunath A Kumatagi 6aa06adcfe Remove storageapi api check 2019-04-09 11:05:38 -04:00
yue9944882 65ba58a9a5 remove internal client dependency in pkg/* 2019-04-09 21:43:51 +08:00
Manjunath A Kumatagi 485605e133 Fix the TestUpdate 2019-04-07 13:45:45 +05:30
Kubernetes Prow Robot ec64aef25f
Merge pull request #74321 from yastij/signal-undecorated-storage-event
use cache size to signal undecorated storage
2019-03-24 03:21:05 -07:00
Kubernetes Prow Robot ed4258e5c0
Merge pull request #75264 from smarterclayton/optimize_rbac_visit
Avoid allocating when performing VisitRulesFor on service accounts
2019-03-20 19:19:35 -07:00
Kubernetes Prow Robot 6f9bf5fe98
Merge pull request #71548 from smarterclayton/watch_converted
Support Table and PartialObjectMetadata on watch
2019-03-19 22:42:22 -07:00
Yassine TIJANI 8261d3d9a6 use cache size to signal undecorated storage 2019-03-19 23:48:07 +01:00
Tim Allclair e6ea4f0538 Don't follow non-local redirects for http probes 2019-03-15 11:04:30 -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
ajatprabha 4ddc198c39
pin ResourceVersion precondition only when specified 2019-03-12 17:00:41 +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
Chao Xu 3b618af0d4 Expose storage version hash 2019-03-11 10:26:56 -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
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