Commit Graph

1285 Commits (6cff082918a852383b75247dfa75bed9375d2fd8)

Author SHA1 Message Date
Brian Grant 2c81050e6f Merge pull request #8457 from davidopp/master
Fix stylistic isues with #5547. Closes #4910.
2015-05-19 07:43:21 -07:00
deads2k 5458f05679 create LocalObjectReference 2015-05-19 08:39:46 -04:00
David Oppenheimer 44b1e1ca0c Fix stylistic isues with #5547. Closes #4910. 2015-05-18 23:32:06 -07:00
Jordan Liggitt a6401fa433 Update generic etcd tests for cluster-scoped objects 2015-05-18 23:17:51 -04:00
Clayton Coleman 2e8b7f9797 Serialization of 'IP' should be 'ip'
CamelCase rules are "initialsUpperCase"
2015-05-18 22:56:12 -04:00
Brian Grant 03535478a2 Merge pull request #8440 from thockin/api-type-names
Rename a few API types (non-breaking change)
2015-05-18 18:48:16 -07:00
Tim Hockin 65833e42c4 rename CapabilityType Capability 2015-05-18 17:21:30 -07:00
Tim Hockin fd22f48f5b rename StorageType StorageMedium 2015-05-18 17:21:30 -07:00
Tim Hockin f66ca25d9f Rename AccessMode to PersistentVolumeAccessMode 2015-05-18 17:21:30 -07:00
Tim Hockin a548d542db Rename AffinityType to ServiceAffinity 2015-05-18 17:21:30 -07:00
Wojciech Tyczynski 9a93206774 Script for automatically generate conversions. 2015-05-19 02:17:58 +02:00
deads2k 0c14e0cbdb add pull secret references to pods 2015-05-18 16:18:16 -04:00
Wojciech Tyczynski d7834f5033 Merge pull request #8414 from pweil-/dedupe-sc
remove deprecated fields from v1 types
2015-05-18 12:57:38 -07:00
Daniel Smith c27999da07 Merge pull request #7966 from deads2k/add-dockercfg-secrets
add dockercfg secret types
2015-05-18 11:24:02 -07:00
Victor Marmol 45874d5f76 Merge pull request #5547 from gmarek/client3
Add a resource specifying number of Pods that are allowed to run on Kubelet.
2015-05-18 11:11:43 -07:00
Paul Weil ad4e4c90ce remove deprecated fields from v1 types 2015-05-18 14:07:36 -04:00
Victor Marmol bf912e0d82 Merge pull request #8338 from nikhiljindal/omitEmpty
Fixing the omitempty tag
2015-05-18 08:39:47 -07:00
deads2k be0f2d2930 add dockercfg secret types 2015-05-18 08:25:27 -04:00
deads2k d404a17f0a allow leading dots in secret keys 2015-05-18 08:17:58 -04:00
nikhiljindal 0ce0150bde Fixing the omitempty tag 2015-05-15 19:29:14 -07:00
nikhiljindal fa9f864782 Adding a script to update etcd objects 2015-05-15 16:20:35 -07:00
derekwaynecarr 8216332611 Kubelet kills a pod that exceeds ActiveDeadlineSeconds 2015-05-15 16:33:37 -04:00
gmarek 27d660d0ac Add a resource specifying number of Pods that are allowed to run on Kubelet. 2015-05-15 10:57:46 +02:00
Victor Marmol 8bc3e5121f Merge pull request #8188 from krousey/deep_copy
Changing the implementation of DeepCopy to use reflection
2015-05-14 18:25:30 -07:00
Kris Rousey 4d031abc16 Changing the implementation of DeepCopy to use reflection instead of Gob encode/decode. 2015-05-14 13:46:31 -07:00
Filip Grzadkowski 61b1c975af Merge pull request #8172 from wojtek-t/deep_copy_generator
Create DeepCopy benchmarks
2015-05-14 20:07:49 +02:00
Victor Marmol 07b8b79696 Merge pull request #8247 from kazegusuri/fix-struct-field-tag
Fix struct field tag
2015-05-14 10:36:34 -07:00
Masahiro Sano bccafcb97b fix struct field tag 2015-05-14 22:29:11 +09:00
Wojciech Tyczynski b52a4e60fc Fix convertion generator for manually written ones 2015-05-14 13:51:34 +02:00
Wojciech Tyczynski b00020884c DeepCopy benchmarks 2015-05-14 09:43:21 +02:00
Tim Hockin 2f59aa4f25 Somewhat better error messages for common formats
Clearer strings with examples.
2015-05-13 13:59:16 -07:00
Tim Hockin b429e89251 Spec qualified names (label keys) more tightly
It can be a (DNS_SUBDOMAIN/)?label, but we were validating it
incorrectly before.
2015-05-13 13:59:16 -07:00
Daniel Smith 25d32ee513 Merge pull request #7939 from nikhiljindal/latest
Adding an env variable to specify the list of supported API versions
2015-05-13 13:36:43 -07:00
markturansky 6b29c569ff regen again 2015-05-13 14:46:47 -04:00
markturansky fd3f7b2a98 rebased and regen conversions 2015-05-13 14:09:48 -04:00
markturansky 0191574f7e Bi-directional bind between pv.Spec.ClaimRef and pvc.Spec.VolumeName 2015-05-13 14:05:21 -04:00
nikhiljindal 8b278202fe Updating the code to set the latest version based on KUBE_LATEST_API_VERSION env flag 2015-05-13 10:53:00 -07:00
Wojciech Tyczynski c2f2faeb07 Generate conversion methods for v1 api. 2015-05-13 14:20:59 +02:00
Brian Grant 572b819944 Merge pull request #8052 from dkorn/PodConditions
Inconsistency in api terminology of pod conditions
2015-05-12 11:03:59 -07:00
Nikhil Jindal d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
dkorn 25ada0e118 Inconsistency in api terminology of pod conditions
While nodes returns the "conditions" key in api requests, pods returns
"Condition". Also, from pods states docs it seems that the right
terminology should be "conditions".

