Wojciech Tyczynski
9d943df397
Private EtcdHelper
2015-07-27 09:20:13 +02:00
nikhiljindal
1517b66001
Updating an error to apierror
2015-07-15 16:43:59 -07:00
Zach Loafman
9db58ff2b2
Merge pull request #10632 from nikhiljindal/revert-etcderrors
...
Revert "Merge pull request #10246 from nikhiljindal"
2015-07-01 13:06:18 -07:00
nikhiljindal
d82d5d11a7
Revert "Merge pull request #10246 from nikhiljindal"
...
This reverts commit a902a2f014
, reversing
changes made to 7df8d76a93
.
2015-07-01 11:07:18 -07:00
Jeff Lowdermilk
f0a36b0afd
Make UpgradeAwareProxyHandler use transport.Dial if provided
...
This change is required for the handler to work with sshtunnels.
Without it, `kubectl exec` and `kubectl port-forward` are broken
when an ssh proxy is used (see #9292 ). I manually verified this
fixes that issue, e2e test coming shortly.
2015-07-01 10:56:05 -07:00
Zach Loafman
df753b74ed
Merge pull request #10509 from nikhiljindal/getToPost
...
Support both GET and POST methods in api server for /exec and /portforward
2015-06-30 15:56:31 -07:00
nikhiljindal
4b7f7ce535
Dont return raw etcd errors
2015-06-29 16:18:46 -07:00
nikhiljindal
e0d48d4983
Support both GET and POST methods for /exec and /portforward
2015-06-29 16:01:01 -07:00
Alex Robinson
b758be0daf
Merge pull request #9047 from kazegusuri/allocator_test
...
add unit test for allocator
2015-06-29 14:11:48 -07:00
Alex Robinson
21f750fdc3
Merge pull request #10287 from wojtek-t/changes_to_registry
...
Remove some dead code
2015-06-29 11:02:41 -07:00
Robert Bailey
ed03973ae0
Merge pull request #10269 from nikhiljindal/eventsErrors
...
Returning api/errors from event/rest.go
2015-06-26 17:12:09 -07:00
nikhiljindal
7b56d89e80
Returning api/errors from event
2015-06-26 13:51:55 -07:00
Maxwell Forbes
712f303350
Merge pull request #9736 from sdminonne/bug_fix2
...
To add validation for service ports when defined as string
2015-06-25 19:37:04 -07:00
Maxwell Forbes
11f9fd1dcd
Merge pull request #10074 from nikhiljindal/retryUpdate
...
Allow update without resource version
2015-06-24 10:55:41 -07:00
Wojciech Tyczynski
f6153445f1
Remove dead code
2015-06-24 15:14:33 +02:00
nikhiljindal
221ae4d63b
Allow update without resource version
2015-06-23 00:16:08 -07:00
nikhiljindal
4e02aef87d
Updating the error message to say node instead of minion
2015-06-22 12:52:14 -07:00
Salvatore Dario Minonne
4b13faa346
To add validation for service ports when defined as string (fixing issue #9734 )
2015-06-22 17:21:51 +02:00
Satnam Singh
b964f3c911
Merge pull request #9739 from bprashanth/sno
...
Fix kubectl stop rc with sequence numbers
2015-06-19 15:30:26 -07:00
Prashanth Balasubramanian
9ed9bd1c4f
Add a generation number to the object meta of all objects, and status of rcs
2015-06-19 14:32:08 -07:00
Satnam Singh
d96a9a1c0a
Merge pull request #9862 from fgrzadkowski/bump_ectd_client
...
Bump ectd client and fix initializing IP/Port allocators when etcd is not reachable
2015-06-19 14:22:47 -07:00
Filip Grzadkowski
4c0c7dd879
Fix intializing IP/Port allocators when etcd is not reachable.
2015-06-19 21:20:52 +02:00
Satnam Singh
078e85cfdb
Merge pull request #10076 from caesarxuchao/pr/9966/head
...
based on #9966 : fix annoying 'please check...' messages; remove v1beta1&2 ref
2015-06-19 11:56:47 -07:00
Chao Xu
5673f73378
fix the left pre V1 field names in 290c4618c331f4f30a278af520121ff35
2015-06-18 18:44:55 -07:00
Saad Ali
b25de6e273
Merge pull request #9916 from caesarxuchao/streamer
...
remove string "v1beta1" from streamer_test.go
2015-06-17 11:33:34 -07:00
Chao Xu
271a63f486
remove string "v1beta1" from streamer_test.go
2015-06-16 17:10:58 -07:00
Saad Ali
a1e3e536c3
Merge pull request #9820 from thockin/dead-code
...
Remove dead code
2015-06-16 15:49:53 -07:00
Tim Hockin
29d4d7a16d
Remove dead code
2015-06-15 14:40:36 -07:00
jhadvig
ad36f5d2f1
Making error msg for updating resource version more clear
2015-06-15 17:05:08 +02:00
Abhi Shah
f5b6597492
Revert "Make error msg for updating resource version more clear"
2015-06-10 12:54:52 -07:00
Jakub Hadvig
90dcd347ac
Make error msg for updating resource version more clear
2015-06-10 14:03:06 +02:00
CJ Cullen
2d85e4a094
Use Node IP Address instead of Node.Name in minion.ResourceLocation.
...
Refactor GetNodeHostIP into pkg/util/node (instead of pkg/util to break import cycle).
Include internalIP in gce NodeAddresses.
2015-06-08 16:58:00 -07:00
Masahiro Sano
34849b4476
add unit test for allocator
2015-06-07 15:59:51 +09:00
Prashanth Balasubramanian
50eb9ad598
Use https only for the kubelet port
2015-06-05 14:06:38 -07:00
Prashanth Balasubramanian
b678e2ff9e
Nodes returns transport and scheme in spite of port requirements
2015-06-05 12:50:57 -07:00
Quinton Hoole
bc59e69ff0
Merge pull request #9159 from csrwng/remove_cors_headers
...
Remove CORS headers from pod proxy responses
2015-06-05 11:40:09 -07:00
Quinton Hoole
8b01ecb53a
Merge pull request #9024 from markturansky/recyc_controllers
...
PersistentVolumeRecycler controller
2015-06-05 11:39:08 -07:00
Cesar Wong
e8af67c180
Remove CORS headers from pod proxy responses
...
The API server sends its own CORS headers in its response, and if the
proxied pod response also includes its own headers, it confuses clients.
2015-06-04 16:49:04 -04:00
markturansky
2829fadfad
PV Recycling API
2015-06-04 15:39:34 -04:00
Chao Xu
854b8034ab
use testapi.Codec() in etcd_test.go
2015-06-04 10:23:15 -07:00
derekwaynecarr
14d2128238
Fix namespace controller on delete to not care if item not found
2015-06-03 22:59:07 -04:00
Brian Grant
f72fa67924
Revert "Use Node IP Address instead of Node.Name in minion.ResourceLocation."
2015-06-03 18:19:22 -07:00
Brian Grant
d4acb1d676
Merge pull request #9155 from cjcullen/mig
...
Use Node IP Address instead of Node.Name in minion.ResourceLocation.
2015-06-02 22:51:20 -07:00
CJ Cullen
4e5d0da839
Use Node IP Address instead of Node.Name in minion.ResourceLocation.
...
Refactor GetNodeHostIP into pkg/util/node (instead of pkg/util to break import cycle).
Include internalIP in gce NodeAddresses. Remove NodeLegacyHostIP
2015-06-02 20:01:49 -07:00
Brian Grant
5115f0e6bc
Merge pull request #8888 from smarterclayton/add_new_allocators
...
Add a new contiguous allocator strategy option
2015-06-02 19:54:44 -07:00
Filip Grzadkowski
98115facfd
Revert "Gracefully delete pods from the Kubelet"
2015-06-02 23:40:05 +02:00
Clayton Coleman
e89d551817
Add a new contiguous allocator strategy option
...
Also fix an error in port allocator
2015-06-01 19:59:17 -04:00
Clayton Coleman
72ee028cab
Gracefully delete pods from the Kubelet
...
This commit wires together the graceful delete option for pods
on the Kubelet. When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default. The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.
When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker. When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00
Rohit Jnagal
0cbd4beb63
Merge pull request #8886 from csrwng/fix_proxy_url_slash
...
Fix proxying of URLs that end in "/" in the pod proxy subresource
2015-05-29 16:28:41 -07:00
Rohit Jnagal
51750a4680
Merge pull request #8724 from smarterclayton/preserve_ttl
...
TTL is not preserved automatically during edit
2015-05-29 11:12:00 -07:00
Filip Grzadkowski
ce7a3ea34d
Merge pull request #8916 from fgrzadkowski/limit_tracing
...
Improve tracing information in apiserver
2015-05-29 01:29:34 -07:00
Clayton Coleman
2b8e918ed9
TTL is not preserved automatically during edit
...
Change the signature of GuaranteedUpdate so that TTL can
be more easily preserved. Allow a simpler (no ttl) and
more complex (response and node directly available, set ttl)
path for GuaranteedUpdate. Add some tests to ensure this
doesn't blow up again.
2015-05-28 19:58:17 -04:00
Tim Hockin
4318ca5a8b
Rename 'portal IP' to 'cluster IP' most everywhere
...
This covers obvious transforms, but not --portal_net, $PORTAL_NET and
similar.
2015-05-28 16:10:44 -07:00
Chao Xu
9c1153322e
update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go
2015-05-28 14:10:06 -07:00
Filip Grzadkowski
eb14b68a9c
Improve tracing information by deleting traces from etcd cache and adding information to traces from generic registry.
2015-05-28 16:34:35 +02:00
Wojciech Tyczynski
33318f0162
Use generated DeepCopy methods.
2015-05-28 09:03:27 +02:00
Cesar Wong
684dcd4307
Fix proxying of URLs that end in "/" in the pod proxy subresource
...
Also handles proxying of URLs that have an empty path and don't end in a slash "/" by redirecting to the same location with a slash appended.
2015-05-27 22:12:55 -04:00
Filip Grzadkowski
967b1b95ba
Add very simple tracing mechanism for easier debugging of slow requests.
2015-05-26 16:17:18 +02:00
Justin Santa Barbara
bb697cee7e
Clear LoadBalancerStatus both on LB delete and on update in the API
...
Although it takes some time to destroy a load balancer, we hide this complexity
from the user.
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
7346cc8042
Add ServiceType = NodePort; wire everything up
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
03cdc077c3
Wire up the portallocator to service NodePorts
...
We still don't actually enable this though!
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
3bb2fe2425
Create port allocator, based on IP allocator mechanism
...
Including some refactoring of IP allocator
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
973c2e4819
Add Type to ServiceSpec: ClusterIP or LoadBalancer
2015-05-22 19:14:21 -04:00
Dawn Chen
ad47b2d29d
Merge pull request #8483 from liggitt/etcd_test
...
Update generic etcd tests for cluster-scoped objects
2015-05-21 09:13:44 -07:00
Jordan Liggitt
a6401fa433
Update generic etcd tests for cluster-scoped objects
2015-05-18 23:17:51 -04: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
Daniel Smith
c27999da07
Merge pull request #7966 from deads2k/add-dockercfg-secrets
...
add dockercfg secret types
2015-05-18 11:24:02 -07:00
deads2k
d404a17f0a
allow leading dots in secret keys
2015-05-18 08:17:58 -04:00
Jordan Liggitt
a2d6dd0467
Pass correct update flag to TTLFunc
2015-05-17 00:42:30 -04:00
Wojciech Tyczynski
e1d9694558
Remove gob
2015-05-15 13:44:37 +02:00
Rohit Jnagal
532f6fdcef
Merge pull request #7955 from hurf/refactor_scheduler
...
Move pkg/scheduler to plugin/pkg/scheduler
2015-05-14 10:28:52 -07:00
markturansky
0191574f7e
Bi-directional bind between pv.Spec.ClaimRef and pvc.Spec.VolumeName
2015-05-13 14:05:21 -04:00
hurf
6203ce9f85
Move pkg/scheduler to plugin/pkg/scheduler
...
As the TODO in plugin/pkg/scheduler/scheduler.go described:
move everything from pkg/scheduler into this package. Remove
references from registry.
2015-05-13 14:03:25 +08:00
Quinton Hoole
2f2816368f
Merge pull request #8062 from smarterclayton/fix_service_flake
...
ServiceIP allocation test is flaky
2015-05-12 11:18:47 -07:00
Nikhil Jindal
d75bd8bf2a
Merge pull request #7101 from liggitt/service_account
...
ServiceAccounts
2015-05-12 10:23:41 -07: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
53d55f4192
Add ServiceAccount API type, client
2015-05-11 17:18:05 -04:00
Dawn Chen
86479cc56c
Add support to pull log for last terminated container
2015-05-11 12:54:04 -07:00
Clayton Coleman
6ba6af2d1c
ServiceIP allocation test is flaky
...
Choose a possible IP out of a list, instead of assuming it
can't be chosen randomly.
2015-05-11 13:05:56 -04: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
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
Clayton Coleman
6e031ae01a
Merge pull request #7780 from derekwaynecarr/incorrect_error
...
Throw an API error when deleting namespace in termination
2015-05-05 15:17:46 -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
derekwaynecarr
d6a4b2427a
Throw an API error when deleting namespace in termination
2015-05-05 12:49:51 -04: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
Jordan Liggitt
ac67fff1cf
Convert Secret registry to use update/create strategy, allow filtering by Type
2015-04-28 15:00:20 -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
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
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
Deyuan Deng
c73ce1db34
Validate Node IPs; clean up validation code
2015-04-23 21:08:18 -04:00
Daniel Smith
2fa3ae9f15
fix watch of single object
2015-04-23 16:02:22 -07: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
cf523a23d0
Merge pull request #6985 from csrwng/fix_pod_log_location
...
Use Pod.Spec.Host instead of Pod.Status.HostIP for pod subresources
2015-04-21 12:58:47 -07:00
Piotr Szczesniak
27daa29753
Merge pull request #7073 from lavalamp/fix4
...
move port splitting to common place; add to node resource location
2015-04-21 16:10:40 +02: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
Daniel Smith
9f89043d8b
Merge pull request #6989 from kazegusuri/update_node_label
...
use Watch for single object instead of WatchList
2015-04-20 17:28:23 -07:00
Fabio Yeon
81ef0198f4
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 17:28:13 -07:00
Masahiro Sano
f90dc8f413
use Watch for single object instead of WatchList
2015-04-21 08:00:52 +09:00
Kris Rousey
594f514843
Changing a few remaining instances of passing pods around by value. I
...
avoided changing api.PodList.Items to []*api.Pod.
2015-04-20 15:26:45 -07:00
Daniel Smith
27ee6ea0de
move port splitting to common place; add to node resource location
2015-04-20 14:31:44 -07:00
Fabio Yeon
951a125751
Add "componentstatus" to API for easier cluster health check.
2015-04-17 11:58:23 -07:00
Cesar Wong
2adaf104fa
Use Pod.Spec.Host instead of Pod.Status.HostIP for pod subresources
...
The Spec.Host is set when binding a pod to a node and will contain the
canonical host name of the node. The Status.HostIP may not be included
in the node's server TLS certificate.
2015-04-17 11:40:00 -04:00
Cesar Wong
d672363387
Pod proxy, exec and portforward subresources
...
Makes it possible to access the following subresources:
/namespaces/<ns>/pods/<pod-name>[:port]/proxy
/namespaces/<ns>/pods/<pod-name>/exec?container=<container>&command=<cmd>
/namespaces/<ns>/pods/<pod-name>/portforward
2015-04-16 10:20:17 -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
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
Wojciech Tyczynski
afb94c43b1
Fix listing nodes in scheduler
2015-04-15 14:26:25 +02:00
Wojciech Tyczynski
6feaf8ee4f
Support List() single-matchers
2015-04-15 12:10:43 +02:00
Wojciech Tyczynski
d7a1965fd9
Merge pull request #6746 from davidopp/master
...
Clarify comments describing how GuaranteedUpdate() (previously AtomicUpd...
2015-04-15 08:13:44 +02:00
David Oppenheimer
6b28a69a1b
Clarify comments describing how GuaranteedUpdate() (previously AtomicUpdate() works. Closes #6626 .
2015-04-14 15:38:15 -07:00
Alex Robinson
9a351e3670
Move validation of load balancers only supporting TCP ports to validation.go.
2015-04-14 18:56:51 +00:00
Alex Robinson
2b14fc1d14
Remove the cloud provider field from the services REST handler and the master
...
now that load balancers are handled by the ServiceController.
2015-04-14 18:56:47 +00:00
Alex Robinson
ccc300289f
Implement a ServiceController that watches services and handles keeping
...
external load balancers up-to-date based on the service's specs, using
the new DeltaFIFO watch queue class. Remove the old registry REST
handler code for creating/updating/deleting load balancers.
Also clean up a bunch of the GCE cloudprovider code related to load balancers.
2015-04-14 18:56:24 +00: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
Wojciech Tyczynski
59ab41c8f7
Merge pull request #6292 from jszczepkowski/scale-pool
...
Updating target pools on cloud nodes change.
2015-04-13 10:58:49 +02: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
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
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
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
derekwaynecarr
8364055f0f
Improve validation and fix not throwing an error during ns delete
2015-04-10 11:41:28 -04:00
Jerzy Szczepkowski
eb253a694e
Updating target pools on cloud nodes change.
...
Implemented updating target pools for external services on chage of cloud nodes. Related to #5241 .
2015-04-10 16:06:56 +02: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
Daniel Smith
629d94657e
Merge pull request #6624 from gmarek/status_to_subresource
...
Update NodeStatus use subresources.
2015-04-09 16:00:15 -07:00
Daniel Smith
6a86608634
Merge pull request #6625 from wojtek-t/list_minions_supports_labels
...
ListMinions support for selectors
2015-04-09 10:30:08 -07:00
Wojciech Tyczynski
0e5b478b4d
ListMinions support for selectors
2015-04-09 14:22:09 +02:00
gmarek
ccc56d3c3c
Update NodeStatus use subresources.
2015-04-09 14:07:40 +02:00
Brendan Burns
5d4f1cf8da
Add Validate in addition to ValidateUpdate to validation for most resources.
2015-04-08 20:15:49 -07:00
Clayton Coleman
51db3bd654
Create a new testclient package that can be backed by disk files
...
Standardize how our fakes are used so that a test case can use a
simpler mechanism for providing large, complex data sets, as well
as represent queries over time.
2015-04-07 14:56:15 -04:00
Derek Carr
27c12d5160
Merge pull request #6473 from markturansky/yoko_pv_client
...
Added PVClaim status subresource
2015-04-07 11:39:58 -04:00
Cesar Wong
8df4758ee9
Pod log subresource
...
Adds a Log subresource to Pod storage. The Log subresource implements
rest.GetterWithOptions and produces a ResourceStreamer resource that
will stream the log output from the pod's host node.
2015-04-07 07:56:24 -04:00
Cesar Wong
58a1b308c1
Refactor storage return for pod etcd storage
...
Convert the return value of pods rest.NewStorage to a struct.
This will allow returning more storage objects for a pod (sub resources)
without awkwardly adding more return values.
2015-04-07 07:46:30 -04:00
markturansky
4e528a847a
added PVClaim status subresource
2015-04-06 14:42:22 -04:00
markturansky
ff86ae0705
Fixed RESTCreate/Update interface methods
2015-04-06 08:46:44 -04:00
markturansky
69d1d235cd
Rebased and updated
2015-04-06 08:46:44 -04:00
markturansky
95bd170ca2
PV & PVC Client implementation
2015-04-06 08:46:43 -04:00
Daniel Smith
34b399ca02
Fix incorrect reference to name in v1beta3 API.
2015-04-03 14:10:47 -07:00
Daniel Smith
0c2d3ffe68
Single-key matching behavior in generic.Matcher
2015-04-03 13:11:21 -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
dec3209229
Merge pull request #6246 from derekwaynecarr/finalize_fix
...
Fix Namespace Termination
2015-04-01 17:34:56 -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
Tim Hockin
186818d787
WIP: Implement multi-port Services
2015-03-30 19:28:11 -07: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
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
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
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
Prashanth Balasubramanian
b0068d05f8
Add the ability to watch fields of an rc
2015-03-26 11:01:56 -07:00
gmarek
5a11748018
Move Capacity from NodeSpec to NodeStatus
2015-03-26 15:28:48 +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
Derek Carr
bf14cbf682
Merge pull request #5930 from markturansky/fix_quota_registry_names
...
Changed arg names from 'pod' to 'resourceQuota'
2015-03-25 15:03:41 -04:00
Masahiro Sano
c49af0b7cb
port minion registry to generic etcd
2015-03-26 02:44:35 +09:00
markturansky
89a17a410c
changed arg names from 'pod' to 'resourceQuota'
2015-03-25 13:23:31 -04:00
Saad Ali
1f50bd226b
Merge pull request #5854 from fgrzadkowski/delete_pod_cache
...
Delete pod_cache and rely on updating pod status by kublet.
2015-03-25 09:17:09 -07:00
Filip Grzadkowski
74da3b14b0
Delete pod_cache and rely on updating pod status by kublet.
2015-03-25 15:08:09 +01:00
Masahiro Sano
410e11c305
port endpoints to generic etcd
2015-03-25 22:15:19 +09: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
Jordan Liggitt
a75b501821
Improve ResourceLocation API, allow proxy to use authenticated transport
2015-03-24 11:11:34 -04:00
derekwaynecarr
84c9709299
Increase controller sync time for namespace cleanup
2015-03-24 10:44:34 -04:00
derekwaynecarr
29c491ef2e
Namespace.Spec.Finalizer support
2015-03-24 10:36:06 -04:00
Prashanth Balasubramanian
ef6601646d
Migrate replication controllers to generic etcd
2015-03-23 17:59:25 -07:00
Clayton Coleman
9bb797fe93
Rename NewREST -> NewStorage to align on terminology
2015-03-23 16:52:21 -04:00
Clayton Coleman
5a3f0adbcc
Remove older names
2015-03-23 16:52:21 -04: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
Clayton Coleman
65425f690c
Move field errors to pkg/util/fielderrors
...
Allows pkg/api to take a reference to labels.Selector and fields.Selector
2015-03-22 17:43:34 -04:00
Saad Ali
f57540c7a0
Merge pull request #5532 from nikhiljindal/event
...
Adding GetFieldSelector() to client.EventInterface
2015-03-20 15:05:14 -07:00
nikhiljindal
1b87060aec
Adding GetFieldSelector() to client.EventInterface
2015-03-20 13:58:23 -07:00
Abhishek Gupta
b0c23c1046
Headless Services: Adding option to specify None for PortalIP
2015-03-20 12:10:03 -07:00
Clayton Coleman
428d2263e5
Graceful deletion of resources
...
This commit adds support to core resources to enable deferred deletion
of resources. Clients may optionally specify a time period after which
resources must be deleted via an object sent with their DELETE. That
object may define an optional grace period in seconds, or allow the
default "preferred" value for a resource to be used. Once the object
is marked as pending deletion, the deletionTimestamp field will be set
and an etcd TTL will be in place.
Clients should assume resources that have deletionTimestamp set will
be deleted at some point in the future. Other changes will come later
to enable graceful deletion on a per resource basis.
2015-03-19 15:33:32 -04:00
Prashanth Balasubramanian
960e16c397
Embed etcdgeneric in RESTStorage for pods
2015-03-18 16:31:33 -07:00
gmarek
a3b137ce8e
Cleanup of validation.go
2015-03-18 08:59:35 +01:00
Brian Grant
407589147e
Merge pull request #5005 from jdef/persistent_bindings
...
Persist Bindings annotations alongside pod Host assignment
2015-03-16 16:16:44 -07:00
Clayton Coleman
bddef32193
Prepare EtcdHelper to extract more data from Node
...
In order to support graceful deletion, the resource object will
need access to the TTL value in etcd. Also, in the future we
may want to get the creation index (distinct from modifiedindex)
and expose it to clients. Change EtcdResourceVersioner to be
more type specific (objects vs lists) and provide a default
implementation that relies on the internal API convention.
Also, rename etcd_tools.go to etcd_helper.go and split a few
things up.
2015-03-16 15:33:50 -04:00
Clayton Coleman
4ca90e0343
FakeEtcdClient should return KeyNotFound on Delete
2015-03-16 14:22:03 -04:00
Clayton Coleman
143015025a
Support TTL in genericetcd#Update
2015-03-16 14:22:01 -04:00
Jeff Lowdermilk
e37fd2a84d
Merge pull request #5477 from dchen1107/clean
...
Convert RestartPolicy to string for v1beta3.
2015-03-16 10:23:52 -07:00
derekwaynecarr
9824d2b5f7
Embed generic etcd in namespace rest store
2015-03-16 10:45:04 -04:00
derekwaynecarr
2d13dfaf13
Improvements to namespace registry to align with pod model
2015-03-16 10:16:28 -04:00
Dawn Chen
34e9c82c70
Convert RestartPolicy to string for v1beta3.
...
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Eric Tune
e214802e45
Merge pull request #5460 from derekwaynecarr/eliminate_resource_quota_usage
...
Eliminate resource quota usage
2015-03-13 16:10:26 -07:00
Daniel Smith
b02412f44e
Merge pull request #5443 from bprashanth/rc_validation
...
Add an rc strategy, start delta validating updates
2015-03-13 13:52:19 -07:00
derekwaynecarr
799e3fa9cc
Eliminate ResourceQuotaUsage in favor of ResourceQuota status
2015-03-13 16:52:09 -04:00
Prashanth Balasubramanian
6193608e9b
Add an rc strategy, start delta validating updates
2015-03-13 13:09:03 -07:00
Brendan Burns
cf68593fc2
Merge pull request #5228 from justinsb/aws_lb_string
...
Change cloud provider CreateTCPLoadBalancer to return endpoint as string
2015-03-13 12:16:26 -07:00
James DeFelice
20eb3c49c5
resolves #4103
...
clarify resource conflict status, rebase to master
remove ResourceConflict, replace usage with Conflict
2015-03-13 12:16:51 +00:00
Jerzy Szczepkowski
ba9d02c0c7
Cleanup: removed BoundPodFactory.
...
Removed unused code: BoundPodFactory. Fixes #5384 .
2015-03-13 10:44:25 +01:00
Ravi Sankar Penta
f6ecec5880
Allow admin user to explicitly unschedule the node
...
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
Brian Grant
19b6c85fa5
Merge pull request #5363 from wojtek-t/no_bound_pods_in_scheduler
...
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 10:57:03 -07:00
Wojciech Tyczynski
9f2f10d6db
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 13:38:58 +01:00
Yu-Ju Hong
533299bf0a
Copy Spec.Host to Status.Host on pod creation
2015-03-11 21:53:51 -07:00
Eric Tune
e9b6c75b6a
Stop updating boundPods objects.
...
Does not clean up your existing boundPods records.
Does not clean up all the dead code. Future PRs from me
will do that.
2015-03-11 16:06:03 -07:00
Prashanth Balasubramanian
28d9260c0b
Sync replication count with the api server on pod creation/deletion.
2015-03-11 13:29:20 -07:00
Brian Grant
1a75c8843c
Merge pull request #5256 from jszczepkowski/podspec-host
...
Implemented writing Host in Pod.Spec during binding.
2015-03-11 11:30:45 -07:00
Jerzy Szczepkowski
9a6857cf2c
Fixed writing Host in Pod.Spec during binding.
...
Fixed writing Host in Pod.Spec during binding. Related to #5207 .
2015-03-11 14:48:10 +01:00
Eric Tune
5e8d70f76b
Remove HostPort conflict checking.
...
We decided to get rid of boundPods. Removing this check is
a prerequisite for that. This check had some value before we had
IP-per-Pod. However, AIUI, use of HostPort is strongly discouraged
in Kubernetes. It still exists as part of a Pod spec because
of ContainerVM, where it is used. But, this change does not affect
ContainerVM, where there is no master.
If someone did create pods with HostPort using kubernetes, the following
would happen:
- The scheduler would try not to put two conflicting pods on the same
machine (pkg/scheduler/predicates.go : PodFitsPorts() )
- I'm not sure if it is currently possible for a race to occur where
the PodFitsPorts check were bypassed. Maybe it could happen.
- If the kubelet was sent conflicting pods, it would detect them in
( pkg/kubelet/kubelet.go : filterHostPortConflicts() ). It would
arbitrarily pick one pod to run and another to ignore.
- If all of the above happened and the user filed and issue on github,
we might figure out that the user used HostPort and tell the user to stop.
TODO:
- e2e test
- Several of the demos in examples/ use hostPort. Change them to
not specify hostPort and have a service instead.
2015-03-10 22:46:30 -07:00
Salvatore Dario Minonne
925fa6baf8
Adding fields selector
2015-03-10 22:13:10 +01:00
Brian Grant
6062e14313
Merge pull request #5220 from nikhiljindal/camelCaseFieldSelectors
...
Changing v1beta3 field selectors to be camelCased
2015-03-10 09:35:03 -07:00
Justin Santa Barbara
5d36d3cdbe
Change cloud provider CreateTCPLoadBalancer to return endpoint as string
...
Some load balancers (particularly AWS ELB) define the public endpoint
as a hostname (instead of using IP addresses).
This is a partial fix for #5224 ; there will also be some proxy work.
2015-03-09 20:35:13 -07:00
nikhiljindal
916ca9cc68
Changing v1beta3 field selectors to be camelCased
2015-03-09 18:01:01 -07:00
Brian Grant
7b72d9539f
Merge pull request #5054 from smarterclayton/switch_to_sub_bindings
...
Make Pod binding a subresource (and be generic to other types)
2015-03-09 16:41:26 -07:00
Alex Mohr
37bfb0d7cf
Merge pull request #5159 from brendandburns/coverage
...
Expand test coverage in master.
2015-03-09 13:26:37 -07:00
Clayton Coleman
dfc19185f5
Add a subbindings resource as /pods/{name}/binding
...
Allows POST to create a binding as a child. Also refactors internal
and v1beta3 Binding to be more generic (so that other resources can
support Bindings).
2015-03-09 15:37:19 -04:00
James DeFelice
bf02d17244
rebased to master
2015-03-09 14:08:11 +00:00
James DeFelice
4943fe937b
implemented nil err checks, cc @yujuhong @davidopp
2015-03-09 14:06:27 +00:00
James DeFelice
e5350d61a8
added comment suggested by @davidopp
2015-03-09 14:06:27 +00:00
James DeFelice
436790ccd1
add unit test for #4757
...
fixed compilation error
2015-03-09 14:06:27 +00:00
Brendan Burns
7c654a3d1b
Expand test coverage in master, kubectl/cmd/util, pkg/registry/resourcequota, and api/rest.
2015-03-07 15:24:39 -08:00
Brendan Burns
5b6a78fc77
Place external load balancers in a namespace, and add a test to validate the behavior.
2015-03-06 17:16:27 +01:00
Brendan Burns
2700871b04
Merge pull request #5013 from smarterclayton/misc_fixup
...
Small cleanups to a number of client behaviors
2015-03-06 15:41:34 +01:00
Daniel Smith
3ef3777192
Make unexported fields panic (informatively)
...
...Also fix some incorrect calls to semantic.DeepEqual, and a bug where
it returned true incorrectly.
2015-03-05 21:40:37 -08:00
Salvatore Dario Minonne
75f2efb500
moving ParseSelector to Parse for labels only.
2015-03-05 22:39:36 +01:00
Brian Grant
9fcb48cab6
Merge pull request #4434 from ddysher/node-hostip
...
Node addresses
2015-03-05 10:33:15 -08:00
Daniel Smith
4cd59e629a
Merge pull request #5010 from smarterclayton/update_resource_version
...
genericetcd.Etcd should test resourceVersion
2015-03-04 14:49:05 -08:00
Deyuan Deng
9b0af8df63
Node addresses
2015-03-04 16:47:31 -05:00
Mike Danese
5cbf89c060
plumb through changes on ReplicationController and Service
2015-03-04 10:38:42 -08:00
Mike Danese
e1ca63f569
SetObj and CreateObj optionally accept an object to fill with the result of the get
2015-03-04 10:38:42 -08:00
Clayton Coleman
a52b0f2619
Switch List/Watch to ListPredicate/WatchPredicate
2015-03-04 10:48:05 -05:00
Clayton Coleman
3d52aac13c
genericetcd.Etcd should test resourceVersion
...
Also fix that Update was returning AlreadyExists instead of
NotFound (when create is disabled) and that Update when CreateOnUpdate
was true was not populating the returned object.
Added more tests
2015-03-03 19:54:43 -05:00
Brian Grant
fca9fd68c7
Merge pull request #4779 from smarterclayton/status_endpoints
...
Minimal status mutation change
2015-03-03 11:00:02 -08:00
Daniel Smith
c4822dc060
Revert "Revert "Adding converter functions to convert field label selectors to internal version before matching""
...
This reverts commit 5f35a67002
.
2015-03-02 15:00:09 -08:00
Brendan Burns
fe973461f5
Merge pull request #4916 from thockin/plural_21_endpoints
...
Rename type Port to ContainerPort
2015-03-02 10:53:32 -08:00
Clayton Coleman
3d290089ae
Minimal status mutation change
...
PUT /api/v1beta3/namespaces/default/pods/foo/status
{
"metadata": {...}, // allowed for valid values
"spec": {}, // ignored
"status": {...}, // allowed, except for Host
}
Exposes the simplest possibly change. Needs a slight refactoring
to RESTUpdateStrategy to split merging which can be done in a
follow up.
2015-03-01 22:35:17 -05:00
Zach Loafman
5f35a67002
Revert "Adding converter functions to convert field label selectors to internal version before matching"
2015-02-28 11:42:49 -08:00
Tim Hockin
ea548b8260
Rename type Port to ContainerPort
...
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Daniel Smith
d68c738fcf
Merge pull request #4575 from nikhiljindal/versionedFieldSelector
...
Adding converter functions to convert field label selectors to internal version before matching
2015-02-27 16:33:15 -08:00
nikhiljindal
48e7945f65
Versioning the field selectors
2015-02-27 16:10:59 -08:00
Lénaïc Huard
cd719d97df
Fix `kubernetes` and `kubernetes-ro` services creation
...
If `kube-apiserver` is started before `etcd` is reachable, `kube-apiserver`
fails to create those services.
However, in the `Create` function, an IP has already been reserved for them.
When `etcd` comes back, the `Create` function fails because it considers that
the IP is already used.
If the service couldn't be created, the reserved IP should be released.
2015-02-27 18:01:03 +01:00
Satnam Singh
19b927ea57
Name a cluster and use it to make forwarding rules for GCE
2015-02-23 17:04:33 -08:00
Daniel Smith
650f6cb826
Revert "Multi-port Endpoints"
2015-02-23 13:53:21 -08:00
Tim Hockin
160f288832
Implement multi-port Endpoints
...
This is a part of multi-port services.
2015-02-22 09:35:12 -08:00
Tim Hockin
e0fd83096c
Rename type Port to ContainerPort
...
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-21 22:26:38 -08:00
Tim Hockin
ae0062d001
Part 2 of plural ports: make endpoints a struct
...
Includes conversions for v1b[12] and tests and fixups for call sites.
2015-02-18 19:54:15 -08:00
Tim Hockin
34eaa0dbd6
Part 1 of plural ports: Add protocol to Endpoints
...
This makes it easier to make the second step, which is moving endpoints
to a struct instead of a string.
2015-02-18 18:58:04 -08:00
Paul Morie
a131a5e491
Add test for secret RESTStorage
2015-02-18 13:02:22 -05:00
Paul Morie
fb001ada21
Secret API resource
2015-02-18 11:54:56 -05:00
Tim Hockin
876b0c4619
Merge pull request #4484 from jszczepkowski/load-balancer
...
Update for external load balancer.
2015-02-17 17:04:08 -08:00
Paul Weil
8d7d03a2f8
service NewList should return ServiceList
2015-02-17 16:30:29 -05:00
Jerzy Szczepkowski
397c1fc69a
Update for external load balancer.
...
Implementation of updating external load balancer on service update. This partially fixes #4411 .
2015-02-17 21:49:36 +01:00
Yu-Ju Hong
9e72ec023b
Remove obsolete defaulting in service/rest.go
2015-02-17 10:34:50 -08:00
Clayton Coleman
72da3b4424
Move rest.Pods to pkg/registry/pod/rest.go
2015-02-16 10:09:28 -05:00
Clayton Coleman
7a93af57c0
Remove pods from pkg/registry/etcd/etcd.go since they are in their own type
...
Altered the master initialization code
2015-02-16 10:09:27 -05:00
Clayton Coleman
247e467217
Collapse pod REST+Registry to a single object using generic/etcd
2015-02-16 10:09:27 -05:00
Clayton Coleman
8440310ea0
Adapt to changes to generic etcd/registry
2015-02-13 13:11:33 -05:00
Clayton Coleman
23d199ded9
Make generic etcd more powerful and return operations from etcd
...
When we complete an operation, etcd usually provides a response
object. Return that object up instead of querying etcd twice.
2015-02-13 13:11:33 -05:00
Saad Ali
3bc8f4e793
Merge pull request #4359 from erictune/no_bound_pod_envs
...
Stop putting env vars into BoundPods.
2015-02-12 09:12:19 -08:00
Clayton Coleman
b2d50ce1cc
Merge pull request #4329 from smarterclayton/bindings_incorrectly_removed
...
Bindings were not correctly removed across namespaces on pod update and delete
2015-02-12 11:43:22 -05:00
Eric Tune
5b4569697f
Stop putting env vars into BoundPods.
...
They will still show up in etcd. They never were available
through the API.
A subsequent PR(s) will rip out all BoundPods code.
Working in small increments.
This PR will cause users on lagging cloud providers
to not get env vars in their pods if they update to this code.
They have already been warned via email.
Removed unit tests of BasicBoundPodFactory.
There is adequate coverage in pkg/kubelet/kubelet_test.go.
2015-02-12 08:37:23 -08:00
Clayton Coleman
7d43971614
Merge pull request #4326 from yujuhong/phantom_pods
...
Allow AtomicUpdate() to surface the error when the key doesn't exist
2015-02-12 10:19:09 -05:00
Yu-Ju Hong
6813683ee2
Allow AtomicUpdate() to surface the error when the key doesn't exist
...
In some cases, when the key doesn't exist, AtomicUpdate should simply fail and
surface the error. This change adds a new function parameter "ignoreNotFound"
for this purpose.
2015-02-11 21:56:28 -08:00
Clayton Coleman
26f08b7807
RESTStorage should not need to know about async behavior
...
Also make sure all POST operations return 201 by default.
Removes the remainder of the asych logic in RESTStorage and
leaves it up to the API server to expose that behavior.
2015-02-11 16:26:08 -05:00
Clayton Coleman
6f85b655cc
Bindings were not correctly removed across namespaces on pod update and delete
...
BoundPods must be checked for Name and Namespace equality, not just name
equality. In the future, we should also check for UID equality.
2015-02-11 14:35:28 -05:00
derekwaynecarr
0bd0e12bbc
Add support for Namespace as Kind
...
Add example for using namespaces
2015-02-10 09:50:50 -05:00
derekwaynecarr
151be7773c
Rename api.Namespace to api.NamespaceValue to avoid name collision
2015-02-10 09:44:29 -05:00
Brendan Burns
783e1de5bb
Add some locking to prevent go data race logic from tripping.
2015-02-05 17:27:58 -08:00
Brendan Burns
b08bd8671f
Merge pull request #4157 from saad-ali/updateEventApi
...
Add "Update Event" to Kubernetes API
2015-02-05 14:50:48 -08:00
Tim Hockin
a20fb598bc
Merge pull request #4132 from jszczepkowski/master
...
Improve "constraint violation" error message.
2015-02-05 13:43:29 -08:00
Jerzy Szczepkowski
18c5fa1ae7
Applied comments.
2015-02-05 20:32:51 +01:00
Brian Grant
50b1034b6c
Merge pull request #4122 from pmorie/comment
...
Clarify commenting in endpoints_controller
2015-02-05 07:09:56 -08:00
saadali
a41f520bf0
Add "Update Event" to Kubernetes API
2015-02-05 00:07:51 -08:00
Jerzy Szczepkowski
ad4c2ee630
Improve "constraint violation" error message.
2015-02-05 00:29:28 +01:00
Paul Morie
3229a634a0
Clarify commenting in endpoints_controller
2015-02-04 15:14:05 -05:00
Brian Grant
3f28badae3
Merge pull request #3854 from yujuhong/defaults
...
Migrate API defaulting to a centralized location
2015-02-04 11:41:23 -08:00
Tim Hockin
411666decb
Get rid of ServiceSpec.ProxyPort
...
As far as I know, nobody uses it. It was replaced by PublicIPs. If I were
being very polite I would leave it in internal, but since I am 99.99% sure
nobody uses it, I am cutting it. Let's argue about it.
2015-02-03 22:45:00 -08:00
Yu-Ju Hong
4a72addaeb
Factor out API defaulting from validation logic
...
Currently, the validation logic validates fields in an object and supply default
values wherever applies. This change factors out defaulting to a set of
defaulting callback functions for decoding (see #1502 for more discussion).
* This change is based on pull request 2587.
* Most defaulting has been migrated to defaults.go where the defaulting
functions are added.
* validation_test.go and converter_test.go have been adapted to not testing the
default values.
* Fixed all tests with that create invalid objects with the absence of
defaulting logic.
2015-02-03 00:55:42 -08:00
Clayton Coleman
1588970ec4
Turn 409 into 500 Try Again Later when using generateName
...
If a client says they want the name to be generated, a 409 is
not appropriate (since they didn't specify a name). Instead, we
should return the next most appropriate error, which is a 5xx
error indicating the request failed but the client *should* try
again. Since there is no 5xx error that exactly fits this purpose,
use 500 with StatusReasonTryAgainLater set.
This commit does not implement client retry on TryAgainLater, but
clients should retry up to a certain number of times.
2015-02-02 14:46:25 -05:00
Clayton Coleman
e485dc93ca
Minions should have common logic with create
...
TODO: disable / document generate names for cluster scoped resources.
2015-02-02 14:46:25 -05:00
Clayton Coleman
0a87f0332b
Add name generation to services
2015-02-02 14:46:25 -05:00
Clayton Coleman
5603714df8
Use name generation on pods via replication controllers
...
The generated name is '<controllerName>-%s', unless controllerName-
would be long enough to cause a validation error.
2015-02-02 14:44:53 -05:00
Clayton Coleman
a7c9a12286
Add name generation and normalize common create flows
...
Adds `ObjectMeta.GenerateName`, an optional string field that defines
name generation behavior if a Name is not provided.
Adds `pkg/api/rest`, which defines the default Kubernetes API pattern
for creation (and will cover update as well). Will allow registries
and REST objects to be merged by moving logic on api out of those places.
Add `pkg/api/rest/resttest`, which will be the test suite that verifies
a RESTStorage object follows the Kubernetes API conventions and begin
reducing our duplicated tests.
2015-02-02 14:44:53 -05:00
saadali
e83fd7b8e7
Make master service IP static (no longer randomly assigned)
2015-01-30 16:07:19 -08:00
Deyuan Deng
662bcb9c3d
Fix node hostip issue
2015-01-30 14:23:18 -05:00
Deyuan Deng
c793c4f0ab
Sync node status from node controller to master.
2015-01-29 23:17:15 -05:00
Brian Grant
0345211e0c
Merge pull request #3921 from nikhiljindal/OperationClean
...
Some more operations code cleanup
2015-01-29 14:54:05 -08:00
Tim Hockin
d01ea11a6e
Merge pull request #3856 from smarterclayton/validation_logic_needs_cleanup
...
Validation of ObjectMeta is inconsistently applied
2015-01-29 14:12:44 -08:00
Brendan Burns
2d4e72f1fa
Add some extra checking around a call to list pods.
2015-01-28 22:22:54 -08:00
nikhiljindal
dc92d3c7a2
Cleaning up the operations code in client
2015-01-28 21:04:16 -08:00
derekwaynecarr
829fa69527
Introduce a ResourceQuota object
2015-01-28 15:03:19 -05:00
Tim Hockin
c8f61885df
Merge pull request #3695 from mikedanese/ready
...
refactor pkg/health into more reusable pkg/probe
2015-01-28 11:00:32 -08:00
Clayton Coleman
a0356bca96
Unify validation logic for create and update paths
...
Ensure ObjectMeta is consistently validated on both create and update
Make PortalIP uncleareable
2015-01-28 13:10:37 -05:00
Tim Hockin
a480794efc
Tighten validation of Name and Namespace
2015-01-27 17:04:59 -05:00
derekwaynecarr
74f368f50e
Modified LimitRangeItem.Kind to LimitRangeItem.Type, added example files
2015-01-27 16:41:28 -05:00
derekwaynecarr
091cbe5fa2
Add a limit range resource
2015-01-27 16:41:27 -05:00
Mike Danese
5dc6362f8a
rename probe.Healthy to probe.Success and renam probe.Unhealthy to probe.Failure.
2015-01-27 11:20:30 -08:00
Mike Danese
a298402bd4
remove pkg/health and move everything over to pkg/probe
2015-01-27 11:20:30 -08:00
Brendan Burns
f124842505
Clear pod cache on delete.
2015-01-26 17:26:43 -08:00
Daniel Smith
09e30a6a63
log on health checks
2015-01-14 17:38:48 -08:00
Daniel Smith
2bee4ac572
Merge pull request #3381 from a-robinson/events2
...
Improve client recording of events such that clients are
2015-01-14 15:21:16 -08:00
Daniel Smith
c13ae34b02
Merge pull request #3445 from saad-ali/fix3172
...
Remove CONDITION from event object completely
2015-01-14 15:03:06 -08:00
Eric Tune
88c68e0349
Merge pull request #3331 from pmorie/services
...
Service visibility w/in namespaces, master services, set env vars in kubelet
2015-01-14 15:01:05 -08:00
saadali
90dfdcecd5
Remove CONDITION from event object completely
...
# *** ERROR: *** Some files have not been gofmt'd. To fix these
# errors, run gofmt -s -w <file>, or cut and paste the following:
# gofmt -s -w pkg/kubecfg/resource_printer.go pkg/proxy/config/config.go pkg/runtime/types.go
#
# Your commit will be aborted unless you override this warning. To
# commit in spite of these format errors, delete the following line:
# COMMIT_BLOCKED_ON_GOFMT
2015-01-14 14:17:16 -08:00
Paul Morie
fd834ae84d
Pods should see services only from their own ns
2015-01-14 17:06:36 -05:00
Tim Hockin
e86d4cd3c6
Use a strong type for UID fields
2015-01-14 13:53:43 -08:00
Alex Robinson
be6b1cf0e2
Push the full channel logic into the implementation of the broadcaster
...
in watch/mux.go rather than being in the client event recording code.
2015-01-13 02:22:30 +00:00
Dawn Chen
26a6628d8a
Merge pull request #3374 from lavalamp/fix
...
Fix minion listing
2015-01-12 16:36:46 -08:00
Daniel Smith
3e75195ff3
make minion registry not intolerably slow
2015-01-12 16:20:52 -08:00
Clayton Coleman
302629569b
Remove unimplemented methods
2015-01-12 12:20:01 -05:00
Clayton Coleman
22c99c98e2
Split RESTStorage into separate interfaces
...
Omit unimplemented interfaces from Swagger
2015-01-12 12:19:45 -05:00
Clayton Coleman
2741126cd4
Merge pull request #3239 from smarterclayton/healthy_registry_should_decorate
...
HealthyRegistry should only decorate minions, not omit them
2015-01-08 10:34:56 -05:00
Daniel Smith
35f54addca
Update more packages, tests, binaries for quantity
...
make etcd registry pass test
fix kubelet config for quantity
fix openstack for quantity
fix controller for quantity
fix last tests for quantity
wire into binaries
fix controller manager
fix build for 32 bit systems
2015-01-07 15:21:35 -08:00
Clayton Coleman
a0d711816d
HealthyRegistry should only decorate minions, not omit them
...
Fixes #3098
2015-01-07 11:09:41 -05:00
Dawn Chen
e3c019128e
Add EventSource to api to have both Component and Host information.
2015-01-06 16:08:20 -08:00
Tim Hockin
ca27fb259c
Don't use pointers for session affinity
2014-12-29 14:43:17 -08:00
Tim Hockin
fb0a7a9693
Add apiserver proxy support for pods.
...
This is useful for testing mostly.
2014-12-23 12:51:24 -08:00
Daniel Smith
65cf5f29b7
Merge pull request #3095 from derekwaynecarr/events_not_namespace
...
Namespace scope events in storage
2014-12-22 16:01:38 -08:00
Daniel Smith
5b8e91595a
Make pod listing costant-time
...
* move ip cache out of registry/pod
* combine, rationalize, and move pod status logic
* Fix unit and integration tests
2014-12-22 14:14:03 -08:00
derekwaynecarr
b47cde2465
Namespace scope events in storage
2014-12-22 13:01:20 -05:00
Daniel Smith
9fee1b0503
Merge pull request #3051 from brendandburns/flake
...
Add a PodUnknown phase and make ListPods return even when there are errors
2014-12-19 16:45:44 -08:00
Brendan Burns
5e8490d5fe
Add a PodUnknown phase and make ListPods return even when there are errors
...
obtaining info for some pods.
2014-12-19 15:08:48 -08:00
Mike Foley
c4e94efe16
Sticky Session Implementation
...
- Added process to cleanup stale session affinity records
- Automatically set cloud provided load balancer for sticky session if the service requires it - Note, this only works on GCE right now.
- Changed sessionAffinityMap a map to pointers instead of structs to improve performance
- Commented out cookie and protocol from sessionAffinityDetail to avoid confusion as it is not yet implemented.
2014-12-18 18:46:10 -05:00
Brendan Burns
82d0d68571
Merge pull request #3027 from jdef/rest_no_network_settings
...
only log about no network settings for running pods
2014-12-18 10:19:20 -08:00
Brendan Burns
36bc3604b9
Merge pull request #2893 from brendandburns/pd3
...
Make it easier to update nodes, make it possible to update capacity.
2014-12-18 10:18:54 -08:00
Deyuan Deng
677f68ec02
Fix node Get() error code
2014-12-18 23:03:52 +08:00
James DeFelice
b3c7aa8a53
only log about no network settings for running pods
2014-12-18 08:41:56 -05:00
Brendan Burns
cf0b41535f
Make it easier to update nodes, make it possible to update capacity.
2014-12-17 21:50:26 -08:00
Dawn Chen
deafd90280
PodStatus
2014-12-17 11:39:09 -08:00
Clayton Coleman
88715cc6ef
Rename Event.Status to Event.Condition to match v1beta3 agreement
...
Question - should this be a phase? Seems like no, since phase implies
defined lifecycle and this field is explicitly not defined.
2014-12-16 09:43:10 -05:00
Deyuan Deng
45bfcb451b
Enable watch on node changes.
2014-12-16 08:12:31 +08:00
Daniel Smith
f1f20f820a
Merge pull request #2942 from brendandburns/kubelet
...
revert the revert along with fixes to make it pass e2e tests.
2014-12-15 13:17:52 -08:00
Daniel Smith
a2638da2a7
Merge pull request #2899 from derekwaynecarr/update_generic_etcd
...
Update generic etcd to enable namespace scoped resources
2014-12-15 13:10:51 -08:00
Brendan Burns
a6f967b6e7
Revert "Revert "Add an api object for the kubelet, and a versioned endpoint.""
...
This reverts commit dcfcf315e5
.
2014-12-15 09:29:04 -08:00
derekwaynecarr
92e2c2b302
Updated default function names, keyroot to keyrootfunc
2014-12-15 10:42:13 -05:00
derekwaynecarr
6353612f40
Update generic etcd to enable namespace scoped resources
2014-12-15 10:42:13 -05:00
Brendan Burns
dcfcf315e5
Revert "Add an api object for the kubelet, and a versioned endpoint."
...
This reverts commit d4b9979382
.
2014-12-12 21:13:44 -08:00
Brendan Burns
d4b9979382
Add an api object for the kubelet, and a versioned endpoint.
2014-12-12 15:26:28 -08:00
Brian Grant
9b539262a8
Count only non-dead pods in replicationController current state replicas count.
2014-12-12 22:23:14 +00:00
Jordan Liggitt
51bfb50698
Use util.Time consistently in types.go
2014-12-11 11:14:25 -05:00
Brendan Burns
bac915a066
Return an error if a user attempts to create an externalized UDP balancer.
2014-12-10 20:08:03 -08:00
Daniel Smith
272bfc97ed
Merge pull request #2788 from smarterclayton/roundtrip_node_nodelist
...
Rename Minions -> Nodes internally
2014-12-10 11:12:15 -08:00
Clayton Coleman
6ab6c90ce5
Merge pull request #2665 from ddysher/fix-watch-filter
...
Move watch filter into storage level
2014-12-10 12:31:55 -05:00
Clayton Coleman
0d887ae7b3
Change podStatus from Nodes.List() -> Nodes.Get(name)
...
Retrieves a lot less data
2014-12-10 12:08:19 -05:00
Clayton Coleman
d1d7505272
Rename client Minions->Nodes, select the correct path for v1beta3
...
Replaces the client public interface but leaves old references to "minions"
for a later refactor. Selects the path "nodes" for v1beta3 and "minions"
for older versions.
2014-12-10 12:08:19 -05:00
Clayton Coleman
19379b5a38
Internal rename api.Minion -> api.Node
2014-12-10 12:08:18 -05:00
Clayton Coleman
2c27f7d332
Allow an empty service
2014-12-09 12:48:53 -05:00
Brendan Burns
33b3c1b8ce
Fix e2e.
2014-12-08 16:55:56 -08:00
Deyuan Deng
76552423f9
Move watch filter into storage level
2014-12-04 20:15:27 -05:00
Eric Tune
3f285269cc
Rename watch.Mux -> watch.Broadcaster
...
A few reasons:
- Mux is already widely used in the codebase to refer to a http handler mux.
- Original meaning of Mux was something which sent a chose one of several inputs to
and output. This sends one output to all outputs. Broadcast captures that idea
better.
- Aligns with similar class config.Broadcaster (see #2747 )
2014-12-04 00:30:51 -08:00
Tim Hockin
f4b031d025
Merge pull request #2514 from thockin/label-ns
...
Add label key namespacing
2014-12-02 13:38:46 -08:00
Brendan Burns
6b009f06cd
Merge pull request #2635 from thockin/public-ip
...
Enable public IPs even in not createExternal...
2014-12-01 14:56:22 -08:00
Tim Hockin
89875ef09d
Loosen DNS 952 for labels
2014-12-01 12:30:43 -08:00
Eric Tune
585afa1bae
Merge pull request #2610 from ddysher/node-namespace
...
Fix node namespace.
2014-11-26 13:02:21 -08:00
Tim Hockin
0c03f6e784
Enable public IPs even in not createExternal...
...
This allows the proxier to portal Public IPs even if the
createExternalLoadBalancer flag is not set.
This also fixes what appears to be a bug in the createExternalLoadBalancer path
wherein multiple PublicIPs would get truncated.
2014-11-26 10:54:28 -08:00
Eric Tune
636ffed399
Merge pull request #2515 from thockin/why
...
Add details on Invalid validation errors
2014-11-25 14:04:27 -08:00
Deyuan Deng
c8c7a13ac6
Fix node namespace.
2014-11-25 16:30:55 -05:00
Tim Hockin
ff8c5f9415
Add a Detail field to Validation Error
2014-11-24 17:28:42 -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
derekwaynecarr
039af4a569
Endpoint.Namespace is not being set when it has no resolved pods
2014-11-24 14:15:22 -05:00
Eric Tune
f122fc94bf
Move service enviroment vars code.
...
GetServiceEnvironmentVariables (originally in pkg/registry/service/rest.go)
is split into two parts: one that lists services, and one that turns
a ServiceList into environment vars. This will allow a subsequent PR
to add a call to the latter function with an existing ServiceList.
The former part is moved into pkg/registry/pod/bound_pod_factory.go.
The latter part is put in a new package, pkg/kubelet/envvars/envvars.go.
The new package is under kubelet because the container enviroment is more
associated with kubelet than with registry.
Test code moved too.
2014-11-23 05:50:34 -08:00
bgrant0607
8298308d34
Merge pull request #2525 from erictune/cleanup1
...
Rename makeContainerKey -> make BoundPodsKey.
2014-11-21 14:04:11 -08:00
Eric Tune
20a8e4bf19
Rename makeContainerKey -> make BoundPodsKey.
...
Fix some typos too.
2014-11-21 13:15:08 -08:00
markturansky
8159c8fd25
Refactor PodCondition to PodPhase
2014-11-21 15:28:38 -05:00
markturansky
13cba21c6c
Add old and new DesiredState/Status to podToSelectableFields for watches
2014-11-21 09:46:05 -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
Tim Hockin
ea960711ff
Clean up error logs.
...
Use %v for errors, tidy some messages, make error messages start lowe-case
(as per go guidelines). Just accumulated nits.
2014-11-21 09:45:26 +08:00
markturansky
8af4ccb111
v1beta3 Pod refactor
2014-11-18 09:25:42 -05:00
Deyuan Deng
c20ceea170
Add more validation for updating node.
2014-11-17 13:42:31 -05:00
Deyuan Deng
cc310e0e71
Support node label update.
2014-11-17 13:42:31 -05:00
Brendan Burns
88fa703b8e
Merge pull request #2417 from thockin/ipalloc
...
Cleanups of ipv6 changes.
2014-11-17 09:54:16 -08:00
Brendan Burns
271ed1c21e
Merge pull request #2394 from ddysher/random-fix
...
Exclude service itself when checking conflict.
2014-11-17 09:47:58 -08:00
Tim Hockin
9c218f0a19
Cleanups of ipv6 changes.
...
I was late re-reviewing and some comments did not get resolved.
2014-11-17 09:33:14 -08:00
Deyuan Deng
241f3d702b
Exclude service itself when checking conflict.
2014-11-15 10:40:40 -05:00
Brendan Burns
4a8a2b5a9f
Address comments.
2014-11-14 17:23:13 -08:00
Brendan Burns
2aa52d043b
Add external services v2 support.
2014-11-14 11:32:54 -08:00
Brendan Burns
c2485a4056
Merge pull request #2147 from justinsb/ipv6
...
Initial ipv6 / iptables work
2014-11-14 10:34:37 -08:00
Daniel Smith
de75e5a9bb
Fix server-side namespace handling for events; add validation
2014-11-14 09:43:28 -08:00
Dawn Chen
ff68b75401
Merge pull request #2333 from derekwaynecarr/validate_uid
...
Set uid during object create
2014-11-13 13:56:25 -08:00
derekwaynecarr
15701ff403
Set uid during object create
2014-11-13 15:25:49 -05:00
Deyuan Deng
c83ee59e15
Remove health check when creating node.
2014-11-12 18:55:18 -05:00
Daniel Smith
178d0af795
Fix watch for events; add test for interface implementation so it won't break again.
2014-11-12 15:22:08 -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
derekwaynecarr
b326cbbe0c
Centralize minion validation
2014-11-12 12:38:15 -05:00
Daniel Smith
f1b0b64a75
Add 'source' to events field selector.
2014-11-11 15:32:13 -08:00
Clayton Coleman
94c873e7a4
Remaining refactor for PodTemplateSpec and fixing test cases
2014-11-11 17:03:20 -05:00
Deyuan Deng
38abf0c7ad
Return success when registrying unhealthy node.
2014-11-07 15:45:15 -05:00
Justin SB
b19170f335
gofmt
2014-11-07 06:34:18 -08:00
Justin SB
04313ff173
Create ip_allocator that copes with IPv6
...
It uses a set (via a map) of allocated IPs
2014-11-06 21:26:26 -08:00
markturansky
119f654a13
Refactor PodStatus to PodCondition in internal API for v1beta3
2014-11-05 17:26:47 -05:00
Daniel Smith
3bd10d4fb4
Merge pull request #2145 from lavalamp/eventing2
...
Add a placeholder to boundPod's SelfLink
2014-11-05 13:49:53 -08:00
bgrant0607
fc0dab630c
Merge pull request #2086 from markturansky/v1beta3_refactor
...
Refactor internal API for Services to match v1beta3
2014-11-04 21:48:02 -08:00
bgrant0607
c7ff31004b
Merge pull request #2094 from brendandburns/svc
...
Add some validation for externalized service ports.
2014-11-04 13:04:56 -08:00
markturansky
bd7643c033
refactor services to v1beta3
2014-11-04 14:23:53 -05:00
Daniel Smith
724db61c1d
Add a placeholder to boundPod's SelfLink, and test that one can make references to them.
2014-11-03 17:46:33 -08:00
Dawn Chen
c4aa4d28a6
Merge pull request #2120 from brendandburns/uuid
...
Add some blocking so that we don't generate identical UUIDs for API objects.
2014-11-03 15:32:56 -08:00
Brendan Burns
f556f2f82f
Add some validation for externalized service ports.
2014-11-03 13:36:34 -08:00
Brendan Burns
a624630112
Add some blocking so that we don't generate identical UUIDs for API objects.
2014-11-03 13:27:59 -08:00
Brendan Burns
32a04e48fd
Make endpoints return 400 instead of 500
2014-11-02 20:08:06 -08:00
Daniel Smith
7146ec9d49
Implement kubernetes & kubernetes-ro services
2014-10-29 11:29:28 -07:00
Daniel Smith
94e736e286
Merge pull request #2009 from smarterclayton/unify_meta
...
Unify Accessor for ObjectMeta/TypeMeta/ListMeta
2014-10-29 09:58:46 -07:00
deads2k
613bf93eaf
expose ParseWatchResourceVersion for downstream use
2014-10-28 16:29:33 -04:00
Daniel Smith
66b43a5e87
fix build
2014-10-28 12:44:24 -07:00
Clayton Coleman
5cb3c10289
Merge pull request #1782 from smarterclayton/allow_put_to_set_create
...
Allow clients to determine the difference between create or update on PUT
2014-10-28 13:40:41 -04:00
Tim Hockin
bb5ca0f91b
Respect a requested PortalIP if possible
2014-10-27 14:03:52 -07:00
Clayton Coleman
66ace4c270
Begin to unify ResourceVersioner and SelfLinker
...
Create a new MetadataAccessor interface that combines both
and use it where previously latest.ResourceVersioner and SelfLinker
were being used.
Adds Namespace to the get/set interface. Adds TODO about future
fast path for metadata (as per thockin's comment)
2014-10-27 16:00:55 -04:00
Clayton Coleman
d5ee171410
Allow clients to determine the difference between create or update on PUT
...
PUT allows an object to be created (http 201). This allows REST code to
indicate an object has been created and clients to react to it.
APIServer now deals with <-chan RESTResult instead of <-chan runtime.Object,
allowing more data to be passed through.
2014-10-24 14:41:15 -04:00
derekwaynecarr
c6eb371c93
Fixup unit tests
2014-10-24 11:49:04 -04:00
derekwaynecarr
580cb5ea4f
Rework client.Interface
2014-10-24 11:47:30 -04:00
Clayton Coleman
644eb70085
Refactor tests to split ObjectMeta from TypeMeta
2014-10-24 11:22:21 -04:00
Clayton Coleman
7550c146dc
Replace struct initializers for TypeMeta with ObjectMeta
2014-10-24 11:22:21 -04:00
Clayton Coleman
09800643e2
Change validation now that namespace is on ObjectMeta
2014-10-24 11:22:20 -04:00
Haney Maxwell
3160500940
Refactor kubelet access and add SSL
2014-10-22 14:53:59 -07:00
Clayton Coleman
91d9a90e4e
Replace use of "id" in strings with "name"
2014-10-22 15:59:12 -04:00
Clayton Coleman
bb77a5d15f
Rename ID -> Name
2014-10-22 15:00:26 -04:00
deads2k
34b5861b60
add unit tests for rejection of conflicting namespaces
2014-10-21 15:57:02 -04:00
Daniel Smith
f748e2d2c5
Implement redirection & proxying for minions
2014-10-20 11:28:12 -07:00
Michal Fojtik
0bccce4520
Move error about connecting to healthz server to V(1)
2014-10-20 15:31:01 +02:00
Tim Hockin
8d37319982
Fix borrow and carry in IPAllocator
2014-10-17 17:13:22 -07:00
Daniel Smith
f1e0290605
fix broken test
2014-10-17 15:21:03 -07:00
derekwaynecarr
e2c888795c
Fix typo etcd registry
2014-10-17 16:22:57 -04:00
derekwaynecarr
1d6c937183
Wrong method call to watch service endpoints key
2014-10-17 13:34:42 -04:00
Clayton Coleman
26cff8b9bf
Rename the etcd path for pods to be /registry/nodes/<>/boundpods
2014-10-16 19:29:08 -04:00
Clayton Coleman
6ae611aedd
Write BoundPods to etcd instead of ContainerManifestList
...
Rename ManifestFactory -> BoundPodFactory and change the general structure
of the call to focus on BoundPod.
2014-10-16 19:29:08 -04:00
derekwaynecarr
085ca40291
Enforce unique constraint at namespace boundary in etcd, make client and server namespace aware
2014-10-16 13:02:52 -04:00
Tim Hockin
e907011111
Core support for ip-per-service
2014-10-16 08:36:47 -07:00
Deyuan Deng
ec46e94dc2
Create MinionController to sync minions from cloudprovider (pkg cloudprovider/controller).
2014-10-14 18:45:25 -04:00
Dawn Chen
f01fd8ff38
After all containers in a pod started. If any one container is still running,
...
or in the process of restarting, mark pod status running.
Fix #1758 .
2014-10-14 10:26:31 -07:00
Daniel Smith
841e9e87ff
Merge pull request #1713 from brendandburns/update
...
Add update to the pod etcd handler.
2014-10-13 17:42:30 -07:00
Brendan Burns
4380637be7
Add update to the pod etcd handler.
2014-10-13 17:27:31 -07:00
Daniel Smith
b1a6b3eee8
Split generic; add test, address other review comments
2014-10-10 15:47:34 -07:00
Daniel Smith
d3d9f7ac8b
ObjectDiff moved after rebase
2014-10-10 15:47:34 -07:00
Daniel Smith
3e076e12fe
Add event registry and type
2014-10-10 15:46:49 -07:00
Daniel Smith
9a9362e896
Add generic registry object so we can stop rewriting this code
2014-10-10 15:46:49 -07:00
Brendan Burns
9ffa69ce15
Merge pull request #1696 from derekwaynecarr/pod_cache_needs_namespace
...
Pod cache needs to be namespace-aware
2014-10-10 08:28:32 -07:00
derekwaynecarr
9e60bf1e43
Pod cache needs to be namespace-aware
2014-10-10 09:35:31 -04:00
Tim Hockin
d84816aaec
Merge pull request #1709 from erictune/move_line
...
Fix format specifiers in Printf-type functions.
2014-10-09 20:40:35 -07:00
Eric Tune
800284164a
Fix format specifiers in Printf-type functions.
2014-10-09 17:06:32 -07:00
Daniel Smith
9b42f62da3
Merge pull request #1705 from erictune/dead
...
Delete unused function.
2014-10-09 17:05:34 -07:00
Eric Tune
8296f038ac
Delete unused function.
2014-10-09 16:40:11 -07:00
Deyuan Deng
15e5b876b8
Change ContainsMinion to GetMinion
2014-10-08 23:41:15 -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
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
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
Clayton Coleman
d3e51a0f24
Rename JSONBase -> TypeMeta in preparation for v1beta3
...
Will make subsequent refactor much easier
2014-10-07 11:12:16 -04: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