Clayton Coleman
8a833ca701
Add a List type that can contain arbitrary objects
...
Supports objects that the core schema may not recognize and
preserves them unmodified as runtime.Unknown
2014-12-09 10:31:17 -05:00
Sam Ghods
6399854240
Remove unused YAML tags and GetYAML/SetYAML methods
...
Unneeded after move to ghodss/yaml.
2014-12-02 16:25:28 -08:00
Brendan Burns
a5bc6301a4
Revert "Using util.Time for ContainerStatus"
2014-11-24 21:32:31 -08:00
Daniel Smith
610ab9a0db
Merge pull request #2586 from dchen1107/cleanup
...
Using util.Time for ContainerStatus
2014-11-24 15:35:07 -08:00
Dawn Chen
acb0f1198b
Using util.Time for ContainerStatus
2014-11-24 15:15:33 -08:00
Daniel Smith
8d762c996a
Remove boilerplate coversion functions
2014-11-24 12:57:34 -08:00
markturansky
8159c8fd25
Refactor PodCondition to PodPhase
2014-11-21 15:28:38 -05:00
Deyuan Deng
a4e7604266
Merge pull request #2478 from smarterclayton/refactor_minion_to_match_v1beta3
...
Move the internal minion representation to match v1beta3
2014-11-20 21:37:43 -05:00
Clayton Coleman
156000ef6d
Move the internal minion representation to match v1beta3
...
Moves to 'Spec' and 'Status' internally and removes duplicate
fields. Moves Capacity into Spec and drops use of NodeResources
2014-11-20 20:53:08 -05:00
Tim Hockin
95a9098311
fix 'go vet' warnings
2014-11-21 09:45:28 +08:00
Clayton Coleman
1c524607d8
Merge pull request #2097 from markturansky/v1beta3_podrefactor
...
Refactor internal API for Pods to match v1beta3
2014-11-18 15:28:58 -05:00
Brian Grant
821c8542b6
Add descriptions to all v1beta1 API fields.
2014-11-18 17:53:57 +00:00
markturansky
8af4ccb111
v1beta3 Pod refactor
2014-11-18 09:25:42 -05:00
Brendan Burns
2aa52d043b
Add external services v2 support.
2014-11-14 11:32:54 -08:00
Dawn Chen
f47f1da3d6
Merge pull request #2345 from yugui/lint/api
...
Fixes golint errors in pkg/api.
2014-11-13 23:21:42 -08:00
Yuki Yugui Sonoda
864bfb65da
Fixes golint errors in pkg/api.
2014-11-14 13:14:23 +09:00
Eric Tune
b195d982cd
Remove todos about addin usage to Pods.
...
Usage in Pods would be quite noisy when watching pods.
People should get usage from heapster, or from
some other object TBD.
2014-11-13 16:11:10 -08:00
bgrant0607
7cab32b41d
Merge pull request #2185 from brendandburns/history
...
Add a human readable message to pod state.
2014-11-13 10:52:04 -08:00
Daniel Smith
0348a67413
Merge pull request #2195 from smarterclayton/prepare_pod_template_v1beta3
...
Allow an internal pod template reference or object
2014-11-12 10:55:08 -08:00
Brendan Burns
3fdbb10255
Add a human readable message to pod state.
2014-11-10 21:05:27 -08:00
Dawn Chen
8ffbced280
Introduce terminationMessagePath to Container, and update conversion code
...
to assign the default path.
Move default setting for terminationMessagePath to conversion
from validation. Addressed other comments.
2014-11-10 10:55:56 -08:00
Clayton Coleman
74c7914f7e
Conversion functions to support PodTemplateSpec
2014-11-10 11:33:31 -05:00
Clayton Coleman
e3be1e9e14
Changes to core types for introducing PodTemplateSpec
2014-11-10 11:33:31 -05:00
Dawn Chen
5342bb4306
Introduce application termination message to ContainerStatus
2014-11-07 09:32:39 -08:00
derekwaynecarr
56b6273dfb
Fix json serialization consistency
2014-11-06 10:24:48 -05:00
markturansky
119f654a13
Refactor PodStatus to PodCondition in internal API for v1beta3
2014-11-05 17:26:47 -05:00
markturansky
bd7643c033
refactor services to v1beta3
2014-11-04 14:23:53 -05:00
Daniel Smith
ab9346d107
Use ID instead of Name in v1beta1 & 2
2014-10-29 15:13:44 -07:00
Brendan Burns
51bf451932
Add container garbage collection.
2014-10-28 12:52:06 -07:00
Tim Hockin
9a617344bf
Merge pull request #1945 from brendandburns/tests
...
Add support for git volumes.
2014-10-27 16:55:37 -07:00
Brendan Burns
b59e49fa13
Add support for git volumes.
2014-10-27 16:35:52 -07:00
Tim Hockin
bb5ca0f91b
Respect a requested PortalIP if possible
2014-10-27 14:03:52 -07:00
Brendan Burns
5d4d60783d
Add requirements based scheduling.
2014-10-25 22:08:00 -07:00
Clayton Coleman
644eb70085
Refactor tests to split ObjectMeta from TypeMeta
2014-10-24 11:22:21 -04:00
Clayton Coleman
0f011a055f
Implement conversions for v1beta1/2 to internal ObjectMeta
2014-10-24 11:22:20 -04:00
Clayton Coleman
bb77a5d15f
Rename ID -> Name
2014-10-22 15:00:26 -04:00
Daniel Smith
ad1212b9af
Add client time to events
2014-10-22 11:12:17 -07:00
Clayton Coleman
892942af8f
Read BoundPods from etcd instead of ContainerManifestList
...
There are three values that uniquely identify a pod on a host -
the configuration source (etcd, file, http), the pod name, and the
pod namespace. This change ensures that configuration properly
makes those names unique by changing podFullName to contain both
name (currently ID in v1beta1, Name in v1beta3) and namespace.
The Kubelet does not properly handle information requests for
pods not in the default namespace at this time.
2014-10-16 19:29:08 -04:00
Tim Hockin
e907011111
Core support for ip-per-service
2014-10-16 08:36:47 -07:00
Clayton Coleman
eea77a1449
Backport the BoundPods type to v1beta1/2/internal
2014-10-09 16:39:55 -04: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
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
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
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
Daniel Smith
3a62089790
Fix malformed namespace json tag
2014-10-07 13:52:51 -07: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
d3e51a0f24
Rename JSONBase -> TypeMeta in preparation for v1beta3
...
Will make subsequent refactor much easier
2014-10-07 11:12:16 -04:00
Dawn Chen
a86d496f9a
Fix e2e tests.
2014-10-06 13:37:24 -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
Meir Fischer
073940e66f
minor comment change for grammar/consistency across v1beta* packages
2014-10-05 01:22:05 -04: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
derekwaynecarr
e4ec49ee6b
Require namespace on controller, pod, service objects
2014-10-01 10:57:50 -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
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
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
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
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
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
Tim Hockin
9f275c81ac
add a 'protocol' field to api.Service
2014-09-12 16:38:17 -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
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
Daniel Smith
48913672d9
Merge pull request #1248 from brendandburns/replicas
...
Make replica controllers return current state.
2014-09-09 16:27:21 -07:00
Brendan Burns
4ba4762827
Insert the current state of a replica controller.
2014-09-09 15:23:34 -07:00
Dawn Chen
15cab4d053
Introduce the simplest RestartPolicy and handling.
2014-09-08 22:41:38 -07:00
Dawn Chen
7ace5a3e83
Passing pod UUID to Kubelet.
2014-09-08 14:24:09 -07:00
Daniel Smith
828b70abb9
api and api/v1beta1 pass tests again
2014-09-07 22:19:24 -07:00
Daniel Smith
77edb91032
Add Object type to runtime, make runtime test pass.
2014-09-07 22:19:24 -07:00
Daniel Smith
2ba6503511
Add continuation to conversion routines
2014-09-07 22:19:24 -07:00
brendandburns
8e10ee5169
Merge pull request #1197 from lavalamp/fixApi
...
Rename Object to EmbeddedObject
2014-09-05 21:39:37 -07:00
Daniel Smith
7790961011
Rename Object to EmbeddedObject
2014-09-05 14:43:35 -07:00
Francisco Souza
6d0f84c700
api/v1beta1: use go-dockerclient instead of docker-api-structs
...
This involves updating go-dockerclient and removing the patched code.
Related to #692 and fsouza/go-dockerclient#146 .
2014-09-05 17:31:13 -03:00
Clayton Coleman
01e668187c
Services and Endpoints weren't properly sync'ing
...
They need incremental changes and a resync on start.
2014-09-03 16:04:55 -04:00
Brendan Burns
dd9ecf5b79
Add types for lifecycle events.
2014-09-02 15:14:13 -07:00
Daniel Smith
a63966e73c
Combine pkg/apitools and pkg/api/common and call the result pkg/runtime
2014-09-02 11:15:44 -07:00
Daniel Smith
6121e61f99
Split api into api, api/common, api/validation & apitools
2014-09-02 10:40:52 -07:00
Vojtech Vitek (V-Teq)
59f58cd043
Unify Godoc formatting, fix various typos
...
Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
2014-09-02 13:41:03 +02:00
Daniel Smith
aa9b9b9fa8
Invert api and api/v1beta1 dependencies
...
This is some cleanup that has been needed for a while.
There's still one more step that could usefully be done, which is to
split up our api package into the part that provides the helper
functions and the part that provides the internal types. That can come
later.
The v1beta1 package is now a good example of what an api plugin should
do to version its types.
2014-08-29 12:15:30 -07:00
Daniel Smith
a2b03ea93b
Fix incorrect tag in MinionList
2014-08-28 20:06:17 -07:00
Clayton Coleman
0a841a49fd
Naming of Reason constants is inconsistent
...
Changed ReasonType to StatusReason (to match the field) and
changed CauseReason to CauseType and renamed StatusCause.Reason to
Type.
2014-08-26 13:39:21 -04:00
Clayton Coleman
d326ba2976
Add a Causes array to status details for validation errors
...
Uses the same constant values as api/errors for each nested
reason.
2014-08-26 13:30:55 -04:00
Satnam Singh
3f0f119e42
Very minor change to use camelCase for ReasonType as suggested in issue #914 .
2014-08-25 16:57:13 -07:00
Dawn Chen
5a2365b323
Fix #926
...
Make HostPort a real option without being set to ContainerPort if absent.
2014-08-19 15:44:50 -07:00
Brendan Burns
05ab1e49fb
Address some follow up comments.
2014-08-18 12:49:52 -07:00
Brendan Burns
0caae9c1d4
Add a in container exec based health check.
2014-08-18 12:00:11 -07:00
Paul Morie
c69160059b
Change CreationTimestamp to a util.Time and set in each storage implementation
...
Because time.Time doesn't work correctly with our YAML package, it is necessary
to introduce a type, util.Time, which serializes correctly to JSON and YAML.
Eventually we would like timestamping to cut across storage implementations;
for now, we set it in each storage.
2014-08-14 16:26:29 -04:00
Nan Monnand Deng
41b0e5f34c
move go-dockerclient-copiedstructs to third_party/docker-api-structs
2014-08-13 14:49:03 -04:00
Daniel Smith
c372b74bc8
Merge pull request #847 from thockin/health
...
Use IntOrString for health checks
2014-08-11 16:28:24 -07:00
brendandburns
3222f61bca
Merge pull request #557 from lavalamp/podLocation
...
Prepare for external scheduler
2014-08-11 15:27:24 -07:00
Daniel Smith
b7752a86d4
Add debugging info printing to etcd fake
...
And make tests pass again.
2014-08-11 13:09:24 -07:00
Tim Hockin
c67c1edfb4
Use IntOrString for TCP health check ports
...
Clean up code to be more testable. Add test cases for named and numeric
ports in TCP health checks. Improve tests.
2014-08-10 23:44:42 -07:00
Tim Hockin
7201227cb1
Use IntOrString for HTTP health check ports
...
Clean up code to be more testable. Add test cases for named and numeric
ports in HTTP health checks. Improve tests.
2014-08-10 23:26:42 -07:00