Fixes #8038
2015-05-12 10:52:52 +03:00
feihujiang 4bb594b34d Duplicate service port name can't be validated
Duplicate service port name can't be validated

Duplicate service port name can't be validated

Duplicate service port name can't be validated
2015-05-12 15:18:27 +08:00
Victor Marmol 43029345f9 Merge pull request #7973 from dchen1107/podstatus
Add kubectl log --previous support to view last terminated container log
2015-05-11 17:08:45 -07:00
Jordan Liggitt 0955808668 ServiceAccountTokens controller 2015-05-11 17:18:05 -04:00
Jordan Liggitt 53d55f4192 Add ServiceAccount API type, client 2015-05-11 17:18:05 -04:00
Jordan Liggitt 6e1e7dbb24 Add ServiceAccountToken SecretType 2015-05-11 17:18:05 -04:00
Nikhil Jindal 2cc8696425 Merge pull request #7919 from brendandburns/kubectl
Fix validation by moving it into the resource builder.
2015-05-11 10:20:14 -07:00
Dawn Chen ffa5947010 Introduce Previous as PodLogOptions 2015-05-11 10:14:22 -07:00
Vish Kannan b7289b606e Merge pull request #7786 from thockin/ports
Service port names are required for multi-port
2015-05-11 09:46:02 -07:00
Clayton Coleman 382623f3fa Merge pull request #7896 from wojtek-t/generated_calling_manual
Improments to conversion methods generator
2015-05-11 10:15:32 -04:00
Clayton Coleman 8755ea8ec9 Merge pull request #7704 from smarterclayton/parallel_allocator
Use etcd to allocate PortalIPs instead of in-mem
2015-05-11 09:56:10 -04:00
Marek Grabowski 16a76f1bd3 Merge pull request #8028 from shawnps/patch-1
Fix struct tag
2015-05-11 14:00:18 +02:00
Marek Grabowski 141e6977d6 Merge pull request #8029 from shawnps/patch-2
Fix struct tag
2015-05-11 13:59:56 +02:00
Wojciech Tyczynski 5578dc99e3 Improvements for conversions generator 2015-05-11 12:21:11 +02:00
Shawn Smith 48927cb209 Fix struct tag 2015-05-10 13:09:13 +09:00
Shawn Smith 97cdd064c8 Fix struct tag 2015-05-10 13:08:25 +09:00
Shawn Smith 8105ac5346 Fix struct tag 2015-05-10 13:06:20 +09:00
Tim Hockin 3aa39d54b6 Service port names are required for multi-port
There is no provision for the first port to be unnamed.  I think I
initially allowed that, but then the Subset struct became a sorted
struct, so the first-ness of the port got lost.  If you have a Service
with one named and one unnamed port, what happens is that the
EndpointController fails to create Endpoints (validation error).
2015-05-09 20:11:48 -07:00
Brendan Burns 7f11585972 Fix validation by moving it into the resource builder.
Also always print an error for unknown field.
2015-05-08 14:00:33 -07:00
Clayton Coleman 8bbb64cd8b Generated conversion functions 2015-05-08 16:04:03 -04:00
Abhi Shah 87e85e25f1 Revert "Added ISCSI to PV structs" 2015-05-08 11:31:35 -07:00
Abhi Shah 9b2a0df811 Merge pull request #7734 from markturansky/iscsi_pv2
Added ISCSI to PV structs
2015-05-08 10:55:41 -07:00
Clayton Coleman e200d5a317 Make PortalIP alloc HA
* Add an allocator which saves state in etcd
* Perform PortalIP allocation check on startup and periodically afterwards

