Daniel Smith
6835318d1e
switch to require 'go controller.Run()'
2015-04-10 14:05:08 -07:00
Daniel Smith
5f7715f0e9
Make scheduler not miss deletion events even in the case of a resync.
2015-04-10 14:05:08 -07:00
Daniel Smith
880f922bb6
Add easy setup for simple controller
...
Also add tests; coverage up to 86.7%
2015-04-10 14:05:07 -07:00
Tim Hockin
b67bb85a2d
Merge pull request #6435 from lavalamp/fix4
...
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:53:45 -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
Daniel Smith
f591873af7
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:26:46 -07:00
Justin Santa Barbara
7626914344
Rename aws_pd.go -> aws_ebs.go, aws_pd_test.go -> aws_ebs_test.go
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
9462471bcd
Fix some mistaken volumeId -> volumeID changes
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
503e19e58c
Rename aws_pd -> aws_ebs
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
933cf60af7
Style: volumeId -> volumeID
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
98c9ebbc50
Style: Aws -> AWS
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
2afc1840b6
Style: awsId -> awsID
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
46f9c2cc3c
Style: Ebs -> EBS
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
5a887e83e7
Remove now-unused instanceId parameter from newAwsCloud
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
4e176771b6
Make fetching the aws instance id optional, so we can use it on e2e
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
a20484b5ed
Apply latest changes from copy-and-pasted gce_pd
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
aa6051026e
Add comment about EBS status being a bit slow through API
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
0101bf2081
Fix detached-check logic, warn on multiple attachments
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
3689bf0298
Fix pd name parse
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
21beabd0a7
Default attachment status to detached
...
So no-attachments = status detached
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
cdc569a6c8
Parse the pdName from the volume mount
...
Don't assume there are no slashes!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
f0cedd7375
More logging around error causes
...
Come back exceptions, all is forgiven!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
3549b30c8e
Add missing import
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6c823dbdab
Small clean-ups
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
f2184e0860
Fix comment
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
ee72fa4d61
Tolerate volume being already-attached
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
86ddc0f96a
Fix mountpoint values
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
e56e2ee46a
Strip leading slash from url path when parsing aws volume
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
743f2edb56
Fix tests
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
89089900d7
Fix merge problems
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
2812936d34
Simplify logic of pd.go
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6a4153fc0a
Always create volumes in the active k8s zone
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
ffadd5533a
Fix AWS region vs zone
...
We were specifying a region, but naming it as a zone in util.sh
The zone matters just as much as the region, e.g. for EBS volumes.
We also change the config to require a Zone, not a Region.
But we fallback to get the information from the metadata service.
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
8fde691aa7
Fix tests
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
edf0292d4a
Add initial support for Volumes to AWS
2015-04-10 13:25:42 -07:00
Daniel Smith
2bd95d4290
Merge pull request #6150 from HaiyangDING/bru
...
Implement Balanced Resource Allocation (BRA) algorithm as a PriorityFunction in scheduler package.
2015-04-10 12:48:27 -07:00
Daniel Smith
8dfd7001f5
Merge pull request #6671 from smarterclayton/ensure_body_is_closed
...
Reorganized Request.DoRaw() to guarantee streams are closed
2015-04-10 11:46:42 -07:00
Daniel Smith
c6abb5b047
Merge pull request #6686 from derekwaynecarr/terminate_must_have_deletion_timestamp
...
Improve validation and fix not throwing an error during ns delete
2015-04-10 10:56:09 -07:00
Tim Hockin
e4602eb68e
Merge pull request #6663 from justinsb/cleanup_service_ip
...
Use defer to cleanup allocated service ip in case of error
2015-04-10 10:43:56 -07:00
Daniel Smith
e2093798cb
Merge pull request #6675 from wojtek-t/nodes_support_field_selector
...
FieldSelector for node List()
2015-04-10 10:30:55 -07:00
Dawn Chen
c7ca118c7a
Merge pull request #6682 from thockin/spew-keys-in-hash
...
Make DeepHashObject use SpewKeys
2015-04-10 09:58:47 -07:00
Justin Santa Barbara
e551e0cb8c
Use defer to cleanup allocated service ip in case of error
...
We're probably going to be doing a port allocation here also, so this needs some pre-simplifying.
2015-04-10 09:47:47 -07:00
Tim Hockin
c989f30a00
make DeepHashObject use SpewKeys
2015-04-10 09:38:12 -07:00