Commit Graph

1470 Commits

Author SHA1 Message Date
jiangyaoguo
62c0c35307 Fix reporting reason in kubelet
1. Make reason field of StatusReport objects in kubelet in CamelCase format.
2. Add Message field for ContainerStateWaiting to describe detail about Reason.
3. Make reason field of Events in kubelet in CamelCase format.
4. Update swagger,deep-copy and so on.
2015-09-11 10:01:08 +08:00
tummychow
78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
hurf
f61d434e1f Remove duplicate value assginment when validating limitrange
It's unnecessary to get the quantities again from limit.
2015-09-10 21:26:53 +08:00
k8s-merge-robot
46d94b5fe6 Merge pull request #13688 from derekwaynecarr/fix_validate_limitrange
Auto commit by PR queue bot
2015-09-09 16:04:11 -07:00
derekwaynecarr
ea919f6d1e Fix precision handling in validating LimitRange 2015-09-09 15:52:29 -04:00
k8s-merge-robot
0f1525ce9b Merge pull request #13678 from pmorie/serialization-debug
Auto commit by PR queue bot
2015-09-08 16:37:18 -07:00
Paul Morie
502492f3ed Make serialization tests easier to debug 2015-09-08 13:19:08 -04:00
k8s-merge-robot
2e2def36a9 Merge pull request #13581 from caesarxuchao/APIGroup-testapi-2
Auto commit by PR queue bot
2015-09-04 20:38:45 -07:00
Chao Xu
9fc79e9d99 refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
Quinton Hoole
19017c761f Merge pull request #13590 from markturansky/fix_empty_pv_list
Fixed empty PV/C lists by removing omitempty
2015-09-04 15:12:07 -07:00
Quinton Hoole
49702f9059 Merge pull request #13584 from wojtek-t/remaining_test_refactorings
Refactor registry tests to reduce dependency on go-etcd.
2015-09-04 13:12:45 -07:00
Quinton Hoole
fc946ce4a4 Merge pull request #12600 from derekwaynecarr/resource_quota_request
Update ResourceQuota for resource requirements requests
2015-09-04 12:39:46 -07:00
Quinton Hoole
e5e2bc9580 Merge pull request #10833 from markturansky/loosen_binding
Allow PV/Claim matching on inexact access modes
2015-09-04 09:06:31 -07:00
markturansky
b6feefbd9f fixed empty PV/C lists by removing omitempty 2015-09-04 09:51:17 -04:00
Wojciech Tyczynski
2b2d6b677d Refactor registry tests to reduce dependency on go-etcd. 2015-09-04 09:52:54 +02:00
derekwaynecarr
2e76842eb7 Update resource quota for requests 2015-09-03 14:24:59 -04:00
Wojciech Tyczynski
97b4a64e2c Refactor registry etcd delete tests 2015-09-03 09:05:17 +02:00
Abhi Shah
1b0cf281e5 Merge pull request #13000 from brendandburns/schema-api-2
Add support for dynamic APIs
2015-09-02 13:53:28 -07:00
Brendan Burns
2df5010834 Merge branch 'sdminonne-container_sidecar' 2015-09-02 10:42:08 -07:00
Brendan Burns
74ef517097 Merge pull request #6649 from rootfs/wip-cephfs
add Ceph FS volume plugin
2015-09-02 09:48:15 -07:00
nikhiljindal
30a58321e8 Adding defaults to Deployment 2015-09-01 23:48:34 -07:00
Salvatore Dario Minonne
f4dc0653aa adding downward api volume plugin 2015-09-01 22:23:03 +02:00
Huamin Chen
fe559f2726 implement Ceph FS volume plugin and add to e2e volume test
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-01 14:05:17 -04:00
Brendan Burns
43e7c9b211 Merge pull request #13367 from spothanis/cinder
Cinder Volume Plugin
2015-09-01 10:05:15 -07:00
Wojciech Tyczynski
6dfe5b4b5a Refactoring of watch etcd tests. 2015-09-01 09:24:16 +02:00
Brendan Burns
b196d0f84b Add support for installing custom object APIs 2015-08-31 21:13:36 -07:00
Brendan Burns
828e4d35a7 Add a storage implementation for thirdpartyresources. 2015-08-31 21:11:43 -07:00
nikhiljindal
13ecd8a72c Adding deployment registry and exposing deployments in master 2015-08-31 10:47:04 -07:00
Sreekanth Pothanis
f5da6b34ce Cinder Volume Plugin 2015-08-30 19:56:27 -07:00
k8s-merge-robot
e5ac413311 Merge pull request #13286 from nikhiljindal/validateDeployment
Auto commit by PR queue bot
2015-08-28 22:37:55 -07:00
k8s-merge-robot
08668d7d94 Merge pull request #13309 from kubernetes/revert-13246-revert-12492-limit_range_api
Auto commit by PR queue bot
2015-08-28 21:03:49 -07:00
nikhiljindal
92f373a4b6 Validate deployment 2015-08-28 12:47:33 -07:00
Prashanth B
52f7833cd3 Revert "Revert "LimitRange updates for Resource Requirements Requests"" 2015-08-28 09:26:36 -07:00
Wojciech Tyczynski
836be0c432 Refactoring of update etcd tests. 2015-08-28 15:47:40 +02:00
markturansky
0b6030f50c added better matching for PV access modes 2015-08-27 15:34:07 -04:00
Mike Danese
b772a9b74f run autogenerated updates 2015-08-27 11:47:35 -07:00
Mike Danese
8460e3913d move daemon controller to the experimental api 2015-08-27 11:47:35 -07:00
Mike Danese
650bf71cf7 Merge pull request #13120 from caesarxuchao/13804
add a fuzz function for expapi.APIVersion
2015-08-27 09:50:53 -07:00
Piotr Szczesniak
6e05b9e3a3 Revert "LimitRange updates for Resource Requirements Requests" 2015-08-27 10:50:50 +02:00
Chao Xu
fc9c2ddf0c add a fuzz function for expapi.APIVersion 2015-08-26 15:23:36 -07:00
Yu-Ju Hong
b00c04c497 Merge pull request #12845 from hurf/o_name
Add -o name for commands which use printer to output results
2015-08-26 13:03:52 -07:00
Yu-Ju Hong
1bae2b677d Merge pull request #12492 from derekwaynecarr/limit_range_api
LimitRange updates for Resource Requirements Requests
2015-08-26 13:02:57 -07:00
hurf
d2d96ff6e1 Add -o name for commands which use printer to output results
Added a new printer which prints 'resource/name' pair of a given
object.
2015-08-26 17:04:23 +08:00
Marek Grabowski
ad41904121 Merge pull request #12837 from JanetKuo/kubectl-validate-on
Make --validate default on and shows how to turn if off
2015-08-25 17:41:23 +02:00
Wojciech Tyczynski
d14654589a Merge pull request #13092 from wojtek-t/refactor_etcd_create_test
Refactoring of create etcd tests.
2015-08-25 15:07:42 +02:00
Janet Kuo
5823ef771b Make --validate default on and shows how to turn if off 2015-08-25 03:18:32 -07:00
derekwaynecarr
8fbe4645e3 Add fields to LimitRange object 2015-08-24 15:18:45 -04:00
Nikhil Jindal
a09425d828 Merge pull request #10933 from andronat/swagger_auto_type_docs
Automatic Generation of Swagger Documentation in Types
2015-08-24 10:35:58 -07:00
Wojciech Tyczynski
61de4fc34d Refactoring of create etcd tests. 2015-08-24 15:11:00 +02:00
Marcin Wielgus
9d466abd55 Serialization_test quick fix (remove exapi) 2015-08-24 13:13:14 +02:00
tamnd
906b279080 Support new docker config format for private registries 2015-08-22 15:37:25 +07:00
Anastasis Andronidis
10747841a0 move type documentation from tags to comments 2015-08-22 03:24:35 +02:00
Brendan Burns
5d664892f2 Add a storage implementation for thirdpartyresources. 2015-08-21 17:21:40 -07:00
Jerzy Szczepkowski
b337458ab6 Merge pull request #12993 from mikedanese/rtexpapi
fix roundtrip bug and add expapi to round trip serialization tests
2015-08-21 10:27:17 +02:00
k8s-merge-robot
44c76d5319 Merge pull request #12957 from smarterclayton/handle_terminating_pods
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Saad Ali
93ffc9c57e Merge pull request #12992 from pmorie/description_checker
Make description checker check for descriptions in internal API
2015-08-20 17:32:44 -07:00
Abhishek Shah
b6b8e99393 External IPs support. 2015-08-20 16:10:01 -07:00
Mike Danese
a6d1b87336 fix roundtrip bug and add expapi to round trip serialization tests 2015-08-20 13:58:03 -07:00
Paul Morie
1e7b510a14 Remove internal API descriptions 2015-08-20 16:21:47 -04:00
Clayton Coleman
02dbb95447 Add TerminationGracePeriodSeconds to API
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Wojciech Tyczynski
62199f7cd3 Merge pull request #12911 from wojtek-t/refactor_etcd_test_2
Refactoring of list etcd tests.
2015-08-20 10:03:39 +02:00
Saad Ali
082ea838c5 Merge pull request #12779 from Huawei-PaaS/issue/clean_govet_error
Clean the static check errors (Go vet)
2015-08-19 14:59:05 -07:00
Wojciech Tyczynski
dcc302ab38 Refactoring of list etcd tests. 2015-08-19 13:56:23 +02:00
Jian Huang
c350d325e9 Solve Static Check Error 2015-08-19 13:38:56 +08:00
Tim Hockin
86f4535871 Check loopback and link-local multicast endpoints
Previously we just disallowed link-local (unicast).  This disallows loopback
and link-local multicast.
2015-08-18 21:50:27 -07:00
Robert Bailey
08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Clayton Coleman
89f1f3b1b8 Alter graceful deletion to not use TTL
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.

Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Clayton Coleman
b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
Wojciech Tyczynski
6cea2c8940 Prepare for refactoring registry etcd tests 2015-08-18 09:53:23 +02:00
Robert Bailey
736945faba Merge pull request #12831 from thockin/nodeport-optional
Make nodePort optional in v1 API
2015-08-17 16:27:17 -07:00
Tim Hockin
75941afab2 Make nodePort optional in v1 API 2015-08-17 15:44:37 -07:00
Paul Morie
8ddef45679 Fix issue 10587; update SecurityContext godoc 2015-08-17 11:23:11 -04:00
Brendan Burns
a9580a0ad0 Merge pull request #12595 from smarterclayton/add_pod_status_ip
Add status.podIP as a valid downward API target
2015-08-14 20:29:50 -07:00
Brendan Burns
9cc5156b69 Merge pull request #12685 from eparis/goimports
Remove dependancy on external goimports binary
2015-08-14 20:29:00 -07:00
Clayton Coleman
01f3785426 Add status.podIP as a valid downward API target
Getting the public IP a container is supposed to use is O(hard),
and usually involves ugly gyrations in python or with interfaces.
Using the downward API means that the IP Kube is announcing to
other endpoints is also visible inside the container for pods to
identify themselves.
2015-08-14 17:51:55 -04:00
Brendan Burns
b29311ba2b Merge pull request #11781 from brendandburns/schema-api
RFC: Add initial plugin schema types.
2015-08-14 09:44:12 -07:00
Eric Paris
8f3577e5d2 Do not use goimports in hack/update-generated-conversions.sh
Stop depending on an external binary needing to be on people's system.
Use the code directly.
2015-08-13 19:37:01 -04:00
Eric Paris
00929ed7d8 Convert generated-deep-copies to use golang.org/x/tools/imports
I don't like users to need an external binary which can easily get out
of sync. Just include the tools.
2015-08-13 19:36:57 -04:00
Brendan Burns
1055eed9b6 Add initial storage types to the Kubernetes API 2015-08-13 09:25:02 -07:00
Jerzy Szczepkowski
f09a08d15a Refactoring of get etcd tests.
Refactoring of get etcd tests: introudced new generic resttest, TestGet; Converted all etcd tests to use it.
2015-08-13 12:14:04 +02:00
Wojciech Tyczynski
4516eeba81 Merge pull request #12594 from liggitt/status_field
Limit field errors to a single field name
2015-08-13 08:35:02 +02:00
CJ Cullen
59da05efdf Merge pull request #12405 from uluyol/kubectlexp
Add experimental api support to kubectl
2015-08-12 14:24:56 -07:00
Muhammed Uluyol
93b14c9a5d Document the relationship between groups, versions, kinds, and resources. Link
to appropriate issues for multiple api group support.
2015-08-12 11:29:05 -07:00
Jordan Liggitt
d7a50c4778 Limit field errors to a single field name 2015-08-12 14:10:26 -04:00
Piotr Szczesniak
eb01d49783 Merge pull request #12556 from uluyol/copynilinterface
Properly handle nil interfaces in DeepCopy.
2015-08-12 09:54:02 +02:00
Piotr Szczesniak
1df0267f4a Merge pull request #12551 from eparis/underscore-to-dash
Update code and docs to use - in flag names instead of _
2015-08-12 07:16:31 +02:00
Muhammed Uluyol
bc8bc37282 Properly handle nil interfaces in DeepCopy.
Running reflect.ValueOf(X) where X is a nil interface will return
a zero Value. We cannot get the type (because no concrete type is
known) and cannot check if the Value is nil later on due to the way
reflect.Value works. So we should handle this case by immediately
returning nil. We cannot type-assert a nil interface to another
interface type (as no concrete type is assigned), so we must add
another check to see if the returned interface is nil.
2015-08-11 17:59:32 -07:00
Muhammed Uluyol
567bb15432 Generate conversions/deep-copies for experimental. Currently we make (and register) duplicate functions but this is benign. 2015-08-11 17:12:24 -07:00
Muhammed Uluyol
fab367230f Add experimental API support to kubectl 2015-08-11 16:49:55 -07:00
Kris Rousey
565189f5b8 Correcting all go vet errors 2015-08-11 13:55:37 -07:00
Eric Paris
5aa495cdad Update code to use - in flag names instead of _ 2015-08-11 16:31:52 -04:00
Filip Grzadkowski
3f7b54cbdb Merge pull request #11669 from pweil-/sc-nonroot
add non-root directive to SC and kubelet checking
2015-08-11 10:30:53 +02:00
Alex Robinson
785ccf4a74 Merge pull request #12005 from JanetKuo/kubectl-describe-allocatedresource
Make kubectl describe node include allocated resource
2015-08-10 18:08:04 -07:00
Alex Robinson
33178dce96 Merge pull request #12496 from nikhiljindal/portDescription
Fixing a typo in port swagger description
2015-08-10 14:10:48 -07:00
nikhiljindal
a698acd3c8 Fixing a typo in port swagger description 2015-08-10 13:32:46 -07:00
Janet Kuo
0ac6dba3f4 Make kubectl describe node include allocated resource 2015-08-10 13:25:59 -07:00
Paul Weil
e490c20c22 add non-root directive to SC and kubelet checking 2015-08-10 13:30:34 -04:00
Marek Grabowski
5f9cefc1d8 Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Marek Grabowski
d239d51f3a Merge pull request #12414 from krousey/versioned_codec
Adding a way to decode to a specified version.
2015-08-10 16:32:36 +02:00
Veres Lajos
9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Satnam Singh
bee48f4ce5 Merge pull request #12035 from AnanyaKumar/requests
Add support for request
2015-08-07 14:27:34 -07:00
Kris Rousey
6e64a63a84 Adding a way to decode to a specified version.
This is largely needed as a way to get a versioned client without
requiring everyone to switch to versioned types at once.
2015-08-07 14:16:24 -07:00
Dr. Stefan Schimanski
79e54c2679 Add unit tests for RepackSubsets to take pod UID into consideration 2015-08-07 08:32:49 +02:00
Dr. Stefan Schimanski
55daf3b80e Don't wrongly identify endpoint addresses only due to equal IP
Before this patch the endpoint IP was used to identify endpoint addresses. This
leads to wrong unification of endpoints of different pods having the same IP (e.g.
non container IP in case of Mesos). This patch takes the EndpointAddress.targetRef.UID
into consideration as well.
2015-08-07 08:31:59 +02:00
AnanyaKumar
d9b85652ae Add Daemon API 2015-08-06 13:15:19 -07:00
Dawn Chen
536313c82c Merge pull request #9472 from deads2k/expose-name-validation
expose common name validation methods
2015-08-06 10:51:51 -07:00
Mike Danese
fe6b15ba2f rewrite all links to issues to k8s links 2015-08-05 21:11:11 -07:00
Ananya Kumar
ef1e576810 Add support for request 2015-08-05 19:00:19 -07:00
Mike Danese
17defc7383 run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Manan Saraf
b2ebfeef25 Fixed empty name error and also changed tests 2015-08-04 14:09:42 -07:00
Alex Mohr
366b382901 Merge pull request #10200 from caesarxuchao/resthandler-validate-version
verify and default APIVersion in createHandler, verify APIVersion in UpdateResource
2015-08-04 13:09:31 -07:00
Alex Mohr
867f9b22c5 Merge pull request #12119 from brendandburns/fix
Auto commit by PR queue bot
2015-08-03 20:47:42 -07:00
Alex Mohr
3d2d99c6fd Merge pull request #12007 from brendandburns/stdin
Auto commit by PR queue bot
2015-08-03 19:28:16 -07:00
Chao Xu
664d20c572 Add DecodeIntoWithSpecifiedVersionKind() to Decoder interface.
The function validate/default the body with the passed in apiVersion and Kind.
It's called in createHandler and UpdateResource
2015-08-03 15:30:00 -07:00
Chao Xu
18d32751fd improve the error message of update pod 2015-08-02 13:41:53 -07:00
Brendan Burns
7ad8307926 Set some default values and add some additional comments for clarity. 2015-07-31 22:00:30 -07:00
Brendan Burns
51757f6552 Add parameters for interactive containers. Useful with kubectl attach. 2015-07-31 21:41:58 -07:00
Paul Morie
5cfab10c1e Remove description tag from internal API types 2015-07-31 17:17:53 -04:00
Mike Danese
a23ee556ad Merge pull request #11999 from brendandburns/attach2
Add support for attach to kubectl
2015-07-31 12:51:08 -07:00
Mike Danese
739fc1a572 Merge pull request #11914 from nikhiljindal/missingSwagger
Swagger validation: stop ignoring unknown fields
2015-07-31 10:42:18 -07:00
Muhammed Uluyol
58a875ac2c Add (stopgap) support for an experimental API prefix. 2015-07-30 18:14:29 -07:00
Mike Danese
51a7a38f67 Merge pull request #12020 from wojtek-t/move_to_storage
Move storage-related code to pkg/storage
2015-07-30 16:23:03 -07:00
Clayton Coleman
0f9fdcafea Revert "Revert "Improve conversion to support multiple packages""
This reverts commit 94a387d5d1.
2015-07-30 15:15:14 -04:00
Brendan Burns
e8e756a719 Add pod/attach to the APIServer. 2015-07-30 10:55:53 -07:00
Mike Danese
94a387d5d1 Revert "Improve conversion to support multiple packages" 2015-07-30 10:51:40 -07:00
Wojciech Tyczynski
3cbbe72f9f Move etcd storage to pkg/storage/etcd 2015-07-30 15:42:06 +02:00
nikhiljindal
8cdd403d9d stricter swagger validation 2015-07-29 22:25:09 -07:00
Clayton Coleman
1d41f5ac75 Update generated conversions 2015-07-29 17:07:14 -04:00
Clayton Coleman
487fe2d116 Update deep copies 2015-07-29 17:06:55 -04:00
Mike Danese
60ac834563 Merge pull request #10652 from JanetKuo/kubectl-o-name
Add '-o name' to mutations
2015-07-29 09:46:10 -07:00
Brendan Burns
a546a2979c Merge pull request #11726 from caesarxuchao/fix-types-link
Auto commit by PR queue bot
2015-07-28 13:24:11 -07:00
Daniel Smith
b1e6b87a5f Merge pull request #11829 from markturansky/validate_access_modes
Add validation for AccessModes
2015-07-27 16:14:38 -07:00
Janet Kuo
0e42d0699a Add '-o name' to mutations 2015-07-27 14:06:53 -07:00
deads2k
d73faa8272 expose common name validation methods 2015-07-27 13:12:28 -04:00
markturansky
0a0af48e51 added validation for AccessModes 2015-07-27 13:02:16 -04:00
David Oppenheimer
2236fee028 Fix link to node selector documentation. 2015-07-24 23:04:59 -07:00
Chao Xu
aa758e64f7 update the links in pkg/api/types.go 2015-07-24 18:08:05 -07:00
Chao Xu
cbeed829b7 update the links in v1/types.go 2015-07-24 18:08:05 -07:00
Mike Danese
ae1c8e55ef Merge pull request #11737 from thockin/cleanup-remove-v1beta3
Remove v1beta3
2015-07-24 10:25:56 -07:00
Mike Danese
db179e4cf4 Merge pull request #10346 from jhadvig/comment_fix
Fix NewNotFound method name in comments
2015-07-24 08:08:57 -07:00
Mike Danese
7a60a7c264 Merge pull request #11773 from jayunit100/etc-comment
Update comments to remove etcd specificity and minion term
2015-07-24 08:00:21 -07:00
Vish Kannan
1a908a272e Merge pull request #11076 from nikhiljindal/apiError
Updating apiserver to not return 500 when a service without pods is proxied
2015-07-23 18:03:07 -07:00
Tim Hockin
1c3233a1d4 Remove v1beta3 2015-07-23 17:21:27 -07:00
Vish Kannan
136d53466a Merge pull request #10892 from nikhiljindal/beta1
Removing references to pre v1beta3 apis in code
2015-07-23 17:05:43 -07:00
jayunit100
6ca376fd12 Update comments to remove etcd specificity and minion / list term. 2015-07-23 17:41:44 -04:00
Mike Danese
a558edf036 Revert "Revert "Move rand string func to util for reuse""
This reverts commit acebe24bf3.
2015-07-22 15:01:28 -07:00
Paul Morie
1df80e3a6a Make copy_test.go failures easier to debug 2015-07-22 13:11:10 -04:00
Max Forbes
7a3891e5f8 Add ServiceAccount as an alias for ServiceAccountName 2015-07-16 15:48:49 -07:00
nikhiljindal
1517b66001 Updating an error to apierror 2015-07-15 16:43:59 -07:00