Also expose methods in master for downstream components to handle IP allocation
/ master registration themselves.
2015-05-08 13:34:16 -04:00
markturansky 6cdec4c093 rebased and updated 2015-05-07 20:54:35 -04:00
Abhi Shah 7b1e9adb47 Merge pull request #7620 from brendandburns/fix
Support recovery from in the middle of a rename.
2015-05-07 16:04:26 -07:00
markturansky 4c9eac6c3d Added ISCSI to PV structs 2015-05-07 18:13:03 -04:00
Brendan Burns 63cbc715dd Support recovery from in the middle of a rename. 2015-05-07 10:39:15 -07:00
markturansky dc0b49d960 rebased and updated 2015-05-07 13:33:52 -04:00
markturansky 68ce264a6d Added NFS to PV structs 2015-05-07 12:38:27 -04:00
Wojciech Tyczynski 156795f298 Update conversion functions 2015-05-07 09:27:58 +02:00
Clayton Coleman b60a90c3f4 Merge pull request #7718 from csrwng/create_sub_name
API Server - pass path name in context of create request for subresource
2015-05-06 15:42:03 -04:00
Cesar Wong fd65427e28 API Server - pass path name in context of create request for subresource
Allows a REST storage for a subresource to obtain name in path from
request.
2015-05-06 13:40:18 -04:00
Clayton Coleman 800de8cb7e Merge pull request #7832 from wojtek-t/separate_generated_conversion
Support manually-created and generated conversion functions
2015-05-06 12:53:46 -04:00
Paul Morie 5bcdecbb6b Fix v1beta1 typos in v1beta2 conversions 2015-05-06 11:21:39 -04:00
Wojciech Tyczynski 458fec6c99 Generate conversion functions for v1beta3 2015-05-06 16:43:15 +02:00
Daniel Smith 8a47574644 Merge pull request #7468 from simon3z/serialized-reference
replica: serialize created-by reference
2015-05-05 16:42:42 -07:00
Zach Loafman 875e83a741 Revert "Revert "Security context - types, kubelet, admission"" 2015-05-05 16:02:13 -07:00
Zach Loafman f48904fd5e Revert "Security context - types, kubelet, admission" 2015-05-05 15:20:39 -07:00
Paul Morie 1625e231dd Merge pull request #7343 from pweil-/security-context-types
Security context - types, kubelet, admission
2015-05-05 16:26:09 -04:00
Federico Simoncelli 37038c4877 replica: serialize created-by reference
Fixes #7322

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-05 16:06:41 -04:00
Paul Weil 982bf19c20 security context initial implementation - squash 2015-05-05 13:46:13 -04:00
Cesar Wong 283049f679 Fix pod exec options
Change the command field to an array of strings.
2015-05-05 13:20:08 -04:00
Paul Morie f6f34d0493 Allow int64 types in API; update swagger spec 2015-05-05 12:15:12 -04:00
Paul Morie e949a623ff Change EnvVarSource.FieldPath -> FieldRef and add example 2015-05-04 18:41:09 -04:00
Brian Grant f7a2a02ebb Merge pull request #7443 from vishh/comments
Explicitly state the lack of support for 'Requests' for the purposes of scheduling
2015-05-04 14:33:13 -07:00
Vishnu Kannan 3b5a90852a Explicitly state the lack of support for 'Requests' for the purposes of scheduling. 2015-05-04 13:39:11 -07:00
Clayton Coleman dd8184247e Merge pull request #7629 from caesarxuchao/new-fix-7260-7491
Change the order the different versions of API are registered
2015-05-04 15:01:59 -04:00
Piotr Szczesniak 5845743171 Removed unnecessary closing bracket 2015-05-04 09:42:33 +02:00
Chao Xu 4787c66214 Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
This makes kubectl sends requests to URLs in the format defined by the latest API version.
2015-05-01 15:14:15 -07:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Clayton Coleman 1a8845af61 Merge pull request #7490 from smarterclayton/alter_list
Do not automatically decode runtime.RawExtension
2015-05-01 16:48:26 -04:00
Brian Grant 0a9a10e997 Merge pull request #7535 from smarterclayton/bad_capitalization
Capitalization of KubeProxyVersion wrong in JSON
2015-04-30 12:36:02 -07:00
Piotr Szczesniak 11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Wojciech Tyczynski 3b84bae544 Auto-generated conversion not manually edited 2015-04-30 14:05:42 +02:00
Filip Grzadkowski 231284187e Merge pull request #7431 from wojtek-t/conversion_chains
Prepare for chaining autogenerated conversion methods
2015-04-30 09:08:40 +02:00
Clayton Coleman 1042ab32a5 Capitalization of KubeProxyVersion wrong in JSON 2015-04-29 19:52:51 -04:00
Brian Grant 4071868581 Merge pull request #7482 from nikhiljindal/verifyDescription
Fixing hooks/description to catch API fields without description tags
2015-04-29 09:56:08 -07:00
Clayton Coleman 12ba4e2452 Do not automatically decode runtime.RawExtension
Make clients opt in to decoding objects that are stored
in the generic api.List object by invoking runtime.DecodeList()
with a set of schemes. Makes it easier to handle unknown
schema objects because decoding is in the control of the code.

Add runtime.Unstructured, which is a simple in memory
representation of an external object.
2015-04-29 12:53:07 -04:00
Wojciech Tyczynski fc6fb0953a Generate conversions 2015-04-29 16:32:56 +02:00
Paul Morie 8fa21ebd62 Merge pull request #7419 from liggitt/secrets_etcd
Convert Secret registry to use update/create strategy, allow filtering by Type
2015-04-29 09:59:22 -04:00
nikhiljindal 7c99865c94 Fixing hooks/description to catch API fields without description tags 2015-04-28 18:32:15 -07:00
Brian Grant a4316aa638 Merge pull request #7454 from nikhiljindal/v1
Cloning v1beta3 as v1 and exposing it in the apiserver
2015-04-28 18:06:57 -07:00
Alex Robinson 3c0b799213 Merge pull request #7446 from liggitt/namespace_conversion
Fix typo in namespace conversion
2015-04-28 16:38:10 -07:00
nikhiljindal c4d7e19c8c Cloning v1beta3 as v1 and exposing it in the apiserver 2015-04-28 16:06:03 -07:00
Jordan Liggitt ac67fff1cf Convert Secret registry to use update/create strategy, allow filtering by Type 2015-04-28 15:00:20 -04:00
Jordan Liggitt 0dbc9c2688 Fix typo in namespace conversion 2015-04-28 12:45:13 -04:00
Paul Morie 2ecb883ff4 Fix omitempty attributes on downward api 2015-04-27 20:48:28 -04:00
Paul Morie 8bf0b03c17 Fix downward API descriptions 2015-04-27 17:46:34 -04:00
Daniel Smith 83093af8b0 Merge pull request #5707 from endocode/kbeecher/etcd_prefix
Adds ability to define a prefix for etcd paths
2015-04-27 13:37:43 -07:00
Tim Hockin 635c393a5a Merge pull request #6105 from markturansky/yoko_pv_mgr
PersistentVolumeClaimBinder
2015-04-27 13:35:44 -07:00
markturansky beacd8722a addressed feedback. added opt-in cmd line flag 2015-04-27 15:00:01 -04:00
Paul Morie 7d30f09ebf Add downward API for environment vars 2015-04-27 14:13:11 -04:00
Daniel Smith e0e83fa8fe Merge pull request #7354 from wojtek-t/conversion_improvements
Improvements to generator of conversion methods.
2015-04-27 10:27:51 -07:00
markturansky 2fe8ed5358 fixed prefix name in validation 2015-04-27 12:05:12 -04:00
markturansky a04420e548 Added pending phase for volumes. added defaults for PV/PVC. refactored to better phase transitioning in control loops 2015-04-27 12:05:12 -04:00
markturansky 37d7f3f4f1 Added integration test, fixed a validation issue 2015-04-27 12:05:12 -04:00
markturansky 2cf4e6564b Added more to README, tweaked pod, added service, fixed validation 2015-04-27 12:05:12 -04:00
Maciej Szulik cd183bbb72 Fixed validation message when trying to submit incorrect secret 2015-04-27 15:18:32 +02:00
Wojciech Tyczynski 922555f048 Improvements to generator of conversion methods. 2015-04-27 13:33:38 +02:00
Brian Grant 60d7bad147 Merge pull request #7128 from nikhiljindal/fixbeta1tests
Removing more references to v1beta1 from pkg/
2015-04-24 11:07:53 -07:00
Fabio Yeon 0c54673626 Merge pull request #7180 from ddysher/validate-no-dup-ip
Validate Node IPs; clean up validation code
2015-04-24 09:36:27 -07:00
Clayton Coleman ed00dae7c8 Merge pull request #7107 from wojtek-t/conversion_generator
Code to automatically generate conversion methods
2015-04-24 08:39:11 -04:00
Karl Beecher a7623ca6cc Adds ability to define a prefix for etcd paths
The API server can be supplied (via a command line flag) with a custom
prefix that is prepended to etcd resources paths.

