Eric Tune
4e0a72734e
Handle and log errors when reading .dockercfg
2014-10-09 13:22:14 -07:00
Dawn Chen
e91f9087e9
Merge pull request #1682 from hmrm/add-mutual-ssl-support
...
Add ssl flags to default client flags
2014-10-09 11:59:23 -07:00
Brendan Burns
b5ec8a747b
Switch on the resource requested prioritization.
2014-10-09 11:29:45 -07:00
Haney Maxwell
e0a80dda30
Add ssl flags to default client flags
...
This adds support for mutual ssl between the proxy, controller-manager,
scheduler, and the apiserver
2014-10-09 10:57:15 -07:00
Dawn Chen
b3292e947f
Merge pull request #1674 from ddysher/minion-api
...
Change ContainsMinion to GetMinion
2014-10-09 10:46:38 -07:00
Dawn Chen
ed4167a938
Merge pull request #1670 from proppy/fix-kubelet-runonce
...
kubelet: only check for container listed in the manifest
2014-10-09 09:31:12 -07:00
erictune
aa30423dc9
Merge pull request #1337 from brendandburns/Sarsate-pd-support
...
Taking over PD support from sarsate
2014-10-09 09:16:04 -07:00
Johan Euphrosine
0fc5e68207
runonce: isPodRunning returns no error
2014-10-08 22:34:40 -07:00
Johan Euphrosine
8f010c3ec0
dockertools: add todo for container lookup
2014-10-08 22:31:59 -07:00
Johan Euphrosine
dbb2342688
runonce: list kubelet container between each iteration
2014-10-08 22:28:41 -07:00
Deyuan Deng
15e5b876b8
Change ContainsMinion to GetMinion
2014-10-08 23:41:15 -04:00
Brendan Burns
7fe71c68b7
Update the ux.
2014-10-08 20:16:59 -07:00
Danny Jones
4ec25f3b81
Adds support for attaching GCEPersitentDisks
...
Adds GCEPersistentDisk volume struct
Adds gce-utils to attach disk to kubelet's VM.
Updates config to give compute-rw to every minion.
Adds GCEPersistentDisk to API
Adds ability to mount attached disks
Generalizes PD and adds tests.
PD now uses an pluggable API interface.
Unit Tests more cleanly separates TearDown and SetUp
Modify boilerplate hook to omit build tags
Adds Mounter interface; mount is now built by OS
TearDown() for PD now detaches disk on final refcount
Un-generalized PD; GCE calls moved to cloudprovider
Address comments.
2014-10-08 20:03:59 -07:00
Johan Euphrosine
14c5fd405d
kubelet: only check for container listed in the manifest
...
also wait 1 retryDelay before polling state after syncing.
2014-10-08 17:49:21 -07:00
Daniel Smith
1a1b0699bc
Merge pull request #1604 from brendandburns/resource
...
Add a least-requested priority function
2014-10-08 17:26:57 -07:00
Daniel Smith
1fc92bef53
Load cadvisor connection in background.
2014-10-08 17:06:41 -07:00
Daniel Smith
5d24820dd5
Merge pull request #1464 from hmrm/add-etcd-config
...
Allow etcd config file to be passed to apiserver, kubelet, and proxy
2014-10-08 16:29:46 -07:00
Brendan Burns
4230a8ca61
Add a least-requested priority function
2014-10-08 15:31:38 -07:00
Daniel Smith
af5714da12
Fix v1beta2 types having been copied incorrectly.
2014-10-08 14:15:50 -07:00
Daniel Smith
e1cb72f1ae
Merge pull request #1643 from smarterclayton/make_resource_version_a_string
...
Make ResourceVersion internally a string instead of uint64
2014-10-08 14:00:37 -07:00
Clayton Coleman
094bc3796a
Update ObjectReference to use ResourceVersion string everywhere
...
Breaks backwards compat for anyone using older versions
2014-10-08 15:57:38 -04:00
Daniel Smith
9ffe821bfd
Merge pull request #1657 from brendandburns/nginx
...
Add a css file I forgot.
2014-10-08 12:34:33 -07:00
Brendan Burns
06a4593f25
Add a css file I forgot.
2014-10-08 12:28:31 -07:00
deads2k
e348b939bf
make api match intent with less specific type
2014-10-08 10:01:55 -04:00
Tim Hockin
45f9f39b51
Merge pull request #1597 from thockin/iptables
...
Add a pkg for iptables support
2014-10-07 17:31:34 -07:00
Tim Hockin
2f2ef05fa8
Merge pull request #1646 from dchen1107/termination
...
Fix an issue on GetContainerInfo.
2014-10-07 17:27:56 -07:00
Dawn Chen
300c2c5f6f
Fix an issue on GetContainerInfo.
...
I believe the issue was first introduced when we append namespace to docker
container's name. This is a temporary fix for #160 .
2014-10-07 17:21:24 -07:00
Clayton Coleman
a5462c0678
Change test cases to verify the client sends the received resourceVersion
2014-10-07 19:00:26 -04:00
Clayton Coleman
82bcdd3b3b
Make ResourceVersion a string internally instead of uint64
...
Allows us to define different watch versioning regimes in the future
as well as to encode information with the resource version.
This changes /watch/resources?resourceVersion=3 to start the watch at
4 instead of 3, which means clients can read a resource version and
then send it back to the server. Clients should no longer do math on
resource versions.
2014-10-07 19:00:26 -04:00
Deyuan Deng
9047baa111
Add codec to restlient test.
2014-10-07 18:26:26 -04:00
Haney Maxwell
4d87159eda
Allow etcd config file to be passed to apiserver, kubelet, and proxy
2014-10-07 14:25:54 -07:00
Tim Hockin
48a9ed3147
Merge pull request #1637 from lavalamp/fix
...
Fix 'go vet' issues
2014-10-07 14:25:41 -07:00
Daniel Smith
ee107d3fad
fix extra un-cosmetic extraneous code.
2014-10-07 14:08:18 -07:00
Daniel Smith
4dd3094035
Fix mismatched arg and formatter in Errorf
2014-10-07 14:03:06 -07:00
Daniel Smith
9c0fafee39
Merge pull request #1636 from dchen1107/termination
...
Add the missing arg in Errorf.
2014-10-07 14:01:55 -07:00
Daniel Smith
2dde76bd03
Fix struct tag in apparently untested config struct
2014-10-07 14:01:45 -07:00
Daniel Smith
2d048bc0f2
fix captured loop variable
2014-10-07 13:57:30 -07:00
Daniel Smith
7ffe791486
fix error message in validation test
2014-10-07 13:54:41 -07:00
Dawn Chen
73c8f41737
Add the missing arg in Errorf.
2014-10-07 13:53:25 -07:00
Daniel Smith
3a62089790
Fix malformed namespace json tag
2014-10-07 13:52:51 -07:00
Daniel Smith
386caae675
Merge pull request #1478 from ddysher/minion-etcd
...
Use etcd as backend for minion registry.
2014-10-07 13:36:09 -07:00
Brendan Burns
5bdb061f14
Fix the exec test, on os x false and true have different paths, but they're in $PATH on all.
2014-10-07 13:26:25 -07:00
Deyuan Deng
4de810efb4
Rebase to master, change JSONBase to TypeMeta.
2014-10-07 16:22:36 -04:00
Deyuan Deng
c3d9197a4b
Rename InsertMinion to CreateMinion.
2014-10-07 16:22:35 -04:00
Deyuan Deng
4a35325f29
Use etcd as backend for minion registry.
2014-10-07 16:22:35 -04:00
Tim Hockin
4bbe6a10ff
Add a pkg for iptables support
...
This makes iptables an injectable dependency. The test for this started off
simple, but got a bit out of hand. It's starting to become a mocking
framework.
2014-10-07 11:36:46 -07:00
Daniel Smith
3cc2aa8f76
Merge pull request #1622 from smarterclayton/types_fixup
...
Add new metadata to internal/v1beta(1|2) for v1beta3
2014-10-07 11:35:23 -07:00
Daniel Smith
051d50e98d
Merge pull request #1592 from thockin/utilexec
...
Add a util/exec interface for testing execs.
2014-10-07 11:26:27 -07:00
erictune
5503e95c1d
Merge pull request #1529 from smarterclayton/add_auth_interfaces
...
Add simple Bearer authenticator filter for Kube
2014-10-07 11:23:41 -07:00
Clayton Coleman
338ee1e458
Add additional debugging output on mistyped conversion
2014-10-07 14:09:01 -04:00
Clayton Coleman
0a4d4b43f6
Move IsAnAPIObject() declarations to register.go
...
* Add Namespace, UID, Annotations to internal/v1beta1/v1beta2
* Update v1beta3 with minor consistency tweaks
2014-10-07 14:09:01 -04:00
Clayton Coleman
897c59a713
Merge pull request #1598 from brendandburns/nginx
...
Add UX documentation, link into the apiserver, add a missing file.
2014-10-07 14:06:20 -04:00
Daniel Smith
0212c9b29a
Merge pull request #1623 from smarterclayton/rename_jsonbase
...
Rename JSONBase -> TypeMeta in preparation for v1beta3
2014-10-07 10:50:28 -07:00
Clayton Coleman
c8ef4b8230
Add simple Bearer authenticator filter for Kube
...
* Default file based implementation
* Define some simple interfaces
* Add -token_auth_file to apiserver that will start the apiserver
with a request filter for tokens
2014-10-07 13:25:12 -04:00
Daniel Smith
11c2b1ea93
Merge pull request #1621 from smarterclayton/move_helpers
...
Move Policy test helpers into their own file
2014-10-07 09:58:31 -07:00
Brendan Burns
414473607a
Update the UX, add documentation.
2014-10-07 09:49:49 -07:00
Joe Beda
c7e88427dc
Merge pull request #1619 from VojtechVitek/typo
...
Fix typo
2014-10-07 09:04:04 -07:00
Clayton Coleman
d3e51a0f24
Rename JSONBase -> TypeMeta in preparation for v1beta3
...
Will make subsequent refactor much easier
2014-10-07 11:12:16 -04:00
Clayton Coleman
363d6554ae
Move Policy test helpers into their own file
...
Since types.go should always be equal to latest API types.go, this
makes future cut and paste refactors easier.
2014-10-07 10:24:40 -04:00
Vojtech Vitek (V-Teq)
0ffb1d7fec
Fix typo
2014-10-07 14:14:00 +02:00
Brendan Burns
e294cef9d4
Merge pull request #1611 from thockin/netipnet
...
Add a flag-compatible wrapper for net.IPNet
2014-10-06 21:34:45 -07:00
Brendan Burns
b2dd4acc43
Merge pull request #1616 from brendandburns/kubelet
...
Fix a problem with for loops, copy semantics and async routines.
2014-10-06 21:26:49 -07:00
Brendan Burns
7ecd8d7207
Fix a problem with for loops, copy semantics and async routines.
2014-10-06 21:20:00 -07:00
bgrant0607
3e2ace5f54
Merge pull request #951 from meirf/selector-string-form
...
extend selector with EXISTS, new tests/some old tests use table-driven style
2014-10-06 21:15:46 -07:00
Tim Hockin
0d74fe74cd
Add a flag-compatible wrapper for net.IPNet
2014-10-06 18:28:49 -07:00
Meir Fischer
89a9e5e672
extend selector with EXISTS, new tests/some old tests use table-driven style; add Has to Labels interface; enforce Requirement restrictions in constructor
2014-10-06 21:10:11 -04:00
Deyuan Deng
1454d5d174
Improve replication controller errro handling.
2014-10-06 21:02:51 -04:00
Daniel Smith
6449b30ca4
Merge pull request #1593 from thockin/utilerrlist
...
Move ErrorList to util
2014-10-06 16:59:34 -07:00
Brendan Burns
fca26ccc65
Merge pull request #1569 from dchen1107/termination
...
Initial support to propagating the termination reasons and image failures
2014-10-06 16:56:23 -07:00
Brendan Burns
130784bfdf
Merge pull request #1594 from thockin/ipallocator
...
Add an IPAllocator type
2014-10-06 16:56:00 -07:00
Tim Hockin
20a1829dad
Add a util/exec interface for testing execs.
2014-10-06 16:52:25 -07:00
Daniel Smith
e26bdd0721
Merge pull request #1591 from smarterclayton/simple_test
...
Add a Log method on Scheme for better debugging
2014-10-06 15:39:51 -07:00
Dawn Chen
4fdfeaa30e
Addressed comments.
2014-10-06 14:41:20 -07:00
Dawn Chen
a86d496f9a
Fix e2e tests.
2014-10-06 13:37:24 -07:00
Dawn Chen
39f648bda2
Fix rebase issues.
2014-10-06 13:37:23 -07:00
Dawn Chen
8d0ed93aa1
Clean unittests
2014-10-06 13:37:22 -07:00
Dawn Chen
9861eb7c8e
Initial support of propogating the termination reasons and image failure
...
to apiserver. Deprecated docker.Container from API completely.
Conflicts:
pkg/api/types.go
pkg/kubelet/kubelet.go
2014-10-06 13:37:22 -07:00
Brendan Burns
ab6065944c
Merge pull request #1584 from thockin/net
...
Flag-compatible IP type
2014-10-06 13:35:48 -07:00
Brendan Burns
7c694d2cad
Merge pull request #1596 from thockin/unbound
...
Better handling of unbound pods.
2014-10-06 13:31:41 -07:00
Daniel Smith
cc086908aa
Merge pull request #1578 from brendandburns/controller
...
Extract the service controller from the apiserver.
2014-10-06 12:44:41 -07:00
Tim Hockin
372aa07b58
Better handling of unbound pods.
...
A small collection of tweaks to better handle pods when they are not currently
bound to a host.
2014-10-06 12:27:18 -07:00
Tim Hockin
7e83211840
Move ErrorList to util
2014-10-06 12:12:35 -07:00
Tim Hockin
0ad0a247c4
Flag-compatible IP type
2014-10-06 11:29:22 -07:00
Daniel Smith
98f9a4b05b
Merge pull request #1590 from ddysher/fix-registry
...
Fix bug in minion registrytest.
2014-10-06 10:02:10 -07:00
Tim Hockin
8131a5ca6a
Add an IPAllocator type
2014-10-06 09:02:04 -07:00
Clayton Coleman
305db35422
Add a Log method on Scheme for better debugging
2014-10-05 17:17:25 -04:00
Deyuan Deng
7bae027604
Fix bug in minion registrytest.
2014-10-05 15:55:26 -04:00
Meir Fischer
073940e66f
minor comment change for grammar/consistency across v1beta* packages
2014-10-05 01:22:05 -04:00
bgrant0607
a0bb739609
Merge pull request #1534 from proppy/kubelet-noonce
...
kubelet: add --runonce flag
2014-10-04 15:48:44 -07:00
Tim Hockin
594e7db28f
Merge pull request #1583 from ddysher/fix-#1550
...
Ignore empty pod port spec.
2014-10-03 20:19:07 -07:00
Sam Ghods
3de1317c15
Remove JSONBase reference from v1beta3/types.go
2014-10-03 19:01:26 -07:00
Deyuan Deng
7640280284
Ignore empty pod port spec.
2014-10-03 21:38:29 -04:00
Johan Euphrosine
fa1dcd0a8b
kubelet: add basic test for runonce
2014-10-03 18:02:30 -07:00
Johan Euphrosine
f91162cf78
kubelet: add --runonce flag, exits after starting pod from the manifest
2014-10-03 18:02:30 -07:00
Deyuan Deng
a9e7cf8e40
Fix integration test read volume dir error.
2014-10-03 19:51:07 -04:00
erictune
08ac126336
Merge pull request #1577 from brendandburns/fix
...
Use formal error checking to validate a not found err.
2014-10-03 16:31:49 -07:00
Brendan Burns
e6991d0a66
Extract the service controller from the apiserver, put it in the controller manager for now.
2014-10-03 15:27:22 -07:00
Brendan Burns
1551b48347
Add a resource fit scheduler predicate. Set sensible defaults.
2014-10-03 15:09:59 -07:00
Brendan Burns
e6d823da71
Use formal error checking to validate a not found err.
2014-10-03 15:08:16 -07:00
Tim Hockin
bd7b4192bc
Merge pull request #1559 from brendandburns/fix
...
Add an integration test for services.
2014-10-03 09:29:22 -07:00
bgrant0607
f23a8ef5b2
Merge pull request #1560 from brendandburns/scheduler
...
Add a caching layer, so we don't pound cloud providers for ip addresses.
2014-10-03 09:06:52 -07:00
Brendan Burns
a115840e4f
Add a caching layer, so we don't pound cloud providers for ip addresses.
2014-10-02 21:51:09 -07:00
Brendan Burns
f00fd8d2e3
Add an integration test for services.
2014-10-02 21:07:06 -07:00
Tim Hockin
f9e5477e2b
Merge pull request #1558 from smarterclayton/incorrect_validation_field_names
...
Some field names in validation.go not consistent
2014-10-02 21:05:00 -07:00
Clayton Coleman
0ff77ffcb3
Some field names in validation.go not consistent
...
Fields are (for now) JavaScript style field accessors
2014-10-02 23:43:30 -04:00
Clayton Coleman
756f4afb2c
Allow Client to define arbitrary (non-default) prefix in config
2014-10-02 23:30:27 -04:00
Tim Hockin
f7db0bc674
Merge pull request #1546 from smarterclayton/allow_configurable_net_image
...
Allow configurable Kubelet net image for isolated networks
2014-10-02 17:11:32 -07:00
Brendan Burns
189f3dc6af
Merge pull request #1552 from thockin/bugs
...
Actually fix services bug
2014-10-02 15:25:13 -07:00
Tim Hockin
2bac0fb2c6
Actually fix services bug
2014-10-02 15:21:28 -07:00
bgrant0607
41daef6a00
Merge pull request #1524 from brendandburns/ux
...
Add an initial UX prototype for Kubernetes
2014-10-02 15:05:43 -07:00
Tim Hockin
446bcd468e
Merge pull request #1551 from brendandburns/fix
...
Fix error detection. (a better fix is coming)
2014-10-02 14:58:11 -07:00
Brendan Burns
c260c7d0eb
Fix error detection. (a better fix is coming)
2014-10-02 14:52:48 -07:00
Clayton Coleman
6881db64a9
Allow configurable Kubelet net image for isolated networks
...
Public access to the DockerHub is not guaranteed in all environments,
add a flag to the kubelet that allows it to use a different image (like
one on a private registry) as well as only pull the first time the
image is needed.
Fixes #1545
2014-10-02 15:56:03 -04:00
erictune
0a2e208e8f
Merge pull request #1538 from smarterclayton/allow_skip_tls_verify
...
Allow clients to skip TLS verification
2014-10-02 11:49:40 -07:00
erictune
40f9201610
Merge pull request #1540 from derekwaynecarr/add_context_to_client_interfaces
...
Add context to client interfaces
2014-10-02 11:48:31 -07:00
Tim Hockin
1dda3072a4
Merge pull request #1525 from erictune/rename_dir
...
Directory renamed to Dir to match json property
2014-10-02 11:28:27 -07:00
derekwaynecarr
d5ec260db8
Fixup tests
2014-10-02 12:52:01 -04:00
derekwaynecarr
fc67d822c6
Add context as parameter to client interface functions
2014-10-02 12:51:36 -04:00
Clayton Coleman
c5fa765926
Merge pull request #1533 from jhadvig/upstream_k8_stream_new
...
Support for streaming
2014-10-02 12:49:57 -04:00
Clayton Coleman
7af3c7d75e
Allow clients to skip TLS verification
...
Adds -skip_tls_verify to any API server client. Also store in auth
2014-10-02 12:08:58 -04:00
jhadvig
d6b1fa8e02
Support for streaming
2014-10-02 14:45:16 +02:00
Brendan Burns
c3d2517371
Re-add the ability to load certs from the config file.
2014-10-01 17:10:07 -07:00
Brendan Burns
77196403dc
Add support for fields.
2014-10-01 16:49:50 -07:00
Clayton Coleman
a81dc44fc6
Revert "Stream support for k8s client request"
...
This reverts commit 755b598a7d
.
2014-10-01 19:39:08 -04:00
Clayton Coleman
67ef24b410
Merge pull request #1506 from jhadvig/upstream_k8_stream
...
Stream support for client request
2014-10-01 19:32:27 -04:00
jhadvig
755b598a7d
Stream support for k8s client request
2014-10-02 01:07:43 +02:00
erictune
883bb60b3a
Merge pull request #1500 from smarterclayton/refactor_client_again
...
Refactor the client (again) to better support auth
2014-10-01 14:04:57 -07:00
Eric Tune
9c0769422d
Directory renamed to Dir to match json property
2014-10-01 13:35:21 -07:00
Tim Hockin
710832b8b6
Merge pull request #1474 from brendandburns/resource
...
Add a resource fit predicate.
2014-10-01 13:12:28 -07:00
Tim Hockin
db49dc0012
Merge pull request #1458 from brendandburns/dontpull
...
Add the ability to turn off image pulling.
2014-10-01 12:40:47 -07:00
Brendan Burns
39d03948e7
Add resource fit predicates.
2014-10-01 12:38:09 -07:00
Brendan Burns
4c456015b6
Add the ability to turn off image pulling.
2014-10-01 12:34:22 -07:00
Clayton Coleman
ff2eca97d9
Refactor the client (again) to better support auth
...
* Allows consumers to provide their own transports for common cases.
* Supports KUBE_API_VERSION on test cases for controlling which
api version they test against
* Provides a common flag registration method for CLIs that need
to connect to an API server (to avoid duplicating flags)
* Ensures errors are properly returned by the server
* Add a Context field to client.Config
2014-10-01 15:23:37 -04:00
derekwaynecarr
016d394705
Remove redundant code in validation
2014-10-01 14:29:47 -04:00
derekwaynecarr
6625e58a20
Updates to review comments
2014-10-01 10:57:50 -04:00
derekwaynecarr
0312d80ffa
Update test cases to use default context
2014-10-01 10:57:50 -04:00
derekwaynecarr
e4ec49ee6b
Require namespace on controller, pod, service objects
2014-10-01 10:57:50 -04:00
Tim Hockin
88bf01b008
Merge pull request #1225 from smarterclayton/v1beta3_proposals
...
Proposal: v1beta3 API overhaul
2014-09-30 16:12:13 -07:00
Tim Hockin
ef384944bd
Merge pull request #1516 from derekwaynecarr/kubecfg_ns_updates
...
Add ctx object to kubecfg and client
2014-09-30 15:52:00 -07:00
Dawn Chen
6f66dd71f1
Merge pull request #1497 from jhadvig/k8s_all_containers
...
ListContainer filter
2014-09-30 15:48:44 -07:00
jhadvig
9b21053188
ListContainer filter
2014-09-30 23:30:32 +02:00
Joe Beda
9ef1e13630
Merge pull request #1508 from brendandburns/ux
...
Update the proxy server so that it passes labels along too.
2014-09-30 11:48:03 -07:00
derekwaynecarr
02e1a2e79d
Update unit tests to pass a context on client create
2014-09-30 14:27:56 -04:00
derekwaynecarr
b7b1193919
Add context object to kubecfg/client
2014-09-30 14:27:19 -04:00
Brendan Burns
f630104538
Update the proxy server so that it passes labels along too.
2014-09-30 09:27:20 -07:00
Dawn Chen
e284e14222
Merge pull request #1475 from lavalamp/eventing3
...
Add GetReference()
2014-09-29 09:18:51 -07:00
Clayton Coleman
c0247d92ce
Proposal for v1beta3 API
...
* Separate metadata from objects
* Treat lists differently from resources
* Add UID and Annotations on Metadata
* Introduce BoundPod(s) as distinct from Pod to represent pods
scheduled onto a host
* Use "spec" instead of "state" and "status" instead of "currentState"
* Identify current status of objects consistently
* Use "condition" as the string label for substatus
* All string constants should be PublicGoCapitalized
* Rename Minion -> Node
* Rename ServerOp -> Operation
* Remove ContainerManifest
* Add api-conventions.md document
* Replace PodTemplateSpec in ReplCtrl with ObjectReference
2014-09-29 12:10:36 -04:00
Tim Hockin
f2cf958540
Caps for CauseType
2014-09-27 21:48:35 -07:00
Tim Hockin
e73de49f81
Caps on StatusReason*
2014-09-27 21:38:51 -07:00
Tim Hockin
523731c509
Capitalize Status.Status
2014-09-27 21:23:51 -07:00
Tim Hockin
1c02af3d16
Kill LivenessProbe.Type
2014-09-27 21:16:30 -07:00
Tim Hockin
04cdf286a4
Make and use api.Protocol type
2014-09-27 20:31:37 -07:00
Daniel Smith
6ac7578699
Add GetReference()
2014-09-26 17:40:07 -07:00
Brendan Burns
621df0da32
Merge pull request #1455 from lavalamp/selfLink
...
Start setting SelfLink
2014-09-26 17:34:18 -07:00
Brendan Burns
17c82606eb
Second step in decoupling the service controller, use the apiserver for writes too.
2014-09-26 16:44:25 -07:00
Daniel Smith
37e505601e
add self linking to apiserver
2014-09-26 15:08:02 -07:00
Daniel Smith
b972f72248
convert multiple return values into a struct, add SelfLinker
2014-09-26 14:52:16 -07:00
Daniel Smith
75b93cf7e9
Add SelfLinker
2014-09-26 14:51:13 -07:00
Tim Hockin
de3799d605
Merge pull request #1463 from derekwaynecarr/introduce_context_obj
...
Add ctx object to registry interface
2014-09-26 13:04:18 -07:00
Tim Hockin
badeaef95f
Merge pull request #1457 from brendandburns/pull
...
Add a rate limiter, use it to rate limit docker pulls.
2014-09-26 12:39:25 -07:00
derekwaynecarr
b7fcc7d3ec
Add ctx to registry test cases
2014-09-26 15:19:22 -04:00
Tim Hockin
a7a46f71aa
Merge pull request #1449 from brendandburns/scheduler
...
Refactor scheduler, use generic scheduler everywhere, delete old code.
2014-09-26 12:18:52 -07:00
derekwaynecarr
09365fed8d
Add ctx to registry interfaces
2014-09-26 15:18:42 -04:00
Brendan Burns
3ac706a32e
Add a rate limiter, use it to rate limit docker pulls.
2014-09-26 11:55:21 -07:00
Brendan Burns
1bb962961c
Refactor schedulers, remove schedulers, use generic scheduler.
2014-09-26 10:26:25 -07:00
Tim Hockin
f377d3eba8
Merge pull request #1441 from dchen1107/cleanup
...
Cleanup: Remove unnecessary dash escape when building docker container name
2014-09-26 10:17:11 -07:00
Dawn Chen
01c9015ed3
use _ as the separator for docker container name.
2014-09-26 09:21:21 -07:00
derekwaynecarr
ee19ba186d
Update to use api.Context
2014-09-26 11:50:34 -04:00
derekwaynecarr
be85ad7a3d
Add context object in test cases flows
2014-09-26 11:50:34 -04:00
derekwaynecarr
3e685674e7
Add context object to interfaces
2014-09-26 11:50:34 -04:00
Brendan Burns
377a9ac3d7
Merge pull request #1438 from lavalamp/eventing3
...
Event impl supporting changes
2014-09-25 22:01:09 -07:00
Tim Hockin
7a96ed38b3
Merge pull request #1439 from jhadvig/err_handler
...
Handle invalid pod name
2014-09-25 15:00:47 -07:00
jhadvig
e5d8ee3811
Handle invalid pod name
2014-09-25 22:57:05 +02:00
Clayton Coleman
4e56dafecc
Introduce some default log verbosity control
...
Move a lot of common error logging into better buckets:
glog.Errorf() - Always an error
glog.Warningf() - Something unexpected, but probably not an error
glog.V(0) - Generally useful for this to ALWAYS be visible
to an operator
* Programmer errors
* Logging extra info about a panic
* CLI argument handling
glog.V(1) - A reasonable default log level if you don't want
verbosity
* Information about config (listening on X, watching Y)
* Errors that repeat frequently that relate to conditions
that can be corrected (pod detected as unhealthy)
glog.V(2) - Useful steady state information about the service
* Logging HTTP requests and their exit code
* System state changing (killing pod)
* Controller state change events (starting pods)
* Scheduler log messages
glog.V(3) - Extended information about changes
* More info about system state changes
glog.V(4) - Debug level verbosity (for now)
* Logging in particularly thorny parts of code where
you may want to come back later and check it
2014-09-25 16:30:14 -04:00
Clayton Coleman
74db9a1b20
Log apiserver errors that are not of an expected type
...
Currently HttpLog only expected status range - this logs errors
that come back from a REST storage object without being first
converted to something in pkg/api/errors. This usually indicates
unexpected error conditions that a programmer didn't explicitly
check for - the kinds of problems that may need debugging by
an operator later. Set to V(1) because they don't impair normal
operation.
2014-09-25 16:21:48 -04:00
Clayton Coleman
a5ed10235e
Merge pull request #1354 from lavalamp/eventing
...
Add Event to api types
2014-09-25 16:20:49 -04:00
Daniel Smith
4d4ebcd38e
Add ttl parameter to CreateObj
2014-09-25 12:08:14 -07:00
Daniel Smith
3ea383d073
Make ExtractToList, deprecate ExtractList.
2014-09-25 12:07:16 -07:00
Daniel Smith
957b16053a
restore test that somehow vanished + add SetList
2014-09-25 12:07:07 -07:00
Tim Hockin
eea0265598
Merge pull request #1447 from lavalamp/fix
...
Fix type cast problems now that watch can pass errors
2014-09-25 12:06:17 -07:00
Daniel Smith
212f5305a8
Fix type cast problems now that watch can pass errors
2014-09-25 11:42:58 -07:00
Brendan Burns
44703efe2e
Simplify schedulers.
2014-09-25 11:36:22 -07:00
Daniel Smith
283eaf3931
Add new Event type
...
* replaces previous Event type, which is too limited.
* Remove writing of old event type.
* Fix serialiazation test to automatically test all types.
2014-09-25 11:31:35 -07:00
Daniel Smith
da92a016f5
Merge pull request #1420 from brendandburns/scheduler
...
Initial cut of a spreading and generic scheduler.
2014-09-25 11:10:53 -07:00
Brendan Burns
0cf8f28112
Refactor the code to make it more readable.
2014-09-25 10:49:36 -07:00
Brendan Burns
431caa93df
Merge pull request #1335 from dchen1107/exit1
...
Convert existing kubernetes system to use ContainerStatus, instead of
2014-09-24 21:37:24 -07:00
Brendan Burns
a981ae5480
Merge pull request #1433 from lavalamp/fixVerifyFmt
...
Fix verify gofmt
2014-09-24 15:44:38 -07:00
Brendan Burns
9ed8486fd7
Add a generic scheduler.
2014-09-24 15:38:52 -07:00
Brendan Burns
25b4939ffa
Initial cut of a spreading scheduler.
2014-09-24 15:38:52 -07:00
Tim Hockin
65c14a1b09
Merge pull request #1421 from brendandburns/resource
...
Generalize the fit scheduler.
2014-09-24 15:37:24 -07:00
Daniel Smith
bb0cd95a83
fix non-gofmt'd things
2014-09-24 14:27:10 -07:00
Brendan Burns
89547cfd79
Merge pull request #1431 from thockin/svcenv
...
Fix docker-links-style env vars for services
2014-09-24 14:24:02 -07:00
Brendan Burns
d900fbf6fc
Generalize the fit scheduler.
...
Extract the "fit predicate" from random fit to make it extensible/plugable
2014-09-24 13:56:40 -07:00
Tim Hockin
b2472d8bec
Fix docker-links-style env vars for services
...
This includes 3 changes:
1) Use the Service.Protocol field, rather than hardcoding TCP.
2) Use Service.Port rather than ContainerPort - ContainerPort can be a string
and has absolutely no meaning to consumers.
3) Beef up tests for these env vars.
2014-09-24 12:29:06 -07:00
Tim Hockin
f1f54ac72e
Merge pull request #1415 from thockin/svcenv
...
Add per-service env vars for *_SERVICE_HOST
2014-09-24 12:27:27 -07:00
Dawn Chen
66eadb514a
fix rebase issue.
2014-09-24 11:16:47 -07:00
Dawn Chen
0e6ec3cbfc
Convert existing kubernetes system to use ContainerStatus, instead of
...
docker.Container directly.
Conflicts:
pkg/kubelet/dockertools/docker.go
pkg/registry/pod/rest.go
2014-09-24 11:16:46 -07:00
Joe Beda
e1a07c0c02
Merge pull request #1424 from dchen1107/cleanup
...
Fix e2e testing issue
2014-09-24 10:25:06 -07:00
Dawn Chen
bdfd5045f3
Refactory a little bit.
2014-09-24 09:41:30 -07:00
Tim Hockin
089c5602fd
Add per-service env vars for *_SERVICE_HOST
...
As a replacement of a single SERVICE_HOST variable, offer a FOO_SERVICE_HOST
variable. This will help ease the transition to ip-per-service, where there
is no longer a single service host.
# *** ERROR: *** Some files are missing the required boilerplate
# header from hooks/boilerplate.txt:
# examples/guestbook/redis-slave/run.sh
#
# Your commit will be aborted unless you fix these.
# COMMIT_BLOCKED_ON_BOILERPLATE
2014-09-24 09:07:21 -07:00
Dawn Chen
4796120f70
Debugging to fix e2e testing issue
2014-09-23 17:35:50 -07:00
jhadvig
d2709ab9c1
Typo fix
2014-09-24 01:33:39 +02:00
Brendan Burns
253bce42fe
Extract the minion registry from the etcd implementation into the pod registry where it belongs.
2014-09-23 15:42:59 -07:00
Clayton Coleman
b0b7f13ade
Merge pull request #1404 from lavalamp/scheduler
...
Add error type to watch.
2014-09-23 11:28:29 -04:00
Abhishek Gupta
002a5c6c29
Added test case
2014-09-22 17:40:18 -07:00
Abhishek Gupta
7c662ff065
Adding GetEndpoints method to the client EndpointsInterface
2014-09-22 17:40:18 -07:00
Daniel Smith
f211e46f20
handle watch errors everywhere
2014-09-22 17:37:12 -07:00
Joe Beda
d65f8e3b90
Merge pull request #1397 from thockin/kubecfg
...
Make "kubecfg -s <port> run ..." select correctly
2014-09-22 17:21:45 -07:00
Daniel Smith
8fd1fb4337
update pkg/api documentation
2014-09-22 17:08:57 -07:00
Daniel Smith
265f889260
convert etcd errors to watch errors
2014-09-22 17:06:03 -07:00
Daniel Smith
05eff2e910
add new watch event type
2014-09-22 17:06:03 -07:00
Tim Hockin
0f9cd4301d
Merge pull request #1401 from jhadvig/k8s_log_retrieval_update
...
stdout/stderr writer container log stream
2014-09-22 16:38:11 -07:00
Tim Hockin
cf86d66076
rename labels in kubcfg logic
2014-09-22 15:34:13 -07:00
Tim Hockin
bb3900f447
Make "kubecfg -s <port> run ..." select correctly
...
kubecfg run creates a replication controller which sets all pods with a
replicationController= label, but then sets up a service selecting on name=
instead. This fixes that. kubecfg -s <port> run ... can now actually work.
2014-09-22 15:17:47 -07:00
jhadvig
9ba71528e4
stdout/stderr container log stream
2014-09-23 00:15:36 +02:00
Daniel Smith
248f49fb7c
Merge pull request #1340 from smarterclayton/cleanup_watch_embedding
...
Cleanup watch encoding w/ RawExtension
2014-09-22 14:52:50 -07:00
Brendan Burns
3346c68d33
Merge pull request #1389 from lavalamp/scheduler
...
make watch actually return an error when there's an error
2014-09-22 13:59:57 -07:00
Brendan Burns
f851d4b7f1
Merge pull request #1391 from thockin/proxy
...
Proxy cleanups
2014-09-22 13:59:29 -07:00
Tim Hockin
486dbd165f
Merge pull request #1318 from jhadvig/k8s_log_retrieval
...
Adding endpoint for log retrieval on the minion
2014-09-22 13:21:28 -07:00
Clayton Coleman
fece926e2b
Remove unnecessary EmbeddedObjects
...
Clarify the tests in embedded_test.go to indicate that unmarshalling
of an internal object (runtime.EmbeddedObject) will not work. Instead,
consumers should decode raw external objects.
2014-09-22 16:03:07 -04:00
Clayton Coleman
e3da2ba2c8
Cleanup watch encoding (remove dupe Encoding)
...
Move standard watch encode / decode streams to use
runtime.RawExtension and embed API decoding based on
a provided codec.
2014-09-22 16:03:07 -04:00
Clayton Coleman
6778a8d88d
watch/iowatcher should log non EOF errors encountered
2014-09-22 16:03:07 -04:00
Victor Marmol
b6a56627a7
Merge pull request #1396 from eparis/update-cadvisor
...
Update cadvisor to 0.4.0
2014-09-22 13:01:06 -07:00
Clayton Coleman
9a0add3c96
runtime.RawExtension must copy the buffer, not use it
2014-09-22 15:57:37 -04:00
Tim Hockin
2c5693b0ad
Don't force a host port through kubecfg
2014-09-22 12:31:37 -07:00
Eric Paris
a32400f47f
Remove all code dealing with cadvisor Percentiles
...
This was removed upstream beween cadvisor 0.3.0 and 0.4.0
2014-09-22 14:22:40 -04:00
jhadvig
960f1b2693
Consistency update
2014-09-21 22:25:44 +02:00
Tim Hockin
dd9c562769
Get rid of un-needed lock
2014-09-20 11:40:02 -07:00
Tim Hockin
a559d8d9b2
Move some test-only code into the test
2014-09-20 11:38:05 -07:00
Tim Hockin
20826e6d50
Move copyBytes closer to use-sites
2014-09-20 11:31:13 -07:00
Tim Hockin
cf6ccaee54
Proxy: delete serviceInfo when stopping a service
2014-09-20 11:29:04 -07:00
Daniel Smith
4d7c6e2657
Treat super short watches with no items received the same as watches that error immediately
2014-09-19 18:09:40 -07:00
Daniel Smith
0d69393a43
make watch actually return an error when there's an error
2014-09-19 17:53:55 -07:00
Daniel Smith
06bb87c6c1
Merge pull request #1386 from brendandburns/auth
...
Add authenticated TLS support to the client.
2014-09-19 16:05:27 -07:00
Brendan Burns
8dff6f12d7
Add authenticated TLS support to the client.
2014-09-19 15:43:23 -07:00
Daniel Smith
6741704761
Merge pull request #1377 from smarterclayton/benchmarks
...
Add some benchmarks and minor test-go enhancements
2014-09-19 15:00:47 -07:00
Clayton Coleman
463a16af36
Add benchmarks for API tests
2014-09-19 17:17:54 -04:00
Filipe Brandenburger
334f9dc772
Merge pull request #1384 from brendandburns/release
...
Release 0.3
2014-09-19 13:32:47 -07:00
Daniel Smith
bdc8d898fa
Merge pull request #1376 from ddysher/minion-test-fix
...
Fix minion registry test insert.
2014-09-19 12:50:29 -07:00
Brendan Burns
b2b3d2e16b
Add the 0.3-dev commit.
2014-09-19 11:15:57 -07:00
Brendan Burns
89eff1d0d8
Rev the version to 0.3
2014-09-19 10:11:03 -07:00
Brendan Burns
06316f4861
Merge pull request #1375 from ddysher/pod-rest-test
...
Out of place test table
2014-09-19 10:03:01 -07:00
Clayton Coleman
5483333e29
Allow server and client to take api version as argument
...
* Defaults to v1beta1
* apiserver takes -storage_version which controls etcd storage version
and the version of the client used to connect to other apiservers
* Changed signature of client.New to add version parameter
* All controller code and component code prefers the oldest (most common)
server version
2014-09-18 23:27:28 -04:00
Clayton Coleman
ca5355908f
Expose v1beta2 API group
2014-09-18 23:24:05 -04:00
Deyuan Deng
0c8d9ba870
Fix minion registry test insert.
2014-09-18 23:04:10 -04:00
Deyuan Deng
f966a51fc0
Out of place test table
2014-09-18 21:44:52 -04:00
Brendan Burns
edf3eb04e2
Fix the build.
2014-09-18 15:29:17 -07:00
Daniel Smith
12b677ad56
Merge pull request #1356 from brendandburns/healthz
...
Adjust the logic, so that if the apiserver restarts, or has no pod info
2014-09-18 15:15:24 -07:00
Brendan Burns
a4912d7203
Merge pull request #1342 from jwforres/websocket_connection_header
...
Match any Connection header that contains the Upgrade token for websocke...
2014-09-18 09:47:07 -07:00
Joe Beda
4487f311ab
Merge pull request #1326 from lavalamp/scheduler
...
Fix cache to use the "List then Watch" pattern.
2014-09-18 09:00:52 -07:00
Jessica Forrester
f2732f18a7
Match any Connection header that contains the Upgrade token for websockets
2014-09-18 09:26:21 -04:00
jhadvig
9f34eaef9e
kubelet server test cases
2014-09-18 14:17:10 +02:00
Brendan Burns
17cbde0c5a
Adjust the logic, so that if the apiserver restarts, or has no pod info
...
for some other reason, pods on missing machines are still 'terminated'
2014-09-17 21:57:11 -07:00
Daniel Smith
b3bfef9127
Merge pull request #1347 from brendandburns/healthz
...
Fix a problem where if a minion went missing, we still thought the pod was running.
2014-09-17 18:26:44 -07:00
Brendan Burns
99586b4da4
Fix a problem where if a minion went missing, we still thought the pod was running.
...
Also convert some tests to table driven.
2014-09-17 18:16:52 -07:00
jhadvig
f3f5d0200c
Using podID+containerName for querying the logs
2014-09-17 21:00:09 +02:00
Dave Bailey
14fcf68edc
Improve error detection for URL manifests, and skip parsing if content unchanged.
2014-09-17 17:43:44 +00:00
Tim Hockin
450ccde521
Don't store name twice in proxy
2014-09-16 17:04:23 -07:00
Daniel Smith
4e9cf2ccb4
Add field selector to List, implement for pods.
2014-09-16 16:17:16 -07:00
Daniel Smith
b1169ed91e
Fix cache to use the "List then Watch" pattern.
2014-09-16 16:17:15 -07:00
Brendan Burns
dc5a4a8c3f
Refactor to clean up names.
2014-09-16 15:19:02 -07:00
erictune
506f51b186
Merge pull request #1330 from brendandburns/privilege
...
Only allow privileged containers if API server flag set. Adds capabilities package.
2014-09-16 15:12:26 -07:00
Daniel Smith
0b75f7b543
Merge pull request #1275 from smarterclayton/v1beta2
...
Create v1beta2 and allow multiple Codec encodings to exist
2014-09-16 14:52:04 -07:00
Daniel Smith
0727b5a6c8
Merge pull request #1302 from brendandburns/validatez
...
Add a validator for validating components in the cluster infrastructure.
2014-09-16 14:36:10 -07:00
Clayton Coleman
23307344ee
Add round trip tests for default encoding
...
Turn down iterations a bit for speed
2014-09-16 17:27:59 -04:00
Brendan Burns
f8844ce69e
Add a validator for validating components in the cluster infrastructure.
2014-09-16 13:37:01 -07:00
Clayton Coleman
61e3ce7ddc
Make runtime less global for Codec
...
* Make Codec separate from Scheme
* Move EncodeOrDie off Scheme to take a Codec
* Make Copy work without a Codec
* Create a "latest" package that imports all versions and
sets global defaults for "most recent encoding"
* v1beta1 is the current "latest", v1beta2 exists
* Kill DefaultCodec, replace it with "latest.Codec"
* This updates the client and etcd to store the latest known version
* EmbeddedObject is per schema and per package now
* Move runtime.DefaultScheme to api.Scheme
* Split out WatchEvent since it's not an API object today, treat it
like a special object in api
* Kill DefaultResourceVersioner, instead place it on "latest" (as the
package that understands all packages)
* Move objDiff to runtime.ObjectDiff
2014-09-16 16:26:43 -04:00
Clayton Coleman
154a91cd33
Rename runtime.DefaultScheme to latest.Codec for ease of readability
2014-09-16 16:19:35 -04:00
Clayton Coleman
fe614aeda2
Simple refactor for ease of readability
...
runtime.DefaultCodec -> latest.Codec
2014-09-16 16:12:35 -04:00
Clayton Coleman
10f68902f6
Add v1beta2 API objects
2014-09-16 16:11:26 -04:00
Brendan Burns
5b9e2a55b5
Add a flag to reject privileged containers in the apiserver.
2014-09-16 11:22:32 -07:00
Paul Morie
f94198c7a3
Expose validation method for ReplicationControllerState
2014-09-16 12:55:27 -04:00
jhadvig
6da2653b4a
Update according to review
2014-09-16 15:40:12 +02:00
Andrew M Bursavich
4e7f8db3a0
pkg/watch: remove test hook
2014-09-15 18:55:29 -07:00
Daniel Smith
9c25792dca
Merge pull request #1321 from abursavich/master
...
pkg/watch: fix potential deadlock
2014-09-15 18:26:19 -07:00
Tim Hockin
f8a8df369c
Merge pull request #1314 from ddysher/fd-lead
...
Fix leaking FD
2014-09-15 17:24:29 -07:00
Andrew M Bursavich
b9dcfbad76
pkg/watch: deadlock test
2014-09-15 16:58:26 -07:00
Dawn Chen
d51c28d757
Merge pull request #1304 from brendandburns/valid
...
Add some lifecycle validation.
2014-09-15 16:50:03 -07:00
Brendan Burns
6efafb141f
Add some lifecycle validation.
2014-09-15 16:45:26 -07:00
Deyuan Deng
d5eb731b3f
Fix leaking FD.
2014-09-15 19:12:32 -04:00
Daniel Smith
44f340f127
Remove custom scheme stuff
...
As separate commit to make it easy to get back-- I'm not completely
convince we won't want this in the future.
2014-09-15 13:15:46 -07:00
Daniel Smith
42dafb0e2e
add PluginBase to fuzz functions
2014-09-15 13:15:46 -07:00
Daniel Smith
b8c955ea17
Fixes:
...
* Fix kubecfg test, which was writing an internal object straight to yaml
* Address review comments
2014-09-15 13:15:46 -07:00
Daniel Smith
52d2c221b8
pkg/runtime now has a well defined api pluggability model.
2014-09-15 13:15:46 -07:00
Daniel Smith
71e547124c
Make needed changes in conversion package to support pluggability
2014-09-15 13:15:46 -07:00
Andrew M Bursavich
435e0b73bb
pkg/watch: fix potential deadlock
2014-09-15 12:07:32 -07:00
Clayton Coleman
24b5b7e8d3
Merge pull request #1296 from brendandburns/healthz
...
Add healthz handlers to the controller manager and scheduler
2014-09-15 11:28:02 -04:00
Clayton Coleman
424447d3b0
Merge pull request #1306 from lavalamp/scheduler
...
Add ExtractList to runtime.
2014-09-15 11:27:42 -04:00
jhadvig
f351691493
Adding endpoint for log retrieval on the minion
2014-09-15 17:02:56 +02:00
Brendan Burns
99f7a4f25d
Add healthz handlers to the controller manager and scheduler
2014-09-12 21:13:33 -07:00
Clayton Coleman
0a02c6bcdf
Exact copy of v1beta1 as v1beta3 for further iteration
2014-09-12 22:02:27 -04:00
Daniel Smith
7d50aa8ba8
Add ExtractList to runtime.
2014-09-12 16:51:07 -07:00
Tim Hockin
3181f3555d
Wrap goroutines in HandleCrash()
2014-09-12 16:47:40 -07:00
Tim Hockin
1e50f118fd
Move UDP backend setup to a function
2014-09-12 16:47:40 -07:00
Tim Hockin
86d12681f2
Inject UDP timeout to enable testing
2014-09-12 16:47:40 -07:00
Tim Hockin
38416f6a23
Implement UDP proxying in kube-proxy
2014-09-12 16:47:40 -07:00
Tim Hockin
cad6122fe4
Refactor proxy code to make room for UDP
2014-09-12 16:38:17 -07:00
Tim Hockin
9f275c81ac
add a 'protocol' field to api.Service
2014-09-12 16:38:17 -07:00
Tim Hockin
b566339f0c
make service validation test be table-driven
2014-09-12 16:38:17 -07:00
Daniel Smith
6eeb967d3d
Merge pull request #1229 from ragnard/aws-provider
...
Initial impl. of cloud provider for AWS
2014-09-12 15:16:47 -07:00
Brendan Burns
46d0cbd645
Add a global flag to enable/disable privileged containers
2014-09-12 09:56:45 -07:00
Dan Mace
3a3fab3f82
FEATURE: Support privileged containers in a pod
...
Add a Privileged field to containers in a pod, in order to facilitate pods
performing administrative tasks such as builds via Docker-in-Docker.
Discussion: https://github.com/GoogleCloudPlatform/kubernetes/issues/391
2014-09-12 09:38:11 -07:00
Tim Hockin
bc9a290241
Merge pull request #1218 from bcwaldon/docker-auth
...
Authenticated docker pulls, pt. I
2014-09-11 22:53:36 -07:00
Brian Waldon
2f87857b0f
kubelet: generate keyring from .dockercfg
2014-09-11 21:01:39 -07:00
brendandburns
cc7999c00a
Merge pull request #1268 from dchen1107/termination
...
Proposed ContainerStatus for each individual Container in a Pod.
2014-09-11 16:17:59 -07:00
Dawn Chen
7b46d8c9c5
typo
2014-09-11 16:07:56 -07:00
Dawn Chen
25fbe210f6
Clean up
2014-09-11 15:30:06 -07:00
Dawn Chen
3faf393e7b
Introduce ContainerStates. Currently keep it has the same set as PodStatus:
...
Waiting, Running, Termination. For each state, there are some meaningful
status associated with it.
2014-09-11 15:22:53 -07:00
Dawn Chen
ee129cd440
Proposed ContainerStatus for each individual Container in a Pod.
2014-09-11 14:34:21 -07:00
Ragnar Dahlén
b548465adf
Initial impl. of cloud provider interface for AWS
2014-09-11 22:28:56 +01:00
Daniel Smith
6757b402d5
Merge pull request #1133 from jwforres/enable_cors
...
Add option to enable a simple CORS implementation for the api server
2014-09-11 13:59:14 -07:00
Jessica Forrester
0f2b8f4f9f
Create passthroughLogger when LogOf is called and request has no logger
2014-09-11 16:48:06 -04:00
Brian Waldon
0bf4fabc19
kubelet: move docker-related code into sub-package
2014-09-11 13:12:28 -07:00
derekwaynecarr
0c20fffa06
No DNS in vagrant cross minions, need explicit IP as host
2014-09-11 13:38:50 -04:00
Daniel Smith
b5c6edcd79
Merge pull request #1189 from simon3z/ovirt-cloud
...
Add support for oVirt cloud provider
2014-09-11 09:50:31 -07:00
Federico Simoncelli
320fd528e2
Add support for oVirt cloud provider
...
This patch adds the initial support for the oVirt cloud provider.
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2014-09-11 13:08:46 +00:00
Dawn Chen
b48834e198
Fix PodInfo to include last terminated container info when calling
...
GetPodInfo based on name and UUID. With this fix, if some of containers
are dead, the pod status will stay as Running, not reset back to Waiting.
2014-09-10 14:41:18 -07:00
bgrant0607
fb4199cba7
Merge pull request #1238 from brendandburns/service
...
Add an earlier check and error for names that won't work for services.
2014-09-10 11:41:57 -07:00
Brendan Burns
80c06f4768
Add an earlier check and error for names that won't work for services.
2014-09-10 11:31:03 -07:00
Joe Beda
9ffe6c05dc
Merge pull request #1251 from filbranden/version_string1
...
Use just GitVersion for the -version output
2014-09-09 16:32:01 -07:00
Daniel Smith
48913672d9
Merge pull request #1248 from brendandburns/replicas
...
Make replica controllers return current state.
2014-09-09 16:27:21 -07:00
brendandburns
e9d12fef05
Merge pull request #1250 from dchen1107/cleanup
...
Small clean up in validation.
2014-09-09 16:24:12 -07:00
Brendan Burns
e7625c8d91
Add current state to replica controller.
2014-09-09 16:19:18 -07:00
Filipe Brandenburger
8de322f196
Use just GitVersion for the -version output
...
It turns out that that's simply the most useful information about the version
that was built.
For a git tree, it includes information about the closest release, number of
commits since the release, enough of the SHA1 to find the exact commit and
whether the tree was clean or dirty at build time.
For a build from tarball, it will include information of which release was built
and, when using a tarball from a not released commit (e.g. downloading
"master.tar.gz" from GitHub, not recommended!) it will include the -dev prefix
to indicate that was not an official release. (That's as good as we can get with
it.)
If additional information is required, it can be found with -version=raw.
Tested:
- Built from the git tree:
$ _output/go/bin/kubecfg -version
Kubernetes v0.2-29-gd916051e9db865
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-29-gd916051e9db865", GitCommit:"d916051e9db8650899acb9415a4e285e3e3a1f87", GitTreeState:"clean"}
- Built it from a dirty git tree:
$ { echo 'package version'; echo 'var X = 1'; } >pkg/version/sillyvar.go
$ make
$ _output/go/bin/kubecfg -version
Kubernetes v0.2-29-gd916051e9db865-dirty
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-29-gd916051e9db865-dirty", GitCommit:"d916051e9db8650899acb9415a4e285e3e3a1f87", GitTreeState:"dirty"}
- Tag it v0.3 and build it:
$ git tag -a v0.3 -m 'Release Kubernetes v0.3'
$ make
$ _output/go/bin/kubecfg -version
Kubernetes v0.3
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"3", GitVersion:"v0.3", GitCommit:"d916051e9db8650899acb9415a4e285e3e3a1f87", GitTreeState:"clean"}
- Built it from a tarball:
$ wget -O kubernetes.tgz https://api.github.com/repos/filbranden/kubernetes/tarball/version_string1
$ tar xvf kubernetes.tgz
$ cd filbranden-kubernetes-*/
$ make
$ _output/go/bin/kubecfg -version
Kubernetes v0.2-dev
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-dev", GitCommit:"", GitTreeState:"not a git tree"}
- Built it with `go get`:
# I need to prefetch the tree to replace the official tree with mine:
$ mkdir -p ${TMPDIR}/gopath/src/github.com/
$ ln -sf filbranden ${TMPDIR}/gopath/src/github.com/GoogleCloudPlatform
# Now run `go get` to build kubecfg:
$ GOPATH=${TMPDIR}/gopath go get github.com/filbranden/kubernetes/cmd/kubecfg
# Check the version:
$ ${TMPDIR}/gopath/bin/kubecfg -version
Kubernetes v0.2-dev
$ ${TMPDIR}/gopath/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-dev", GitCommit:"", GitTreeState:"not a git tree"}
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 16:19:14 -07:00
Dawn Chen
80fa392f6b
Small clean up in validation. errs is used as import path alias in validation.go, but it is reused
...
as a variable for validateVolume.
2014-09-09 16:08:21 -07:00
Filipe Brandenburger
61877f2dd0
Update version to use -dev suffix
...
According to the plan listed in docs/releasing.md.
The gitMinor will keep using a "+" suffix instead for now.
Added a //TODO to deprecate gitMajor and gitMinor in a follow up.
Tested:
- Built it from the git tree:
$ make
$ _output/go/bin/kubecfg -version
Kubernetes version 0.2+, build 8d31eb03c11d4db64ae26809eef7f73070efd811
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-29-g8d31eb03c11d4d", GitCommit:"8d31eb03c11d4db64ae26809eef7f73070efd811", GitTreeState:"clean"}
- Built it with a direct `go install` (same as tarball):
$ GOPATH=${PWD}/_output/go:${PWD}/Godeps/_workspace go install $KUBE_GO_PACKAGE/cmd/kubecfg
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-dev", GitCommit:"", GitTreeState:"not a git tree"}
$ _output/go/bin/kubecfg -version
Kubernetes version 0.2+, build (unknown)
A follow up commit will address the output of the -version (without "raw") command to use gitVersion instead of Major + Minor.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 15:46:20 -07:00
Brendan Burns
4ba4762827
Insert the current state of a replica controller.
2014-09-09 15:23:34 -07:00
Jessica Forrester
d82cf7dd48
Rebased and fixed test cases
2014-09-09 17:50:18 -04:00
Jessica Forrester
0cac1c5f79
Switch LogOf from panicking when logger is missing to creating logger with the defaults.
...
Update CORS tests to a table-based test and cover more cases.
2014-09-09 17:50:18 -04:00
Jessica Forrester
becf6ca4e7
Move RecoverPanics to be the top level wrapped handler. Add new method to be sure a logger has been generated instead of assuming one has. Move regexp list compilation into a utility and pass regexp list into CORS.
2014-09-09 17:50:18 -04:00
Jessica Forrester
8b4ca9c2a7
Move CORS handler wrapping into cmd/apiserver and switch config flag to a list of allowed origins
2014-09-09 17:50:18 -04:00
Jessica Forrester
8723eece49
Add option to enable a simple CORS implementation for the api server
2014-09-09 17:50:18 -04:00
Tim Hockin
4ff76add57
Merge pull request #1147 from dchen1107/restart
...
Introduce the simplest RestartPolicy and handling.
2014-09-09 14:44:42 -07:00
Brendan Burns
69b359b689
Don't stack trace on 301s
2014-09-09 14:10:46 -07:00
Daniel Smith
1fd12778eb
Merge pull request #1231 from brendandburns/service
...
Fix a bug where we don't return an error.
2014-09-09 12:48:19 -07:00
Brendan Burns
a343a93b2d
Fix a bug where we don't return an error.
2014-09-09 10:29:00 -07:00
Dave Bailey
5ec748dc5e
avoid dumping error pages into error messages
2014-09-09 17:20:58 +00:00
csrwng
6551f4e0f0
Use codec to encode/decode api objects in client and kubecfg parser
2014-09-09 08:45:53 -04:00
Dawn Chen
15cab4d053
Introduce the simplest RestartPolicy and handling.
2014-09-08 22:41:38 -07:00
brendandburns
b4e08dd347
Merge pull request #1219 from filbranden/release_v0.2
...
Release Kubernetes v0.2
2014-09-08 21:04:34 -07:00
Filipe Brandenburger
a0abb38157
Release Kubernetes v0.2
...
This commit will be tagged with a v0.2 annotated git tag.
Tested:
- Created a git tag for it, built it and checked output of -version:
$ git tag -a -m 'Release Kubernetes v0.2' v0.2
$ make
hack/build-go.sh
Building local go components
$ _output/go/bin/kubecfg -version
Kubernetes version 0.2, build b47f9af5c9ea770973be1b001adaffbdfcb08618
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"2", GitVersion:"v0.2", GitCommit:"b47f9af5c9ea770973be1b001adaffbdfcb08618", GitTreeState:"clean"}
- Made sure hack/test-go.sh and hack/test-cmd.sh still pass.
Fixes: Issue #1018
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-08 16:21:36 -07:00
Daniel Smith
41754f5bd4
Merge pull request #1192 from smarterclayton/standardize_etcd_errors
...
Return standard API errors from etcd registry by operation
2014-09-08 15:57:08 -07:00
Clayton Coleman
3ffe259ac7
Return standard API errors from etcd registry by operation
...
Adds pkg/api/errors/etcd, which defines default conversions
for common CRUD operations from etcd to api.
2014-09-08 18:46:01 -04:00
Tim Hockin
81b502b0a6
Merge pull request #1217 from lavalamp/fixApi
...
Rename all XStorage types to REST for clarity
2014-09-08 15:38:47 -07:00
Daniel Smith
759c3f9033
Rename all XStorage types to REST for clarity
2014-09-08 15:19:13 -07:00
Daniel Smith
4c1d5f0c44
Merge pull request #1160 from simon3z/master
...
Support configurations for cloudproviders
2014-09-08 15:12:51 -07:00
Federico Simoncelli
6add1993c9
Support configurations for cloudproviders
...
Cloud providers may need specific configurations to run properly (e.g.
authentication parameters, uri, etc.).
This patch adds the simplest implementation for passing configurations
to cloudproviders: a new apiserver -cloud_config flag to specify the
path to an arbitrary configuration file.
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2014-09-08 21:46:53 +00:00
Dawn Chen
7ace5a3e83
Passing pod UUID to Kubelet.
2014-09-08 14:24:09 -07:00
Daniel Smith
9345da0bfd
Fix build
2014-09-08 13:05:38 -07:00
brendandburns
753b80c9b8
Merge pull request #1105 from lavalamp/proxy
...
Add a generic proxier
2014-09-08 12:51:24 -07:00