Ted Yu
5b49d03b84
Return the error from copyInto
2020-01-23 07:48:39 -08:00
yuzhiquan
8d7f383785
cleanup(api-machinery): remove unused struct and variable
2020-01-08 16:57:02 +08:00
yuzhiquan
ca69051475
refactor(pod log):refactor for container valiate, little cleanup
...
bug(pod log):TestCheckLogLocation should point out pod name
modify container if statement
fix typo
2019-12-30 16:16:45 +08:00
Jordan Liggitt
bb90f0ff94
Install APIs directly for tests
2019-12-13 11:56:29 -05:00
Nan Yu
1fb0dd4ec5
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
2019-12-03 14:26:35 -08:00
Kubernetes Prow Robot
050c9471c8
Merge pull request #85644 from liggitt/meta-v1-table
...
Switch TableGenerator/TableConvertor interfaces to metav1
2019-11-28 10:05:18 -08:00
Kubernetes Prow Robot
d356fcfce5
Merge pull request #84921 from clarklee92/FixCollidesWithImportedPackageName
...
Variables collide with imported package name
2019-11-28 01:49:03 -08:00
Jordan Liggitt
36eb250cbb
Switch TableGenerator/TableConvertor interfaces to metav1
2019-11-26 13:18:18 -05:00
clarklee92
0649f4064e
Variables collides with imported package name
...
Such declarations will make using the package exported identifiers impossible after the declaration or create confusion when reading the code.
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-11-07 21:44:22 +08:00
yuxiaobo
81e9f21f83
Correct spelling mistakes
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-11-06 20:25:19 +08:00
David Eads
867ee1d5ff
add insecurebackendproxy
2019-10-16 11:43:17 -04:00
tanjunchen
de3cf23414
remove the repeat word in documents
2019-10-06 23:32:01 +08:00
Di Xu
d4d696d0f2
add legacyBinding for non-Named Binding Creater
2019-08-22 11:46:12 +08:00
Di Xu
b28f62c8ad
check pod name with that in pod eviction object
2019-08-22 11:46:12 +08:00
Di Xu
5ed1b8fa29
check pod name with that in binding object
2019-08-22 11:46:12 +08:00
Jordan Liggitt
61774cd717
Plumb context to admission Admit/Validate
2019-08-20 11:11:00 -04:00
Ted Yu
87b2a3129b
Propagate error from NewREST
2019-08-12 13:55:35 -07:00
wojtekt
467f5e96ee
Fix some golint failures
2019-07-25 20:38:28 +02:00
Lee Verberne
4a753c7a44
Generated code for ephemeral containers API
2019-07-22 11:19:22 +00:00
Lee Verberne
013f049ce0
Add Ephemeral Containers to the Kubernetes core API
2019-07-22 11:19:22 +00:00
Ted Yu
6e98aab26e
Rename TriggerPublisherFunc as IndexerFunc
2019-07-18 06:45:51 -07:00
Kubernetes Prow Robot
cb9c6f43a5
Merge pull request #80260 from khenidak/fix-panic-in-pod-strategy
...
fix panic in ResourceLocation in case of empty pod ip list
2019-07-17 21:28:23 -07:00
Khaled Henidak(Kal)
41f313570e
fix panic in ResourceLocation in case of empty pod ip list
2019-07-17 18:30:08 +00:00
wojtekt
68fd329e00
Simplify trigger functions in cacher
2019-07-16 08:55:34 +02:00
wojtekt
ee13be2884
Propagate error from creating cacher and storage decorators up
2019-07-15 20:48:30 +02:00
Kubernetes Prow Robot
2542746c1d
Merge pull request #79813 from tedyu/match-container-for-port
...
Remove the TODO for container name matching
2019-07-08 16:00:39 -07:00
Ted Yu
4ca5b45f3d
Remove the TODO for container name matching
2019-07-08 09:23:35 -07:00
Kubernetes Prow Robot
e1b757b654
Merge pull request #79812 from tedyu/pdb-decrement
...
Populate DisruptedPods field for non-dry run
2019-07-05 22:00:34 -07:00
Ted Yu
2dae73e3d9
Populate DisruptedPods field for non-dry run
2019-07-05 04:37:29 +08:00
chenyixiang
874b3249e5
Get the pdb when conflict instead of relisting
...
Change-Id: I50ff6fede509c9b4f81db62718d2150a3c45522f
2019-07-04 16:19:15 +08:00
Khaled Henidak(Kal)
54d42e6a65
types modifications + conversion + conversion testing
2019-07-02 15:39:05 +00:00
wojtekt
a756e20cb5
Update autogenerated files
2019-07-01 15:02:49 +02:00
wojtekt
7497260e54
Move etcd/testing to etcd3/testing
2019-07-01 15:02:49 +02:00
Lee Verberne
ee821e2a04
Create helpers for iterating containers in a pod
2019-06-21 08:32:04 +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
Antoine Pelisse
e017436bef
Fix missing pdb in test
2019-05-10 14:58:22 -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
Jordan Liggitt
a4576ec5a6
Fix binding and eviction admission
2019-04-23 10:31:34 -04:00
Sean Sullivan
abfc5bbbf7
Rename TablePrinter interface to TableGenerator
2019-04-16 12:55:30 -07:00
yue9944882
65ba58a9a5
remove internal client dependency in pkg/*
2019-04-09 21:43:51 +08:00
Jordan Liggitt
4271384966
Call conditional validation from create/update strategies
2019-02-05 23:09:31 -05:00
Jordan Liggitt
cdfb5d3170
Make pod eviction trigger graceful deletion to match deletion via API
2019-01-25 23:35:49 -05:00
Jordan Liggitt
1a15d80967
generated
2019-01-23 16:34:44 -05:00
Jordan Liggitt
17aa60686e
Deprecate and remove use of alpha metadata.initializers field, remove IncludeUninitialized options
2019-01-23 16:34:43 -05:00
Jordan Liggitt
12dd768bee
Pass pod annotations into DropDisabledFields()
2019-01-07 14:44:20 -05:00
Jordan Liggitt
e486d486b1
Plumb old pod spec into DropDisabledFields methods
2018-12-17 12:49:29 -05:00
Jordan Liggitt
49028df5f9
Rename DropDisabledFields
2018-12-17 12:08:25 -05:00
Micah Hausler
9740b6a6e1
Disable proxy to loopback and linklocal
2018-12-11 20:51:40 -08:00
Minhan Xia
c987e95282
add readiness gates column in the wide printout for pod
2018-11-07 16:45:49 -08:00
k8s-ci-robot
9ba74cb5b5
Merge pull request #69251 from yue9944882/bugfix/pass-handler-context-to-nodegetter
...
Pass server handler context to storage nodeGetter
2018-10-09 02:14:51 -07:00
zuoxiu.jm
3370907fe5
pass handler ctx to node rest nodegetter
2018-10-01 09:27:18 -04:00
k8s-ci-robot
3d2fcf4155
Merge pull request #68892 from ravisantoshgudimetla/fix-pdb
...
PDB checks should not be done for terminal pods while evicting
2018-09-26 22:59:14 -07:00
Tim Allclair
4ee9f007cb
Only allow apiserver to follow redriects to the same host
2018-09-25 17:18:55 -07:00
Brad Hoekstra
42da186b62
Address review comments
2018-09-21 20:06:32 -04:00
ravisantoshgudimetla
d776f865a2
PDB checks should not be done for terminal pods while evicting
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com>
2018-09-20 14:30:34 -04:00
Brad Hoekstra
ac8799a80d
kubelet: Make service environment variables optional
2018-09-17 16:27:36 -04:00
Kubernetes Submit Queue
c5d15cb0b8
Merge pull request #66115 from jasonrichardsmith/add-serviceAccount-fieldselector
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
added serviceAccountName to field selectors
What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #66114
Special notes for your reviewer:
```release-note
NONE
```
2018-08-15 08:24:57 -07:00
Chao Xu
64bd0e4589
Fix scope.Kind of CONNECT subresources.
...
Make scope.Kind of pod/attach, pod/exec, pod/portforward, node/proxy,
service/proxy to their respective subresource Kind, instead of the
parent Kind. The kind is used by the admission webhook controller to
determine how to convert the object.
2018-08-06 18:59:52 -07:00
Antoine Pelisse
68937c4934
dry-run: Use dry-runnable structure
2018-08-03 14:30:50 -07:00
Clayton Coleman
2f275b72b2
Improve the output of kubectl get events
...
Events have long shown the most data of the core objects in their output, but that data is of varying use
to a user. Following the principle that events are intended for the system to communicate information back
to the user, and that Message is the primary human readable field, this commit alters the default columns
to ensure event is shown with the most width.
1. Events are no longer sorted in the printer (this was a bug and was broken with paging and server side
rendering)
2. Only the last seen, type, reason, kind, and message fields are shown by default, which makes the
message prominent
3. Source, subobject, count, and first seen are only shown under `-o wide`
4. The duration fields were changed to be the more precise output introduced for job duration (2-3 sig figs)
2018-07-26 16:12:32 -04:00
Jordan Liggitt
dc5f615152
Send correct headers for pod printing
2018-07-19 20:55:00 -04:00
Antoine Pelisse
03b1e14101
dry-run: Create new options for Update/Create and pass it along
2018-07-12 07:18:37 -07:00
Jason Smith
4ba7fd5f3c
added serviceAccountName to field selectors
2018-07-12 11:13:36 +02:00
jennybuckley
c60fe4fb76
Propagate forceAllowCreate as false to all subresources
2018-06-29 11:28:19 -07:00
jennybuckley
d10e08fc89
Allow override AllowCreateOnUpdate with new argument to Update
2018-06-28 14:24:51 -07:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Dr. Stefan Schimanski
ebbfaf3869
printers: fix json types – int64 is only allowed integer
...
We have the invariant in apimachinery that all integers in JSON are int64.
We panic on other types on deepcopy and possibly at other occasions.
2018-06-02 09:43:20 +00:00
Kubernetes Submit Queue
484f62a568
Merge pull request #63333 from deads2k/api-14-snip
...
Automatic merge from submit-queue (batch tested with PRs 63421, 63432, 63333). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
update tests to be specific about the versions they are testing
When setting up tests, you want to rely on your own scheme. This eliminates coupling to floating versions which gives unnecessary flexibility in most cases and prevents testing all the versions you need.
@liggitt scrubs unnecessary deps.
```release-note
NONE
```
2018-05-04 10:52:10 -07:00
David Eads
94e3d94d67
update tests to be specific about the versions they are testing instead of floating
2018-05-01 13:18:41 -04:00
David Eads
8ae62517da
remove rootscopedkinds from groupmeta
2018-05-01 13:08:23 -04:00
David Eads
6900f8856f
rest mappings cannot logically be object converters
2018-04-26 12:47:25 -04:00
David Eads
a89291a5de
stop duplicating preferred version order
2018-04-26 10:03:36 -04:00
Mike Danese
54fd2aaefd
replace request.Context with context.Context
2018-04-24 08:59:00 -07:00
hzxuzhonghu
70e45eccf2
Replace "golang.org/x/net/context" with "context"
2018-03-22 20:57:14 +08:00
wojtekt
6786d6691a
Avoid reallocating of map in PodToSelectableFields
2018-03-07 12:26:02 +01:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00
Di Xu
48388fec7e
fix all the typos across the project
2018-02-11 11:04:14 +08:00
Clayton Coleman
d07a608607
Promote v1alpha1 meta to v1beta1
...
No code changes, just renames
2018-02-02 14:00:45 -05:00
Bobby (Babak) Salamat
384a86caa9
Add NominatedNodeName to PodStatus
2018-01-30 13:13:57 -08:00
linweibin
fa8afc1d39
Remove unused code in UT files in pkg/
2018-01-15 16:02:35 +08:00
Jeff Grafton
efee0704c6
Autogenerate BUILD files
2017-12-23 13:12:11 -08:00
Dr. Stefan Schimanski
d4d53c0e2a
apiserver: remove unneeded scheme from registry tester
2017-11-20 09:39:44 +01:00
Dr. Stefan Schimanski
0b100cb69b
registry: move generic registry tester into k8s.io/apiserver
2017-11-16 09:03:42 +01:00
Dr. Stefan Schimanski
3410f536f4
registry: cut-off kube dependencies from registrytest
2017-11-16 08:57:58 +01:00
Dr. Stefan Schimanski
bec617f3cc
Update generated files
2017-11-09 12:14:08 +01:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Dr. Stefan Schimanski
2452afffe0
admission: wire create+update validation func into kube registries
2017-11-02 09:29:16 +01:00
Jordan Liggitt
5913fccada
Use GVK from storage in API registration
2017-10-27 23:57:39 -04:00
Jordan Liggitt
729a0da155
Specify correct subresource discovery info
2017-10-27 23:57:38 -04:00
Dr. Stefan Schimanski
cad0364e73
Update bazel
2017-10-18 17:24:04 +02:00
Dr. Stefan Schimanski
7773a30f67
pkg/api/legacyscheme: fixup imports
2017-10-18 17:23:55 +02:00
Jeff Grafton
aee5f457db
update BUILD files
2017-10-15 18:18:13 -07:00
Dr. Stefan Schimanski
509df603b1
apimachinery: mechanical removal of ObjectCopier plumbing
2017-10-06 19:21:03 +02:00
Jordan Liggitt
04eede9b2a
Preserve leading and trailing slashes on proxy subpaths
2017-09-22 23:05:13 -04:00
Clayton Coleman
fc2d201e15
Allow watch cache to be disabled per type
...
Currently setting watch cache size for a given resource does not disable
the watch cache. This commit adds a new `default-watch-cache-size` flag
to map to the existing field, and refactors how watch cache sizes are
calculated to bring all of the code into one place. It also adds debug
logging to startup to allow us to verify watch cache enablement in
production.
2017-09-08 13:42:28 -04:00
Jordan Liggitt
9648f1cb7a
Fix proxied request-uri to be valid HTTP requests
2017-09-07 13:10:49 -04:00
Chao Xu
3432e38f90
bazel
2017-09-05 22:08:04 -07:00