Refs: #3476
2015-04-24 12:12:39 +02:00
nikhiljindal dcc368c781 Removing more references to v1beta1 from pkg/ 2015-04-24 00:45:17 -07:00
Wojciech Tyczynski 7f919a44c2 Generate conversions for v1beta3 package. 2015-04-24 09:18:12 +02:00
Deyuan Deng c73ce1db34 Validate Node IPs; clean up validation code 2015-04-23 21:08:18 -04:00
Tim Hockin 12e4e8f304 Make docs links go through docs.k8s.io 2015-04-23 16:36:27 -07:00
Wojciech Tyczynski c4a27f5c0f Generating conversion methods. 2015-04-23 18:26:24 +02:00
Deyuan Deng 401442b024 Fix condition tags 2015-04-22 16:33:22 -04:00
Clayton Coleman e6e034af4f Rename PodTemplate.Spec to PodTemplate.Template 2015-04-22 12:54:27 -04:00
Clayton Coleman 10c2ace6bf Pod Templates 2015-04-22 12:54:25 -04:00
Brian Grant fc50201f89 Merge pull request #7059 from derekwaynecarr/fixup
Improve container resource requirements validation
2015-04-22 07:13:34 -07:00
Clayton Coleman 250a9889f7 Merge pull request #7093 from derekwaynecarr/ref_update
Fixup event object reference generation to allow downstream objects
2015-04-21 17:55:02 -04:00
Tim Hockin fa648c17cb Merge pull request #7131 from rjnagal/node
Convert error strings to proper validation errors.
2015-04-21 14:15:32 -07:00
Rohit Jnagal bfb4b7280d Convert error strings to validation errors. 2015-04-21 20:35:46 +00:00
Brian Grant 7977949767 Merge pull request #6593 from derekwaynecarr/object_counts
ResourceQuota add object count support for secret and volume claims
2015-04-21 13:16:00 -07:00
derekwaynecarr 3445bd5806 Fixup event object reference generation to allow downstream objects to have an event 2015-04-21 15:31:38 -04:00
Yu-Ju Hong df2cbd4877 Prioritize deleting the non-running pods when reducing replicas
This changes instructs the replication controller to delete replicas in the
order of "unscheduled (pending)", "scheduled (pending)", and "scheduled
(running)" pods. This is less disruptive than deleting random pods.
2015-04-21 10:17:29 -07:00
derekwaynecarr 06eb45fb75 ResourceQuota add object count support for secret and volume claims 2015-04-21 09:49:40 -04:00
Brian Grant 9dcf3e0a33 Merge pull request #7082 from fabioy/api-cs.fix
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 18:10:36 -07:00
Fabio Yeon 81ef0198f4 Fixed "componentstatuses" API object JSON descriptions. 2015-04-20 17:28:13 -07:00
Tim Hockin c320931d6a Easier fuzzing for volumes 2015-04-20 16:29:52 -07:00
derekwaynecarr 5036289b5e Improve container resource requirements validation 2015-04-20 15:08:18 -04:00
Clayton Coleman 545a5a865f List output with differing types should be more resilient
kubectl get can output a series of objects as a List in versioned
form, but not all API objects are available in the same schema.
Make the act of converting a []runtime.Object to api.List more
robust and add a test to verify its behavior in Get.

Makes it easier for client code to output unified objects.
2015-04-20 14:44:16 -04:00
Fabio Yeon c6ef2ddf8a Fix "validate-cluster.sh" to use "kubectl get componentstatus". 2015-04-17 11:59:53 -07:00
Fabio Yeon 951a125751 Add "componentstatus" to API for easier cluster health check. 2015-04-17 11:58:23 -07:00
Clayton Coleman 3bc42f1635 Merge pull request #6573 from kargakis/setup-resource-aliases
Support setting up aliases for groups of resources
2015-04-17 11:16:30 -04:00
kargakis 9d056c6bd8 Support setting up aliases for groups of resources
Closes #5278
2015-04-17 16:31:59 +02:00
Clayton Coleman b3f03b934d Merge pull request #6869 from csrwng/pod_connect
Pod proxy, portforward and exec subresources
2015-04-17 09:49:12 -04:00
Daniel Smith 636d0682d7 Merge pull request #6830 from derekwaynecarr/improve_error_msg
Improve error message when name is omitted but generateName is available
2015-04-16 17:21:43 -07:00
Brian Grant a927c239fe Merge pull request #6881 from nikhiljindal/errHandle
Registering a serviceErrorHandler with go-restful to always return JSON responses
2015-04-16 16:44:17 -07:00
nikhiljindal f9132dc572 Registering serviceErrorHandler with go-restful 2015-04-16 14:59:44 -07:00
Tim Hockin c2bacd588d Stop using dockerfile/* images
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx.  Fix all
users in our tree.  Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
derekwaynecarr 81dcd8c836 Improve error message when name is omitted but generateName is available 2015-04-16 13:06:19 -04:00
Cesar Wong 4da14e9357 Add PodExecOptions and PodProxyOptions versioned resources
PodExecOptions represents the URL parameters used to invoke an
exec request on a pod. PodProxyOptions contains the path parameter
passed to a proxy request.
2015-04-16 10:20:17 -04:00
Cesar Wong 49abf9133e Add Connecter storage interface to API server
Connecter is a type of resource that connects a request
coming from the client to an internal request within the cluster.
It will be used for exposing a pod's proxy, exec, and portforward
endpoints.
2015-04-16 10:20:17 -04:00
Daniel Smith 835a87aed2 Merge pull request #6857 from wojtek-t/fix_scheduler_nodes
Fix listing nodes in scheduler
2015-04-15 17:05:04 -07:00
Eric Tune 3565a0861c Merge pull request #6864 from liggitt/generic_405_error
Add a more descriptive message for 405 errors
2015-04-15 10:59:17 -07:00
Quinton Hoole 7d9adad916 Merge pull request #6724 from nikhiljindal/beta1
Updating test/integration to use testapi.Version everywhere
2015-04-15 10:58:25 -07:00
Brian Grant 775787bb4c Merge pull request #6849 from nikhiljindal/validation
Updating api/validation/schema_test to test testapi.Version rather than just v1beta1
2015-04-15 10:25:54 -07:00
Jordan Liggitt dde8c7156b Add a more descriptive message for 405 errors 2015-04-15 11:28:12 -04:00
Wojciech Tyczynski afb94c43b1 Fix listing nodes in scheduler 2015-04-15 14:26:25 +02:00
nikhiljindal 8874ef9c06 Updating test/integration to use testapi.Version everywhere 2015-04-15 00:00:17 -07:00
nikhiljindal 40842e4471 Updating api/validation/schema_test to test testapi.Version rather than just v1beta1 2015-04-14 23:51:49 -07:00
Quinton Hoole cd6daae014 Merge pull request #6271 from a-robinson/asynclb
Manage load balancer creation and deletion asynchronously in a ServiceController
2015-04-14 17:50:07 -07:00
markturansky d904e747e3 PVClaim volume plugin 2015-04-14 16:21:29 -04:00
Alex Robinson 9a351e3670 Move validation of load balancers only supporting TCP ports to validation.go. 2015-04-14 18:56:51 +00:00
markturansky f599aecc6a Fix spelling typo in comments 2015-04-14 12:46:29 -04:00
Nikhil Jindal 60f0c28fd4 Merge pull request #6725 from smarterclayton/support_subpath_on_getter_with_options
Allow subpath on GET for GetterWithOptions
2015-04-13 11:27:41 -07:00
Clayton Coleman 0225d76b6a Support subpath on GET for GetterWithOptions
Allows REST consumers to build paths like:

    /api/v1beta3/namespaces/foo/webhookresource/<name>/<encodedsecretinurl>

Also fixes parameter exposure for subresources (was only fixed for
v1beta3).
2015-04-11 11:20:13 -04:00
Dawn Chen c19437395b Merge pull request #6702 from ddysher/remove-nodeinfo
Remove nodeinfo endpoint from kubelet
2015-04-10 14:54:16 -07:00
Tim Hockin 4a7b0eecbb Merge pull request #5138 from justinsb/cloud_pd
AWS EBS volume support
2015-04-10 13:47:03 -07:00
Daniel Smith 1a2e4f8e1d Merge pull request #6616 from brendandburns/default
Default replica controller selector and labels using pod template.
2015-04-10 13:33:43 -07:00
Justin Santa Barbara 933cf60af7 Style: volumeId -> volumeID 2015-04-10 13:25:44 -07:00
Justin Santa Barbara 7e758fe441 Grammar fix: s/a AWS/an AWS/g 2015-04-10 13:25:43 -07:00
Justin Santa Barbara c7c969564a Add missing conversion for v1beta2 2015-04-10 13:25:43 -07:00
Justin Santa Barbara 9711e771c5 Rename AWSPersistentDisk -> AWSElasticBlockStore, aws-pd -> aws-ebs
Per comments from @markturansky - thanks!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara b3666ed08c Add AWSPersistentDisk to fuzzer 2015-04-10 13:25:43 -07:00
Justin Santa Barbara 2e91fdd2fd Fixup merge mistakes 2015-04-10 13:25:43 -07:00
Justin Santa Barbara 95b68ae0b0 Rename pdName -> volumeId for AWS persistent volumes 2015-04-10 13:25:43 -07:00
Justin Santa Barbara edf0292d4a Add initial support for Volumes to AWS 2015-04-10 13:25:42 -07:00
Deyuan Deng 868e05ce96 Remove nodeinfo endpoint from kubelet 2015-04-10 15:47:32 -04:00
derekwaynecarr 8364055f0f Improve validation and fix not throwing an error during ns delete 2015-04-10 11:41:28 -04:00
Brendan Burns fded23a777 Default replica controller nodeSelector using pod template.
Add default labels from pod if not present.
2015-04-09 20:50:37 -07:00
Tim Hockin 4661cedf4a Merge pull request #5709 from gmarek/client5
Add validation for Endpoint
2015-04-09 15:13:45 -07:00
Paul Morie cfb15e22d8 Fix serialization for v1beta[12] container Command 2015-04-09 15:17:00 -04:00
Daniel Smith c72dc15e8e Merge pull request #6614 from brendandburns/validate
Add Validate in addition to ValidateUpdate to validation for most resources.
2015-04-09 10:24:57 -07:00
Brendan Burns 5d4f1cf8da Add Validate in addition to ValidateUpdate to validation for most resources. 2015-04-08 20:15:49 -07:00
nikhiljindal 08d9e244f7 Removing some references to v1beta1 from test code 2015-04-08 17:28:06 -07:00
gmarek c20efb6bae Add validation for Endpoints 2015-04-08 20:12:07 +02:00
Piotr Szczesniak 007e6d9ff9 Removed TODO comment from ContainerStatuses in PodInfo
Fixes #6551
2015-04-08 14:39:41 +02:00
gmarek 72182735b9 Remove Node Controllers ability to pull status from Kubelet 2015-04-08 09:44:42 +02:00
Vishnu Kannan f4f08c3378 Fix duplicate fuzz config. 2015-04-07 23:29:24 +00:00
Vish Kannan c1ef9be261 Merge pull request #6174 from rootfs/wip-gluster
implement glusterfs volume plugin
2015-04-07 09:21:33 -07:00
Brian Grant 530fe89726 Merge pull request #6411 from gmarek/schedulable
Remove Schedulable Condition. Only Unschedulable bit from Spec will be used.
2015-04-07 08:38:30 -07:00
gmarek ef56dca6b6 Remove ConditionSchedulable 2015-04-07 17:01:07 +02:00
Huamin Chen a278ceeb0a implement glusterfs volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-04-07 09:14:39 -04:00
Cesar Wong efc7f86baf Add GetterWithOptions and allow stream flushing
In addition to Getter interface, API Installer now supports a
GetterWithOptions interface that takes an additional options object when
getting a resource. A flag is now returned from rest.ResourceStreamer
that indicates whether the streamed response should be
flushed when written back to the client. This is to support log
streaming.
2015-04-07 07:46:30 -04:00
Cesar Wong 6dba6aa178 Add PodLogOptions versioned resource
PodLogOptions will capture options passed in to retrieve a pod's log.
2015-04-07 07:46:30 -04:00
Huamin Chen 7a82af31de add iscsi volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-04-06 16:20:28 -04:00
markturansky a5ebacb043 changed claimed validation from length check to specific storage check 2015-04-06 08:46:44 -04:00
markturansky c4a53a23bd Added validation to prevent mutating Claim.Spec after binding 2015-04-06 08:46:44 -04:00
markturansky 95bd170ca2 PV & PVC Client implementation 2015-04-06 08:46:43 -04:00
Yu-Ju Hong dbd7b186a0 Merge pull request #6338 from smarterclayton/improve_config_error
Return a typed error for config validation, and make errors simple
2015-04-03 18:08:15 -07:00
Brian Grant b0b6418ca3 Merge pull request #6377 from nikhiljindal/kubevtl
Updating components to use v1beta3
2015-04-03 15:58:09 -07:00
nikhiljindal f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Brian Grant 0d95883593 Merge pull request #6027 from ghodss/kube-patch
Implement Strategic Merge Patch in apiserver
2015-04-03 15:08:51 -07:00
Daniel Smith 34b399ca02 Fix incorrect reference to name in v1beta3 API. 2015-04-03 14:10:47 -07:00
Sam Ghods 2c977db1b3 Implement Strategic Merge Patch in apiserver 2015-04-03 11:51:02 -07:00
Prashanth Balasubramanian 5903f6ff39 Register field conversion function under the right type name 2015-04-02 18:37:28 -07:00
Prashanth B 620af16892 Merge pull request #6097 from derekwaynecarr/limit_range_default_value
Limit range supporting a default resource limits value
2015-04-02 16:04:09 -07:00
Brian Grant 414be101b6 Merge pull request #6352 from piosz/api
Removed PodStatus.Host
2015-04-02 13:16:24 -07:00
Wojciech Tyczynski 6b08958264 Kubelet watching only its own Node 2015-04-02 18:39:59 +02:00
Piotr Szczesniak 5c6439d449 Removed PodStatus.Host
Fixes #6165
2015-04-02 16:38:45 +02:00
Clayton Coleman 323a44e54a Make kubectl errors even more user-friendly
Omit glog prefix when v < 2, show multiline errors for configuration
problems, add new generic messages for server errors that hide some
complexity that is not relevant for users.
2015-04-02 01:40:15 -04:00
Clayton Coleman 1233843a1d Add a new generic error that can indicate a server response was underspecified
Allows clients to distinguish between a server that returns us an error we
recognize, and errors that are generic HTTP (due to an intervening proxy)
2015-04-02 01:39:57 -04:00
Brian Grant 0e67b299d5 Merge pull request #6325 from rjnagal/node
Remove validation for Capacity. Add default for ExternalID
2015-04-01 18:25:32 -07:00
Rohit Jnagal e0ff139279 Remove validation for Capacity as it got moved from Spec to Status.
Also fix breakage from ExternalID validation: Default ExternalID to node name when not specified.
2015-04-02 00:51:52 +00:00
Victor Marmol 8cd8a8f098 Merge pull request #6310 from dchen1107/clean
Small cleanup on api/types.go
2015-04-01 17:37:00 -07:00
Clayton Coleman dec3209229 Merge pull request #6246 from derekwaynecarr/finalize_fix
Fix Namespace Termination
2015-04-01 17:34:56 -04:00
Dawn Chen 96b0f0a170 Small cleanup on api/types.go 2015-04-01 14:04:17 -07:00
derekwaynecarr c2b670513c Introduce concept of a default limit 2015-04-01 16:31:25 -04:00
Deyuan Deng 6bb9701489 Remove Reachable Condition 2015-04-01 13:56:43 -04:00
derekwaynecarr b745f51c65 Client must specifiy a resource version on finalize 2015-04-01 11:16:45 -04:00
Victor Marmol 2de37624e8 Merge pull request #6252 from krousey/string_format_cleanup
Fixing a lot of string formatting issues
2015-03-31 16:57:36 -07:00
Kris Rousey 6904c4d585 Fixing a lot of string formatting issues with regards to:
* Improper format specifier (e.g. %s for bools or %s for ints)
  * More or less parameters than format specifiers
  * Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
2015-03-31 16:47:10 -07:00
Victor Marmol a78a009877 Merge pull request #6249 from TamerTas/typo
Fix typo in Secrets
2015-03-31 15:14:55 -07:00
Tamer Tas 6c10cf7b98 Fix typo in Secrets 2015-04-01 00:56:20 +03:00
Tim Hockin 70b9e56952 Fix a back-compat bug in multi-port services
Yu-Ju changed something just before this went in that exposed this bug.
we did not re-run Travis on my PR.  Bad us.
2015-03-31 14:29:22 -07:00
Brian Grant 3354cffbf0 Merge pull request #6182 from thockin/plural_services_20
Implement multi-port Services
2015-03-31 12:55:21 -07:00
Tim Hockin 0a8e2e0b1b Merge pull request #6235 from yujuhong/defaults_tests
defaults_tests: verify defaults when converting to an API object
2015-03-31 12:13:23 -07:00
Yu-Ju Hong 7b0e45a5f5 defaults_tests: verify defaults when converting to an API object
This change verifies that defaults are applied after decoding an versioned
object into an API object.
2015-03-31 11:56:34 -07:00
Tim Hockin e19f4939b1 fix tests broken by stronger validation 2015-03-31 11:13:44 -07:00
Paul Morie 7628b37d78 Add control over container entrypoint 2015-03-31 12:32:03 -04:00
Tim Hockin b420871a11 fixes from testing 2015-03-31 09:30:56 -07:00
Tim Hockin eeff1b74fb Fixes from feedback and testing 2015-03-30 23:52:37 -07:00
Tim Hockin 186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
Clayton Coleman 1dc895ee49 Merge pull request #6163 from ncdc/add-ctx-to-rest-prepare
Pass ctx to Validate, ValidateUpdate
2015-03-30 18:13:30 -04:00
Andy Goldstein d7c5f427cb Pass ctx to Validate, ValidateUpdate
Pass ctx to Validate/ValidateUpdate. This is useful so strategies can
access data such as the current user.
2015-03-30 17:33:08 -04:00
Eric Tune 8bf104503c Fix nil pointer when validating in kubectl. 2015-03-27 15:49:51 -07:00
Brian Grant f0da47b2dd Merge pull request #5763 from smarterclayton/get_input_parameters_versioned
Expose versioned query parameters and make watch an operation on List
2015-03-27 14:35:23 -07:00
Brian Grant c9ad322ba9 Merge pull request #5831 from smarterclayton/add_more_errors
Add more specific error handling and handle generic errors more effectively
2015-03-27 14:17:11 -07:00
Brian Grant a765236653 Merge pull request #5939 from thockin/plural_endpoints_31_endpt_subsets
Implement multi-port endpoints
2015-03-27 14:15:15 -07:00
Clayton Coleman aa44d29d10 Updated documentation and adjusted field names 2015-03-27 17:08:59 -04:00
Tim Hockin 8ae203825b Implement multi-port endpoints
Instead of endpoints being a flat list, it is now a list of "subsets"
where each is a struct of {Addresses, Ports}.  To generate the list of
endpoints you need to take union of the Cartesian products of the
subsets.  This is compact in the vast majority of cases, yet still
represents named ports and corner cases (e.g. each pod has a different
port number).

This also stores subsets in a deterministic order (sorted by hash) to
avoid spurious updates and comparison problems.

This is a fully compatible change - old objects and clients will
keepworking as long as they don't need the new functionality.

This is the prep for multi-port Services, which will add API to produce
endpoints in this new structure.
2015-03-27 12:36:32 -07:00
Clayton Coleman eb0eff69fe Move watch to being a resthandler resource and expose it on LIST
GET /pods?watch=true&resourceVersion=10

will now function equivalent to GET /watch/pods.
2015-03-27 15:03:58 -04:00
Clayton Coleman 1618c39a46 Convert List query parameters via object conversion
Convert url.Values -> an object, with appropriate versioning. ListOptions
should also expose parameter names to swagger.
2015-03-27 15:03:57 -04:00
Dawn Chen 87db1c9007 Rename DockerVerstion to ContainerRuntimeVersion for rocket support 2015-03-27 11:04:48 -07:00
Dawn Chen 086bb1ac09 Add node components version to API 2015-03-27 11:04:47 -07:00
Brian Grant a4bf91c8c0 Merge pull request #5690 from satnam6502/failputnover
Give better error message for PUTs with no resource version
2015-03-27 07:12:56 -07:00
Piotr Szczesniak 768c733bed Merge pull request #5971 from bprashanth/rc_watch_fields
Add the ability to watch fields of a replication controller
2015-03-27 10:19:41 +01:00
Vish Kannan f2c7dda6da Merge pull request #6026 from dchen1107/clean
kubectl describe nodes id reports related events
2015-03-26 17:39:21 -07:00
Dawn Chen f662d7d11c Kubelet reports node related events with empty namespace for now. 2015-03-26 16:30:23 -07:00
Clayton Coleman 30358e8b04 Add more specific error handling and handle generic errors more effectively
The client library should type more generic errors from the server.
2015-03-26 17:30:13 -04:00
Tim Hockin 0f36c68244 Add REST PrepareForUpdate() hook
As per discussion with @snmarterclayton.  I implemented this for most
types in the "obvious" way.  I am not sure how to implement
this for a couple types, though.
2015-03-26 13:48:41 -07:00
Tim Hockin b2687c1a84 rename ResetBeforeCreate to PrepareForCreate 2015-03-26 13:48:34 -07:00
Brian Grant 3b0db99692 Merge pull request #5915 from piosz/api
Changed PodInfo to be a list
2015-03-26 12:46:50 -07:00
Piotr Szczesniak 78871ca508 changed json names 2015-03-26 20:11:48 +01:00
Prashanth Balasubramanian b0068d05f8 Add the ability to watch fields of an rc 2015-03-26 11:01:56 -07:00
Dawn Chen 8ac0cf39b1 Merge pull request #5989 from gmarek/capacity_to_status
Move Capacity from NodeSpec to NodeStatus
2015-03-26 10:11:23 -07:00
Tamer Tas d5a66845b9 Minor typo 2015-03-26 16:46:51 +02:00
gmarek 5a11748018 Move Capacity from NodeSpec to NodeStatus 2015-03-26 15:28:48 +01:00
Piotr Szczesniak 31901ed9d0 Changed PodInfo to be a list
This change is to make API consistent with our convention.

Fixes #3622
2015-03-26 10:15:25 +01:00
Satnam Singh cd05c8b9bc Give better error message for PUTs with no resource version 2015-03-25 15:52:48 -07:00
Rohit Jnagal 49ff04765b Add validation for node creation. 2015-03-25 21:55:03 +00:00
Federico Simoncelli afbf401464 nodeinfo: add boot id system information
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-25 15:06:53 -04:00
Masahiro Sano c49af0b7cb port minion registry to generic etcd 2015-03-26 02:44:35 +09:00
Clayton Coleman 367284b63b Merge pull request #5767 from kazegusuri/endpoints_storage
port endpoints to generic etcd
2015-03-25 11:32:01 -04:00
markturansky f762b303ad PersistentVolume & PersistentVolumeClaim API types 2015-03-25 10:09:25 -04:00
Wojciech Tyczynski c8e89bc717 Merge pull request #5853 from fgrzadkowski/better_errors
Improve error message for invalid pod spec update
2015-03-25 14:31:13 +01:00
Masahiro Sano 410e11c305 port endpoints to generic etcd 2015-03-25 22:15:19 +09:00
Filip Grzadkowski 7085a0cb44 Merge pull request #5508 from fgrzadkowski/validate_ips
Validate Service.Spec.publicIPs to be a valid IP that is not a localhost
2015-03-25 12:11:29 +01:00
Derek Carr cfb6f1199b Merge pull request #5851 from smarterclayton/support_input_streams
Support input streams being returned by the APIserver
2015-03-24 22:41:24 -04:00
Brian Grant d75291dbe7 Merge pull request #5838 from nikhiljindal/clientTests
Updating unit tests so that they pass with v1beta3 api
2015-03-24 17:30:50 -07:00
Abhi Shah f1872d36cf Merge pull request #5814 from vmarmol/net-host
Add HostNetworking container option to API.
2015-03-24 15:55:27 -07:00
David Oppenheimer 30c3583900 Merge pull request #5806 from ddysher/condition-rename
Rename ConditionFull->ConditionTrue, ConditionNone->ConditionFalse
2015-03-24 15:50:11 -07:00
Tim Hockin e1a66ad015 Merge pull request #5398 from markturansky/volume_access_modes
Add GetAccessModes to volume plugin interface
2015-03-24 15:16:01 -07:00
Victor Marmol 2a0793c155 Add HostNetworking container option to API.
This allows a container to run within the same networking namespace as
the host. This will be locked down by default using a flag on the master
and nodes (similar to how privileged is handled today).
2015-03-24 14:40:28 -07:00
Deyuan Deng ca68f4a9d1 Rename ConditionFull->ConditionTrue, ConditionNone->ConditionFalse 2015-03-24 17:28:59 -04:00
Clayton Coleman 319f5b280a Not all Kinds should be registered to RESTMapper 2015-03-24 17:25:45 -04:00
Clayton Coleman fc3609fb5b Allow InputStreams to be returned by requests
Add additional metadata to restful services.
2015-03-24 17:25:45 -04:00
Tim Hockin 064b7dec42 Merge pull request #5807 from pmorie/secret_volume_ref
Change secret volume plugin reference to name
2015-03-24 14:18:35 -07:00
markturansky 5fa07f57b6 Removed PersistentVolumeSource and FindPersistentPluginBySpec func 2015-03-24 16:26:33 -04:00
markturansky 111f3d5120 Add GetAccessModes to volume plugin interface 2015-03-24 16:02:39 -04:00
nikhiljindal 7e3b7f9673 Updating unit tests so that they pass with v1beta3 api 2015-03-24 12:13:53 -07:00
Paul Morie e40ba109a1 Change SecretVolumeSource to use a secret name instead of ObjRef 2015-03-24 13:58:41 -04:00
Clayton Coleman aee9bdd69a Merge pull request #5805 from liggitt/node_proxy
Improve ResourceLocation API, allow proxy to use authenticated transport
2015-03-24 13:01:54 -04:00
Clayton Coleman 97560c409f Merge pull request #5554 from derekwaynecarr/namespace_controller
Namespace Controller to support Namespace Termination
2015-03-24 12:59:00 -04:00
Filip Grzadkowski b74b203da2 Improve error message for invalid pod spec update 2015-03-24 17:11:16 +01:00
Clayton Coleman 0902ffd70e Merge pull request #5746 from bprashanth/rc_genericetcd_interface
Migrate replication controllers to generic etcd
2015-03-24 11:45:59 -04:00
Jordan Liggitt a75b501821 Improve ResourceLocation API, allow proxy to use authenticated transport 2015-03-24 11:11:34 -04:00
Saad Ali 2a88c77522 Merge pull request #5809 from dchen1107/podstatus
Introduced LastTerminateState to ContainerStatus
2015-03-24 07:42:24 -07:00
derekwaynecarr 29c491ef2e Namespace.Spec.Finalizer support 2015-03-24 10:36:06 -04:00
Filip Grzadkowski 6bc1e2ef40 Add validation error explanation for long annotations. 2015-03-24 11:01:26 +01:00
Filip Grzadkowski 24eb1a08f3 Validate Service.Spec.publicIPs to be a valid IP that is not a localhost 2015-03-24 10:48:46 +01:00
Prashanth Balasubramanian ef6601646d Migrate replication controllers to generic etcd 2015-03-23 17:59:25 -07:00
Robert Bailey 5c40bd61e4 Merge pull request #5794 from thockin/gcepd_name
Rename the JSON for GCEPersistentDisk, fix examples
2015-03-23 17:12:32 -07:00
Dawn Chen fdfec4db2d Introduced LastTerminateState 2015-03-23 13:54:46 -07:00
Tim Hockin 7ce59d9bc7 Rename the JSON for GCEPersistentDisk in internal
I know the internal JSO tags are slated for death.  Until then, make them
correct.  Also fix some examples of v1b3 conversions that did not rename the
JSON field.
2015-03-23 13:54:00 -07:00
Clayton Coleman d46087db50 Move REST* interfaces into pkg/api/rest
Dependency chain is now api -> api/rest -> apiserver.  Makes the
interfaces much cleaner to read, and cleans up some inconsistenties
that crept in along the way.
2015-03-23 16:52:21 -04:00