Commit Graph

6617 Commits

Author SHA1 Message Date
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
a271771341 Richer errors for validation 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
9255770068 Fix a few occurences of old language (e.g. visibility -> ServiceType) 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
e49ad95462 Mark PublicIPs as deprecated & rename to DeprecatedPublicIPs in the latest API
We need to keep them in the API so that we can round-trip between versions.
2015-05-22 19:14:27 -04:00
Justin Santa Barbara
2197c8da5a Add NodePort to ServicePort
We prevent it from being set by validation
2015-05-22 19:14:27 -04:00
Justin Santa Barbara
973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Dawn Chen
e58674b3cc Merge pull request #8579 from roberthbailey/kubelet-unit-tests
Fix kubelet tests for systems without functional dns to look up localhost
2015-05-22 15:50:39 -07:00
Justin Santa Barbara
3884d5fc59 Add LoadBalancer status to ServiceStatus
This will replace publicIPs
2015-05-22 18:27:05 -04:00
Robert Bailey
d0bcf953e9 Deprecate the following flags for node-controller:
--node-milli-cpu
  --node-memory
  --machines
  --minion-regexp
  --sync-nodes

Remove the following flags from the standalon kubernetes binary:
  --node-milli-cpu
  --node-memory
2015-05-22 15:18:36 -07:00
Dawn Chen
b31505bfba Merge pull request #8646 from andronat/failed_test_TestCreateMissingContext
Test fails when arbitrary kubernetes master is set
2015-05-22 14:56:53 -07:00
Dawn Chen
5c8db5a76a Merge pull request #8629 from jlowdermilk/clientcmd-api
Remove pkg/api dependency from pkg/client/clientcmd/api
2015-05-22 14:50:51 -07:00
Robert Bailey
3302628db3 Fix kubelet tests for systems without functional dns to look up localhost. 2015-05-22 14:32:51 -07:00
Justin Santa Barbara
1ad4549f5f Proxy infrastructure for NodePorts
A service with a NodePort set will listen on that port, on every node.

This is both handy for some load balancers (AWS ELB) and for people
that want to expose a service without using a load balancer.
2015-05-22 17:21:49 -04:00
Dawn Chen
97727267c6 Merge pull request #8574 from bprashanth/apiserver_rand
Randomize apiserver timeout
2015-05-22 13:13:59 -07:00
Dawn Chen
1131ac9ae8 Merge pull request #8332 from preillyme/fix_breadcrumbs
Restore missing WebUI breadcrumbs after refactor
2015-05-22 13:10:34 -07:00
Dawn Chen
17ac4b1dfc Merge pull request #8297 from iterion/switch-to-aws-sdk-go
AWS: Switch to aws-sdk-go
2015-05-22 12:31:07 -07:00
Dawn Chen
cc6a31354e Merge pull request #8169 from kargakis/expose-use-resource-builder
expose: Use resource builder
2015-05-22 12:29:24 -07:00
Dawn Chen
677a4aa1a7 Merge pull request #8164 from cjcullen/cloudprovider
Route creation reconciler loop.
2015-05-22 12:27:50 -07:00
markturansky
63ddfa537e fixed missing PV check in CanSupport 2015-05-22 15:23:34 -04:00
markturansky
77c39edcc9 rebased and regenerated conversions 2015-05-22 15:18:48 -04:00
markturansky
5b23fc39b2 added ISCSI volume plugin to PersistentVolumeSource 2015-05-22 15:18:20 -04:00
markturansky
4f88d418c8 Added missing PV support to NFS 2015-05-22 15:10:40 -04:00
Dawn Chen
e0092a1c23 Merge pull request #8633 from thockin/probe-logs
reduce verbosity of log line
2015-05-22 11:10:33 -07:00
Dawn Chen
434a9ff57b Merge pull request #8552 from thockin/rc-default-1
Change v1 API to default RC replicas to 1
2015-05-22 11:10:01 -07:00
deads2k
590bd048a5 add pull secrets to service accounts 2015-05-22 14:05:19 -04:00
Dawn Chen
967495659b Merge pull request #8304 from bcbroussard/web-ui-v1beta3
Web UI v1beta3 conversion
2015-05-22 10:36:14 -07:00
Dawn Chen
ddbf851b6e Merge pull request #8000 from bprashanth/rc_ttl_cleanup
Delete expectations of a deleted rc instead of letting them expire
2015-05-22 10:33:09 -07:00
Dawn Chen
8a14296145 Merge pull request #7024 from kazegusuri/all_namespace
Allow kubectl to handle all namespace
2015-05-22 10:15:30 -07:00
Quinton Hoole
6d8eaa924e Merge pull request #7852 from a-robinson/tp
Prevent stranding of partial load balancers resources
2015-05-22 10:12:30 -07:00
Clayton Coleman
3f66321e13 Merge pull request #8618 from kargakis/resize-enable-slash-syntax
resize: Enable resource type/name syntax
2015-05-22 13:05:25 -04:00
RichieEscarez
0076c181c7 Edited to add the default restart policy (always) to clarify value if RestartPolicy is not set.
Generated new .json output for Swagger UI

Added the api/v1/v1.json file to the hack/update-swagger-spec.sh script so it gets updated and built.

Fixes #5057

Reverting last change: Deleted line for building v1 api from the  build file update-swagger-ui.sh and deleted the output file from build (v1.json).
2015-05-22 10:03:12 -07:00
Clayton Coleman
dcbe815825 Merge pull request #8671 from kargakis/bump-timeout-back
bump timeout back to previous time
2015-05-22 12:57:55 -04:00
Jeff Lowdermilk
e1936d57f8 Make rolling-update actually parse filenames from stdin 2015-05-22 09:44:00 -07:00
kargakis
d2d1e5bf48 bump timeout back to previous time 2015-05-22 17:05:24 +02:00
Masahiro Sano
c2514a7524 print namespace with name in single column if withNamespace specified 2015-05-22 23:25:12 +09:00
Masahiro Sano
8ce64ec69e add --all-namespaces flag to request across all namespaces 2015-05-22 23:25:12 +09:00
jbdalido
6ea63e69ce fix for listPods with nil parameters 2015-05-22 16:21:13 +02:00
markturansky
bcd3c5a80f fixed PV describe 2015-05-22 08:40:43 -04:00
Prashanth Balasubramanian
8a5445d3db Randomize apiserver watch timeouts 2015-05-21 20:52:33 -07:00
CJ Cullen
e6da5b9601 Make routecontroller_test less hacky.
Rename reconcilePodCIDRs to reconcileNodeCIDRs.
Add comments and TODOs about using controller framework.
2015-05-21 18:05:11 -07:00
Anastasis Andronidis
66a758b85d Test fails when env variables are set 2015-05-22 01:12:55 +02:00
Clayton Coleman
f3dd404bc6 Merge pull request #6578 from rootfs/wip-rbd
add Ceph rados block device (rbd) volume plugin
2015-05-21 18:17:54 -04:00
BC Broussard
90d22c48b4 Add v1beta3 api call to web ui
Update mocks to v1beta3
2015-05-21 13:51:59 -07:00
Zach Loafman
7196ace711 Merge remote-tracking branch 'upstream/release-0.17' into merge-release-0.17-to-master 2015-05-21 13:26:42 -07:00
Tim Hockin
a29240f2c5 reduce verbosity of log line 2015-05-21 13:09:18 -07:00
David Oppenheimer
6b428ef1a8 Merge pull request #7170 from simon3z/node-events
Node events recording fixes
2015-05-21 12:54:38 -07:00
Tim Hockin
fd07de6ed6 Change v1 API to default RC replicas to 1 2015-05-21 12:40:59 -07:00
Huamin Chen
4a800fd10e add rados block device(rbd) volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-05-21 14:51:31 -04:00
Jeff Lowdermilk
4ef79733b6 Remove pkg/api dependency from pkg/client/clientcmd/api 2015-05-21 11:47:50 -07:00
Derek Carr
9b1fb6dca1 Merge pull request #8233 from csrwng/connect_adm_ctrl
Admission control to prevent exec on privileged pods
2015-05-21 14:35:28 -04:00
Dawn Chen
eaba2c1ab4 Merge pull request #8599 from caesarxuchao/minions-to-nodes
in docs, update "minions" to "nodes"
2015-05-21 11:34:36 -07:00
Dawn Chen
bd335aa57d Merge pull request #8577 from wojtek-t/fix_conversion_order
Fix ordering of conversion methods so that it's deterministic
2015-05-21 11:31:19 -07:00
Cesar Wong
328b1d0817 Add admission control to the Connect method in the API Server
The resource passed to admission control is a ConnectRequest object
which includes additional information about the current request.
2015-05-21 13:54:45 -04:00
Cesar Wong
68ad63b5e2 Add operation checking to admission control handlers
Adds a new method to the handler interface that returns true only if the
admission control handler handles that operation.
2015-05-21 13:51:43 -04:00
Wojciech Tyczynski
de0a1d179f Fix ordering of conversion methods. 2015-05-21 19:41:48 +02:00
Daniel Smith
80c3506484 Merge pull request #8494 from liggitt/gate_tokens_controller
Wait until stores are filled before processing service account token events
2015-05-21 10:29:53 -07:00
Zach Loafman
6e65b9613c Kubernetes version v0.17.1-dev 2015-05-21 10:19:15 -07:00
Zach Loafman
7565d411c4 Kubernetes version v0.17.1 2015-05-21 10:19:06 -07:00
Tim Hockin
2fb5472e19 Revert "Introduce an 'svc' segment for DNS search" 2015-05-21 10:16:44 -07:00
Chao Xu
bda5e4376e in docs, update "minions" to "nodes" 2015-05-21 09:59:40 -07:00
Dawn Chen
fdb44a9ad2 Merge pull request #8602 from caesarxuchao/rC-to-rc
in docs, update replicationController to replicationcontroller
2015-05-21 09:49:35 -07:00
Dawn Chen
8fe43514ea Merge pull request #8591 from GoogleCloudPlatform/revert-8564-revert-8404-messageEmptyKind
Revert "Revert "Enhance error message from kubectl when 'kind' is emp…
2015-05-21 09:47:34 -07:00
Dawn Chen
475709a59c Merge pull request #8583 from markturansky/pv_search_bug
Fixed PersistentVolume search bug
2015-05-21 09:45:55 -07:00
Dawn Chen
b5c1098cb6 Merge pull request #8576 from a-robinson/svc
Fix misordered assignment in service controller
2015-05-21 09:38:08 -07:00
Dawn Chen
017fb6a818 Merge pull request #8575 from yifan-gu/kube_refactor
Minor kubelet/rkt refactors
2015-05-21 09:37:31 -07:00
Dawn Chen
49bf1ec0a1 Merge pull request #8573 from deads2k/fix-check-err
tolerate fatals without newlines
2015-05-21 09:34:58 -07:00
Dawn Chen
77da4f761f Merge pull request #8562 from kargakis/replica-sorting
Skip sorting if all pods will be deleted
2015-05-21 09:32:13 -07:00
Dawn Chen
220208942e Merge pull request #8560 from kargakis/reduce-poll-interval-for-stop
Reduce reaper poll interval and wait while resizing
2015-05-21 09:30:10 -07:00
Dawn Chen
0710976d43 Merge pull request #8490 from thockin/diff-proto
Allow same-hostport-different-protocol
2015-05-21 09:16:16 -07: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
Dawn Chen
9f4fb35c16 Merge pull request #8472 from nikhiljindal/statusName
v1: Updating StatusDetails.ID to Name
2015-05-21 09:12:42 -07:00
Dawn Chen
9a5b05312f Merge pull request #8238 from thockin/probe-logs
Better kubelet logging for probes
2015-05-21 09:11:11 -07:00
kargakis
6424a2bc63 resize: Enable resource type/name syntax
Also don't allow more than one objects in commands it makes sense
2015-05-21 17:39:01 +02:00
Jordan Liggitt
49ceb82179 Wait until stores are filled before processing service account token events 2015-05-20 22:19:42 -04:00
Chao Xu
5b8b5a0844 in docs, update replicationController to replicationcontroller 2015-05-20 17:31:15 -07:00
Federico Simoncelli
fefc65164a kubelet: fix node ready condition logic
Fixes #8585

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-20 20:03:57 -04:00
Federico Simoncelli
2f503c57a5 nodecontroller: improve node status event recording
This patch substitutes the misleading reason "unknown" for the event
recording. For symmetry with kubelet's message "online" the conditions
Unknown and False are reported as "offline".

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-20 18:46:01 -04:00
Federico Simoncelli
21c57a5633 nodecontroller: remove unused ready event recording
It's not nodecontroller setting the node to Ready so it's impossible to
reach this condition.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-20 18:45:58 -04:00
kargakis
30958f892d expose: Use resource builder
Plus:
* Rename flag --service-name to --name
* Some refactoring
2015-05-20 23:55:07 +02:00
Clayton Coleman
0a28e50511 Revert "Revert "Enhance error message from kubectl when 'kind' is empty"" 2015-05-20 17:32:23 -04:00
CJ Cullen
0d12a15971 Route creation reconciler loop. 2015-05-20 14:21:30 -07:00
CJ Cullen
bf646abf8d Revert "Revert "Modify nodes to register directly with the master.""
This reverts commit c53786ab31.
2015-05-20 14:21:03 -07:00
Quinton Hoole
c53786ab31 Revert "Modify nodes to register directly with the master." 2015-05-20 13:47:51 -07:00
markturansky
1433aee88d fixed search bug by making an explicit pass to filter bound volumes 2015-05-20 15:27:41 -04:00
Yifan Gu
6a5681e0fe kubelet: Move HashContainer to kubelet/container package. 2015-05-20 12:08:32 -07:00
kargakis
99655b342f Reduce reaper poll interval and wait while resizing
When reaping a replication controller that handles an arbitrary amount of replicas, missing an interval means that `kubectl stop|delete` have to wait 3 more seconds to finish which seems more expensive from a user pov than a GET per 100ms.

Also I think `kubectl resize` should wait for all replicas to spin up before exiting. Feels more safe to know that your replication controller status is up to date.
2015-05-20 20:49:29 +02:00
nikhiljindal
e92a42b57f Renaming StatusDetails.ID to Name 2015-05-20 11:35:38 -07:00
Alex Robinson
4214b76924 Fix misordered assignment in service controller 2015-05-20 11:51:48 -06:00
deads2k
cd817aebd8 tolerate fatals without newlines 2015-05-20 13:15:49 -04:00
Tim Hockin
9117a757e2 Revert "Introduce an 'svc' segment for DNS search" 2015-05-20 09:04:15 -07:00
Tim Hockin
75617e8760 Better kubelet logging for probes
Log when we actually run probes and event when they fail.  Print the output of
a probe, too.
2015-05-20 08:56:45 -07:00
Adam Sunderland
ad9f2d7a56 Fix Some AWS Issues 2015-05-20 10:42:27 -05:00
Clayton Coleman
633c56f8c0 Revert "Enhance error message from kubectl when 'kind' is empty" 2015-05-20 10:32:56 -04:00
kargakis
b4c3318efd Skip sorting if all pods will be deleted 2015-05-20 15:20:25 +02:00
feihujiang
6c8a1cdb17 Enhance error message from kubectl when 'kind' is empty
Enhance error message from kubectl when 'kind' is empty

Enhance error message
2015-05-20 15:23:47 +08:00
Yu-Ju Hong
8f62dd2451 Merge pull request #8482 from smarterclayton/serialization_wrong
Serialization of 'IP' in endpoints should be 'ip'
2015-05-19 12:02:19 -07:00
Tim Hockin
97abc19810 Merge pull request #8299 from thockin/import-names
rename imported pkgs for readability
2015-05-19 12:01:57 -07:00
Eric Tune
1f4172d23c Merge pull request #6949 from roberthbailey/node-register
Modify nodes to register directly with the master.
2015-05-19 11:29:43 -07:00
Dawn Chen
349d8b1a67 Merge pull request #8491 from vmarmol/fix-isolation
Fix setting resource isolation in Docker 1.6+
2015-05-19 11:26:27 -07:00
Tim Hockin
cb49843ccb Merge pull request #8140 from vishh/namespace
Update Namespace names to follow DNS label format
2015-05-19 11:25:32 -07:00
Tim Hockin
270c031bec Merge pull request #8484 from thockin/proxier-old-iptables
Clean up old iptables (pre-ip-per-service) legacy
2015-05-19 11:21:46 -07:00
Tim Hockin
70c94fad6d Don't rename api imports in conversions 2015-05-19 11:21:21 -07:00
Tim Hockin
d689ba9b01 Rename versioned pkg imports in defaults tests 2015-05-19 11:18:55 -07:00
Vishnu Kannan
d10af89493 Updating namespaces to be DNS labels instead of DNS names. 2015-05-19 11:09:09 -07:00
Prashanth Balasubramanian
c0a8981b74 Delete expectations of a deleted rc instead of letting them expire 2015-05-19 11:01:45 -07:00
Daniel Smith
181124bc9b Merge pull request #7974 from deads2k/attach-pull-secrets-to-pods
Attach pull secrets to pods
2015-05-19 10:26:39 -07:00
Tim Hockin
711fa2f2c6 fix 2015-05-19 10:17:53 -07:00
Alex Robinson
dbf224475d Require DeleteTCPLoadBalancer to be idempotent and change the service
controller to rely on that, so that we won't strand partial resources
from them anymore (target pools in GCE, pools in OpenStack, etc.).
2015-05-19 17:06:54 +00:00
Alex Robinson
dc2f10d51b Make openstack's impl of DeleteTCPLoadBalancer idempotent with respect
to load balancers having already been deleted.
2015-05-19 17:06:50 +00:00
Tim Hockin
c7bf373d98 Allow same-hostport-different-protocol 2015-05-19 10:00:35 -07:00
Robert Bailey
01467e0bb8 Modify nodes to register directly with the master.
- Delete nodes when they are no longer ready and don't exist in the
cloud provider.
 - Label each node with it's hostname.
 - Add flag to skip node registration.
 - Add a test for registering an existing node.
2015-05-19 09:55:07 -07:00
Tim Hockin
9f808d8e16 Merge pull request #8498 from justinsb/proxier_lock_cleanupstalestickysessions
Add mutex lock to cleanupStaleStickySessions
2015-05-19 09:51:37 -07:00
deads2k
72c0709f18 reduce scope of DockerConfigEntryWithAuth 2015-05-19 12:41:03 -04:00
Victor Marmol
deaa0e569d Set CPU and memory in Create() and Start().
This allows for backwards and forwards compatability since old Docker
versions expect it in Create() and newer ones do so in Start().

Fixes #8358
2015-05-19 09:26:15 -07:00
Brian Grant
2c81050e6f Merge pull request #8457 from davidopp/master
Fix stylistic isues with #5547. Closes #4910.
2015-05-19 07:43:21 -07:00
Justin Santa Barbara
2473a81412 Add mutex lock to cleanupStaleStickySessions
Proxier.serviceMap is supposed to be guarded by the mutex
2015-05-19 09:11:05 -04:00
deads2k
5458f05679 create LocalObjectReference 2015-05-19 08:39:46 -04:00
David Oppenheimer
44b1e1ca0c Fix stylistic isues with #5547. Closes #4910. 2015-05-18 23:32:06 -07:00
Tim Hockin
b64868f23b Clean up old iptables (pre-ip-per-service) legacy 2015-05-18 20:27:40 -07:00
Jordan Liggitt
a6401fa433 Update generic etcd tests for cluster-scoped objects 2015-05-18 23:17:51 -04:00
Clayton Coleman
2e8b7f9797 Serialization of 'IP' should be 'ip'
CamelCase rules are "initialsUpperCase"
2015-05-18 22:56:12 -04:00
Brian Grant
03535478a2 Merge pull request #8440 from thockin/api-type-names
Rename a few API types (non-breaking change)
2015-05-18 18:48:16 -07:00
Victor Marmol
c5da035d51 Merge pull request #8421 from yujuhong/active_deadline
Kubelet: move active deadline check to per pod worker
2015-05-18 17:42:21 -07:00
Tim Hockin
2307350d1b Merge pull request #8443 from wojtek-t/conversion_improvements
Script for regenerate auto-generated conversions.
2015-05-18 17:24:08 -07:00
Tim Hockin
65833e42c4 rename CapabilityType Capability 2015-05-18 17:21:30 -07:00
Tim Hockin
fd22f48f5b rename StorageType StorageMedium 2015-05-18 17:21:30 -07:00
Tim Hockin
f66ca25d9f Rename AccessMode to PersistentVolumeAccessMode 2015-05-18 17:21:30 -07:00
Tim Hockin
a548d542db Rename AffinityType to ServiceAffinity 2015-05-18 17:21:30 -07:00
Wojciech Tyczynski
9a93206774 Script for automatically generate conversions. 2015-05-19 02:17:58 +02:00
Victor Marmol
1e1092ddbc Merge pull request #8461 from pmorie/rkt
rename rkt makeruntimePod
2015-05-18 17:12:05 -07:00
Nikhil Jindal
fadc76422a Merge pull request #8437 from caesarxuchao/kubectl_run-container-doc
update the docs for kubectl-run-container to v1beta3
2015-05-18 16:41:14 -07:00
Paul Morie
a58c7a0de7 rename rkt makeruntimePod 2015-05-18 19:24:10 -04:00
Daniel Smith
c72eedf50a Merge pull request #8138 from bprashanth/rc_race
Check expectations before filtering through active pods.
2015-05-18 15:36:21 -07:00
Daniel Smith
5e056f119d Merge pull request #6694 from bprashanth/bench
Add a simple master benchmark and a wrapper to run it.
2015-05-18 14:42:24 -07:00
Vish Kannan
c5f7ee6f96 Merge pull request #8430 from vmarmol/logging
Don't run OOM watcher is cAdvisor is not available.
2015-05-18 14:41:24 -07:00
Victor Marmol
832842a22e Merge pull request #8436 from yujuhong/rm_poddirs
Kubelet: do not remove directories of terminated pods
2015-05-18 14:21:58 -07:00
Chao Xu
013130f150 update the docs for kubectl-run-container to v1beta3 2015-05-18 13:29:24 -07:00
Yu-Ju Hong
2bf0646c76 Kubelet: do not remove directories of terminated pods
We recently changed `SyncPods` to filter out terminated pods at the beginning
for two reasons:

 * performance: kubelet no longer keeps goroutines to checks containers for
   terminated pods.
 * correctness: kubelet relies on inspecting dead containers to generate
   pod status. Because dead containers may get garbage collected and
   kubelet does not have checkpoints yet, syncing terminated pod could
   lead to modifying the status of a terminated pod.

However, even though kubelet should not *sync* the terminated pods, it
should not attempt to remove the directories and volumes for such
pods as long as they have not been deleted. This change fixes aggresive
directory removal by passing all pods (including terminated pods) to the
cleanup functions.
2015-05-18 13:23:49 -07:00
deads2k
0c14e0cbdb add pull secret references to pods 2015-05-18 16:18:16 -04:00
Brendan Burns
c4ab34f7f9 Merge pull request #8368 from bcbroussard/web-ui-updates
Update web ui listing pages
2015-05-18 13:16:54 -07:00
Wojciech Tyczynski
d7834f5033 Merge pull request #8414 from pweil-/dedupe-sc
remove deprecated fields from v1 types
2015-05-18 12:57:38 -07:00
Victor Marmol
4a1100bb66 Don't run OOM watcher is cAdvisor is not available.
Fixes #8424.
2015-05-18 12:18:12 -07:00
Victor Marmol
a7341cfb77 Merge pull request #8386 from smarterclayton/make_kubelet_consumable
Make it easier to reuse kubelet server code
2015-05-18 11:26:55 -07:00
Daniel Smith
6dbecc2a33 Merge pull request #8165 from feihujiang/checkjsonformat
Check json format firstly
2015-05-18 11:24:56 -07:00
Daniel Smith
c27999da07 Merge pull request #7966 from deads2k/add-dockercfg-secrets
add dockercfg secret types
2015-05-18 11:24:02 -07:00
Victor Marmol
45874d5f76 Merge pull request #5547 from gmarek/client3
Add a resource specifying number of Pods that are allowed to run on Kubelet.
2015-05-18 11:11:43 -07:00
Paul Weil
ad4e4c90ce remove deprecated fields from v1 types 2015-05-18 14:07:36 -04:00
Yu-Ju Hong
050b8ba60b Kubelet: move active deadline check to per pod worker
Per-pod workers have sufficient knowledge to determine whether a pod has
exceeded the active deadline, and they set the status at the end of each sync.
Move the active deadline check to generatePodStatus so that per pod workers
can update the pod status directly. This eliminates the possibility of a race
condition where both SyncPods and the pod worker are updating the status, which
could lead to temporary erratic pod status behavior (pod phase: failed ->
running -> failed).
2015-05-18 10:52:41 -07:00
Yu-Ju Hong
25668ccc11 Kubelet: remove the getPodstatus method
Pod statuses are periodically writtien to the status manager, and status
manager sets the start time of the pod. All non-status-modifying code should
perform cache lookup and should not attempt to generate pod status on its own.
2015-05-18 10:52:36 -07:00
Vish Kannan
969023f3ec Merge pull request #8389 from smarterclayton/chatty_endpoints_controller
Endpoints controller is logging too much
2015-05-18 09:40:57 -07:00
Satnam Singh
26b27b5e0f Merge pull request #8374 from jimmidyson/docker-log-symlink-separator
Docker log symlinks should use underscore separator
2015-05-18 08:59:07 -07:00
Victor Marmol
0e804b03a4 Merge pull request #8220 from thockin/label-validation
Add test case for qname validation, fix impl
2015-05-18 08:40:56 -07:00
Victor Marmol
4ba22e713a Merge pull request #8296 from jlowdermilk/gen-analytics
Add ga-beacon analytics to gendocs scripts
2015-05-18 08:40:02 -07:00
Victor Marmol
bf912e0d82 Merge pull request #8338 from nikhiljindal/omitEmpty
Fixing the omitempty tag
2015-05-18 08:39:47 -07:00
Victor Marmol
fa716a1b48 Merge pull request #8344 from jlowdermilk/clientcmd-api
Remove dependency on pkg/api from pkg/client/clientcmd/api
2015-05-18 08:39:18 -07:00
Victor Marmol
315d9a32a7 Merge pull request #8380 from justinsb/visibility_1_util_portrange
Add util.PortRange, so that a port range can be a flag.  Format: lo-hi
2015-05-18 08:37:57 -07:00
Victor Marmol
90d6080fe8 Merge pull request #8392 from liggitt/ttlfunc
Pass correct update flag to TTLFunc
2015-05-18 08:36:19 -07:00
Victor Marmol
618c5c567f Merge pull request #8400 from a-robinson/bug
Properly handle nil cached services in the service controller's node reconciler
2015-05-18 08:35:50 -07:00
Clayton Coleman
3b10d82864 Merge pull request #8391 from liggitt/etcd_token_lookup
Make serviceaccount/token lookup more flexible
2015-05-18 11:08:30 -04:00
Clayton Coleman
485a420326 Merge pull request #8257 from liggitt/multi_user_controller
Allow ServiceAccountsController to manage multiple named service accounts
2015-05-18 10:39:50 -04:00
Clayton Coleman
a2e4f95e32 Merge pull request #8269 from smarterclayton/add_proxier_error
Proxier should return typed errors
2015-05-18 10:00:44 -04:00
Clayton Coleman
4a47e89e8a Merge pull request #8407 from mfojtik/double-timestamps
Disable 'Timestamps' in Docker logs to prevent double-timestamps
2015-05-18 09:59:50 -04:00
deads2k
be0f2d2930 add dockercfg secret types 2015-05-18 08:25:27 -04:00
Derek Carr
eb12565960 Merge pull request #8203 from pweil-/expose-context-to-admission
Expose user info to admission controllers
2015-05-18 08:25:10 -04:00
deads2k
d404a17f0a allow leading dots in secret keys 2015-05-18 08:17:58 -04:00
Michal Fojtik
7d11e226b7 Disable 'Timestamps' in Docker logs to prevent double-timestamps 2015-05-18 12:27:19 +02:00
Alex Robinson
3cf80e76c8 Properly handle nil cached services in the service controller's node reconciler.
Add a test that catches the former bug.
2015-05-17 22:36:48 -07:00
feihujiang
d36173e855 Check json format firstly
Check json format firstly

check json format firstly

check json format firstly
2015-05-18 10:44:29 +08:00
BC Broussard
f62aa79cd5 Only show more button on list pages if scope.moreClick defined
Remove placeholder thumbnails from pod listing page of web ui
Show pods when there are no labels
2015-05-17 15:59:53 -07:00
Jordan Liggitt
a2d6dd0467 Pass correct update flag to TTLFunc 2015-05-17 00:42:30 -04:00
Jordan Liggitt
d90e7409e4 Prevent auth recursion for service account tokens 2015-05-16 23:39:07 -04:00
Clayton Coleman
78ad32a538 Endpoints controller is logging too much
Pods not having an IP yet or pods that don't have a port aren't v(0)
log items, since the former is usually temporary and the latter has
nothing actionable for an admit.
2015-05-16 19:37:13 -04:00
Clayton Coleman
c54097d96c DefaultMux should only register the first time 2015-05-16 16:11:24 -04:00
Clayton Coleman
1f628f2340 Bump fake docker version to emulate Docker 1.6 2015-05-16 16:10:49 -04:00
Justin Santa Barbara
2457c284ed Add util.PortRange, so that a port range can be a flag. Format: lo-hi 2015-05-16 15:52:57 -04:00
Jimmi Dyson
2d4067f1fd Fixes #8374: Underscore separator in docker log symlink 2015-05-16 19:19:27 +01:00
Jordan Liggitt
7e9281fc39 Allow ServiceAccountsController to manage multiple named service accounts 2015-05-15 23:42:00 -04:00
Patrick Reilly
4c4e7b2dd5 Update dashboard breadcrumbs
- Update back buttons
- Ignore duplicated README.md
- Rename /minions to /nodes
- Deactivate more buttons
- Updates to list selection and node detail page
2015-05-15 20:38:15 -07:00
Patrick Reilly
75d062b89d Restore WebUI breadcrumbs
- Update paths to svg images
 - Restore sections concept
 - Tested with local cluster
2015-05-15 20:35:13 -07:00
nikhiljindal
0ce0150bde Fixing the omitempty tag 2015-05-15 19:29:14 -07:00
Jeff Lowdermilk
db09ceae25 Remove dependency on pkg/api from pkg/client/clientcmd/api 2015-05-15 19:03:34 -07:00
Jeff Lowdermilk
553f9f822b Add ga-beacon analytics to gendocs scripts
hack/run-gendocs.sh puts ga-beacon analytics link into all md files,
hack/verify-gendocs.sh verifies presence of link.
2015-05-15 18:56:38 -07:00
Daniel Smith
cf337051e0 Merge pull request #7819 from nikhiljindal/etcdTranslation
Adding a script to update etcd objects as per the latest API Version
2015-05-15 18:28:36 -07:00
Brian Grant
c4b20672f2 Merge pull request #8302 from bcbroussard/web-ui-links
Fix misdirected links in Web UI from pod conversion
2015-05-15 17:37:15 -07:00
Prashanth Balasubramanian
4200033c0a Add a simple master benchmark and a wrapper to run it. 2015-05-15 17:30:17 -07:00
Prashanth B
6144b49139 Merge pull request #8336 from brendandburns/kubectl
Add a test for status message generation.
2015-05-15 17:06:21 -07:00
nikhiljindal
fa9f864782 Adding a script to update etcd objects 2015-05-15 16:20:35 -07:00
Alex Robinson
edf5a78604 Don't try deleting a target pool if we failed to delete its forwarding rule. 2015-05-15 22:05:23 +00:00
Tim Hockin
71d375e22f Add test case for qname validation, fix impl 2015-05-15 14:45:36 -07:00
Yu-Ju Hong
e1a153e841 Merge pull request #8340 from dchen1107/clean
Wait for docker to start cadvisor.
2015-05-15 14:36:10 -07:00
Yu-Ju Hong
b8dd790ca1 Merge pull request #8284 from yifan-gu/rkt_fix
kubelet/rkt: Fix rkt status parsing, and resource requirement convert…
2015-05-15 14:30:48 -07:00
Yifan Gu
aa7393b55e kubelet/rkt: Fix rkt status parsing, and resource requirement convertion. 2015-05-15 13:42:36 -07:00
derekwaynecarr
8216332611 Kubelet kills a pod that exceeds ActiveDeadlineSeconds 2015-05-15 16:33:37 -04:00
Dawn Chen
85ca8506bb Wait for docker to start cadvisor. 2015-05-15 13:24:24 -07:00
Jeff Lowdermilk
46bd6f298a Merge pull request #8237 from smarterclayton/continue_on_error
Make ContinueOnError actually work
2015-05-15 12:57:29 -07:00
Brendan Burns
a197b24fb7 Add a test for status message generation. Fix a bug in reason message handling. 2015-05-15 20:45:16 +01:00
Jeff Lowdermilk
a5bc6bdaf3 Merge pull request #8166 from kargakis/labels-for-object
expose: Re-use labels in case none was specified
2015-05-15 11:35:52 -07:00
Prashanth B
0f98a1dd78 Merge pull request #8312 from wojtek-t/remove_gob
Remove gob reference as they are no longer needed after #8188
2015-05-15 11:26:20 -07:00
Clayton Coleman
a47716e66d Make ContinueOnError actually work
In resource.Builder ContinueOnError() should actually do so.

Reorganized util.CheckErr() to make it display bulk errors more
effectively and be more reusable. Clarified that CheckErr is not
specific to kubectl in Godoc. Changed the "Error: " prefix to
"error: " to more closely match Unix conventions.
2015-05-15 14:26:14 -04:00
Clayton Coleman
de36967c7e Proxier should return typed errors 2015-05-15 13:50:05 -04:00
Victor Marmol
43e4654333 Merge pull request #8292 from yujuhong/rm_podinfo
Remove /podInfo endpoint on kubelet
2015-05-15 08:42:02 -07:00
Victor Marmol
e7750fa0c7 Merge pull request #8274 from yujuhong/filter_terminated
kubelet: filter out terminated pods before rejecting pods
2015-05-15 08:02:44 -07:00
Filip Grzadkowski
1970e24bad Merge pull request #8310 from wojtek-t/rename_conversion_generator
Refactor conversion generator
2015-05-15 15:51:12 +02:00
Wojciech Tyczynski
108615d081 Refactor conversion generator 2015-05-15 15:11:18 +02:00
Wojciech Tyczynski
e1d9694558 Remove gob 2015-05-15 13:44:37 +02:00
kargakis
ac652d16e6 expose: Re-use labels in case none was specified 2015-05-15 11:54:41 +02:00
gmarek
27d660d0ac Add a resource specifying number of Pods that are allowed to run on Kubelet. 2015-05-15 10:57:46 +02:00
Lv Lv
433a249610 Fix a potential bug in TestControllerBurstReplicas: manager.podStore.Store.Add(&pod) actually adds a pointer to a local copy of pod 2015-05-15 13:41:34 +08:00
BC Broussard
789364354a Fix misdirected links in Web UI 2015-05-14 21:16:36 -07:00
Victor Marmol
b00d844868 Merge pull request #8293 from BenTheElder/break_up_proxier
Move proxySocket out of proxier.go to proxysocket.go in pkg/proxy
2015-05-14 18:27:03 -07:00
Victor Marmol
296152ec6d Merge pull request #8281 from dchen1107/cleanup
OOM protected docker processes (-900)
2015-05-14 18:26:30 -07:00
Victor Marmol
8bc3e5121f Merge pull request #8188 from krousey/deep_copy
Changing the implementation of DeepCopy to use reflection
2015-05-14 18:25:30 -07:00
Yu-Ju Hong
4b40db3367 Remove /podInfo endpoint on kubelet
Kubelet sends pod status updates to the API server now. This endpoint is no
longer needed.
2015-05-14 17:51:26 -07:00
Adam Sunderland
6f6ca0433f Fixing Tests 2015-05-14 19:24:27 -05:00
Adam Sunderland
9849db7fdf Fixing Many Issues 2015-05-14 18:53:47 -05:00
BenTheElder
78d2fda480 Move proxySocket out of proxier.go to proxysocket.go
Moves proxySocket out of proxier.go to new proxysocket.go in proxy
package in order to start separating proxy logic and implementation and
make proxier more manageable to review.
2015-05-14 19:08:35 -04:00
Dawn Chen
ebbb130af8 OOM protected docker processes (-900) 2015-05-14 15:49:12 -07:00
Victor Marmol
c50f906170 Merge pull request #8264 from thockin/proxier-retry
Unexport a symbol in proxier
2015-05-14 14:29:10 -07:00
David Oppenheimer
7a21d7ab1f Merge pull request #8053 from jdef/upstream_mesos_cloud
integrate mesos cloud provider with k8s proper
2015-05-14 13:57:39 -07:00
Kris Rousey
4d031abc16 Changing the implementation of DeepCopy to use reflection instead of Gob encode/decode. 2015-05-14 13:46:31 -07:00
Victor Marmol
353f304433 Merge pull request #8228 from yifan-gu/rkt_image_cat
kubelet/rkt: Add getImageManifest()
2015-05-14 13:32:52 -07:00
Yu-Ju Hong
a2d04a84de kubelet: filter out terminated pods before rejecting pods
Currently, kubelet doesn't filter out terminated pods before determining whether
a pod fits. This could lead to duplicated events for rejecting the pods. This
change fixes that.

This change also groups all related pod fitness checking functions into one
function to improve readability.
2015-05-14 13:02:36 -07:00
Victor Marmol
75c9228ea2 Merge pull request #8249 from kargakis/stop-fix
stop: Check for error when resizing rcs
2015-05-14 12:56:14 -07:00
Adam Sunderland
ff9996c100 Use aws-sdk-go 2015-05-14 14:18:25 -05:00
Yifan Gu
daf7c8d686 kubelet/rkt: Use RunContainerOptions to get the arguments. 2015-05-14 12:03:11 -07:00
Yifan Gu
2a87d56171 kubelet/rkt: Add getImageManifest() to retrive the image manifest for container. 2015-05-14 12:03:11 -07:00
Tim Hockin
667dd81905 un-export CreateProxier 2015-05-14 11:37:25 -07:00
Filip Grzadkowski
61b1c975af Merge pull request #8172 from wojtek-t/deep_copy_generator
Create DeepCopy benchmarks
2015-05-14 20:07:49 +02:00
Clayton Coleman
41ab23b8bf Merge pull request #8245 from kazegusuri/pod_template_client
add client for podTemplate resource
2015-05-14 13:46:41 -04:00
Victor Marmol
07b8b79696 Merge pull request #8247 from kazegusuri/fix-struct-field-tag
Fix struct field tag
2015-05-14 10:36:34 -07:00
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
Victor Marmol
5e7a7b9206 Merge pull request #8241 from gmarek/remove_name
Remove unused ClusterName from NodeController
2015-05-14 09:49:34 -07:00
Tim Hockin
2c28c6d99f Merge pull request #8191 from pmorie/secrets-reboot
Make secret volumes function correctly across reboot
2015-05-14 09:31:02 -07:00
Victor Marmol
aa744f92da Merge pull request #7847 from swagiaal/fix-gce-pd-on-atomic-host
Support default udev GCE PD device path
2015-05-14 09:10:06 -07:00
Victor Marmol
af36d02e58 Merge pull request #8244 from wojtek-t/non_compatible_fields
Fix convertion generator for manually written ones
2015-05-14 09:04:51 -07:00
gmarek
8a4717d3f5 Remove unused ClusterName from NodeController 2015-05-14 18:01:23 +02:00
kargakis
1c5309cc16 stop: Check for error when resizing rcs 2015-05-14 16:49:43 +02:00
Clayton Coleman
aec4196741 Merge pull request #8173 from brendandburns/kubectl
Fix a bug where IgnoreErrors was inverted.
2015-05-14 10:18:12 -04:00
Masahiro Sano
bccafcb97b fix struct field tag 2015-05-14 22:29:11 +09:00
Masahiro Sano
3b27e73726 add client for podTemplate resource 2015-05-14 22:05:03 +09:00
Wojciech Tyczynski
b52a4e60fc Fix convertion generator for manually written ones 2015-05-14 13:51:34 +02:00
Wojciech Tyczynski
b00020884c DeepCopy benchmarks 2015-05-14 09:43:21 +02:00
Paul Morie
bea1c05057 Make secret volumes function correctly across reboot 2015-05-14 01:51:14 -04:00
Paul Weil
aaeb1dad93 expose user info to admission controllers 2015-05-13 21:31:51 -04:00
Dawn Chen
309a157665 Merge pull request #7984 from cjcullen/kubelet
Kubelet configure cbr0 instead of configure-vm.sh
2015-05-13 17:32:52 -07:00
Tim Hockin
2f59aa4f25 Somewhat better error messages for common formats
Clearer strings with examples.
2015-05-13 13:59:16 -07:00
Tim Hockin
b429e89251 Spec qualified names (label keys) more tightly
It can be a (DNS_SUBDOMAIN/)?label, but we were validating it
incorrectly before.
2015-05-13 13:59:16 -07:00
Daniel Smith
25d32ee513 Merge pull request #7939 from nikhiljindal/latest
Adding an env variable to specify the list of supported API versions
2015-05-13 13:36:43 -07:00
Tim Hockin
9aa9260295 Merge pull request #7529 from markturansky/yoko_pv_mgr
Changed binding from volume.Spec.ClaimRef to claim.Spec.VolumeName
2015-05-13 12:40:57 -07:00
markturansky
6b29c569ff regen again 2015-05-13 14:46:47 -04:00
Victor Marmol
67eab52b9e Merge pull request #8146 from yifan-gu/runtime_opt
kubelet/container: Refactor RunContainerOptions.
2015-05-13 11:09:56 -07:00
markturansky
fd3f7b2a98 rebased and regen conversions 2015-05-13 14:09:48 -04:00
Jeff Lowdermilk
f8ebc4e21e Merge pull request #8104 from roberthbailey/kubelet-using-kubeconfig
Replace the auth config file with a kubeconfig file when starting the kubelet on GCE.
2015-05-13 11:09:27 -07:00
markturansky
0191574f7e Bi-directional bind between pv.Spec.ClaimRef and pvc.Spec.VolumeName 2015-05-13 14:05:21 -04:00
Derek Carr
f3835c1f7e Merge pull request #8123 from deads2k/expose-flag-bind
expose FlagInfo binding methods
2015-05-13 13:56:24 -04:00
nikhiljindal
8b278202fe Updating the code to set the latest version based on KUBE_LATEST_API_VERSION env flag 2015-05-13 10:53:00 -07:00
Yifan Gu
2617cb26b8 kubelet/container: Add tests for kubelet.makePortMappings(). 2015-05-13 10:01:01 -07:00
Yifan Gu
d164ac0ba0 kubelet/container: Refactor RunContainerOptions.
Make Envs, Mounts, PortMappings more generic.
Also add default name for PortMapping if it's not specified.
2015-05-13 10:01:00 -07:00
Rohit Jnagal
d85d7de444 Merge pull request #8056 from wojtek-t/generate_conversions_for_v1
Generate conversion methods for v1 api.
2015-05-13 09:25:54 -07:00
Brendan Burns
ea3852ec69 Fix a bug where IgnoreErrors was inverted.
Also make an error message a little more verbose.
2015-05-13 16:26:01 +01:00
Victor Marmol
67d576cf48 Merge pull request #8161 from rjnagal/rc
Use non-root available space to trigger out-of-disk events.
2015-05-13 08:07:37 -07:00
Victor Marmol
2c00d9f07c Merge pull request #7421 from brendandburns/prestop
Implement PreStop hooks.
2015-05-13 08:06:43 -07:00
Wojciech Tyczynski
c2f2faeb07 Generate conversion methods for v1 api. 2015-05-13 14:20:59 +02:00
Robert Bailey
c47b9178b4 Replace the auth config file with a kubeconfig file when
starting the kubelet on GCE.
2015-05-13 01:03:28 -07: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
CJ Cullen
31ea7d1295 Put cbr0-modifying stuff behind a flag. Address some other comments. 2015-05-12 23:00:28 -07:00
CJ Cullen
5e3d2b9138 Kubelet configure cbr0 instead of configure-vm.sh 2015-05-12 23:00:12 -07:00
Rohit Jnagal
7a2add5e0a Use non-root available space to trigger out-of-disk events. 2015-05-13 05:46:03 +00:00
Brendan Burns
3f49c556e6 Second try at implementing prestop. 2015-05-12 17:17:03 -07:00
Nikhil Jindal
c2fecff3d5 Merge pull request #8067 from piosz/kubectl
Added label kubernetes.io/name to cluster services
2015-05-12 17:09:22 -07:00
Victor Marmol
40ec627cd4 Merge pull request #8108 from rjnagal/kubelet
Handle out of disk situation on kubelet.
2015-05-12 15:49:31 -07:00
Prashanth Balasubramanian
54b6501349 Check expectations before filtering through active pods. 2015-05-12 14:42:08 -07:00
Victor Marmol
3481db8aee Merge pull request #8136 from yifan-gu/runtime_opt
kubelet/container: Remove ipcMode and netMode from  RunContainerOptions.
2015-05-12 14:41:49 -07:00
Yifan Gu
a2dac158c2 kubelet/container: Remove ipcMode and netMode from RunContainerOptions.
Since createPodInfraContainer() is moved into dockertools. There is no
need to pass the ipcMode or netMode via RunContainerOptions.
2015-05-12 14:18:00 -07:00
Paul Morie
6ac55002d8 Improve kubelet test for env vars 2015-05-12 17:14:32 -04:00
Rohit Jnagal
fab980598a Merge pull request #8122 from vmarmol/docker-container
Run Docker Daemon in a Resource-only Container
2015-05-12 13:16:05 -07:00
Vish Kannan
a74522a738 Merge pull request #8011 from brendandburns/exec
Switch exec to look at exit code not output status.
2015-05-12 12:43:11 -07:00
Rohit Jnagal
2cf0dfb79d Handle out of disk situation on kubelets.
Kubelet will stop accepting new pods if it detects low disk space on root fs or fs holding docker images.
Running pods are not affected. low-diskspace-threshold-mb is used to configure the low diskspace threshold.
2015-05-12 18:23:09 +00: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
Brian Grant
572b819944 Merge pull request #8052 from dkorn/PodConditions
Inconsistency in api terminology of pod conditions
2015-05-12 11:03:59 -07:00
deads2k
bd66e9011d expose FlagInfo binding methods 2015-05-12 13:33:11 -04:00
Nikhil Jindal
d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
Victor Marmol
e1447618f4 Integrating ContainerManager into Kubelet 2015-05-12 10:13:23 -07:00
James DeFelice
7387a2d0cd address review comments of @davidopp 2015-05-12 17:05:34 +00:00
Victor Marmol
a9db69ecfa Implementation of ContainerManager
Implementation maintains a thread which ensures that the Docker daemon
is in a container.
2015-05-12 09:59:47 -07:00
Victor Marmol
0570480242 Kubelet: Add ContainerManager interface.
This component will manage containers on the machine not managed by the
runtime.
2015-05-12 09:58:21 -07:00
Tim Hockin
81aab06e3d Merge pull request #7486 from feihujiang/master
Duplicate service port name can't be validated
2015-05-12 09:12:01 -07:00
James DeFelice
eca9fd58c7 mesos cloud provider implementation 2015-05-12 16:02:26 +00:00
Victor Marmol
1880f73658 Merge pull request #8106 from rjnagal/podinfo
Make SyncPodSync as the default SyncPodType.
2015-05-12 08:20:19 -07:00
Derek Carr
c1158fa696 Merge pull request #7969 from smarterclayton/rest_fixes
Fixes to apiserver for subresources and naming
2015-05-12 10:57:34 -04:00
Derek Carr
3e4713787a Merge pull request #7436 from akram/fix_port_forward_listens_ipv_and_ipv4
Port forward now listens on IPv4 and IPv6 localhost address
2015-05-12 10:27:56 -04:00
Eric Paris
d80b43838c Merge pull request #8059 from pmorie/volume-cleanup
NFS plugin should use correct mounter
2015-05-12 09:24:00 -05:00
Derek Carr
a11819e4a6 Merge pull request #8057 from kargakis/rework-resize
resize: Use Resize method
2015-05-12 10:17:31 -04:00
dkorn
25ada0e118 Inconsistency in api terminology of pod conditions
While nodes returns the "conditions" key in api requests, pods returns
"Condition". Also, from pods states docs it seems that the right
terminology should be "conditions".

Fixes #8038
2015-05-12 10:52:52 +03:00
Piotr Szczesniak
962f10ee58 Merge pull request #7771 from piosz/load_generator
Implemented first version of load test
2015-05-12 09:24:19 +02:00
feihujiang
4bb594b34d Duplicate service port name can't be validated
Duplicate service port name can't be validated

Duplicate service port name can't be validated

Duplicate service port name can't be validated
2015-05-12 15:18:27 +08:00
Rohit Jnagal
9eb01a6da1 Make SyncPodSync as the default SyncPodType.
We would like the default to be sync instead of create to easily differentiate
create operations in empty metrics map.
2015-05-12 06:25:48 +00:00
Brendan Burns
be15e84e83 Kubernetes version v0.17.0-dev 2015-05-11 21:43:34 -07:00
Brendan Burns
82f8bdac06 Kubernetes version v0.17.0 2015-05-11 21:43:34 -07:00
Nikhil Jindal
442412e3ad Merge pull request #8089 from thockin/dns
Introduce an 'svc' segment for DNS search
2015-05-11 17:39:12 -07:00
Nikhil Jindal
3d31883829 Merge pull request #8083 from brendandburns/kubectl
Add a flag to disable legacy APIs
2015-05-11 17:35:28 -07:00
Tim Hockin
41033af256 Introduce an 'svc' segment for DNS search 2015-05-11 17:20:44 -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
Brendan Burns
fbd0143fa8 Merge pull request #7971 from deads2k/make-docker-keyring-handle-multiple-hits
make the dockerkeyring handle mutiple matching credentials
2015-05-11 17:01:37 -07:00
Daniel Smith
5a6b079515 Merge pull request #8085 from smarterclayton/read_only_port_wrong
Public read only port is incorrect in master
2015-05-11 16:35:12 -07:00
Clayton Coleman
0617951ead Public read only port is incorrect in master 2015-05-11 19:20:38 -04:00
Brendan Burns
d8f48290e9 Add a flag to disable legacy APIs 2015-05-11 16:09:25 -07:00
Victor Marmol
1465475401 Merge pull request #8079 from yifan-gu/rm_command_runner
kubelet/container: Move prober.ContainerCommandRunner to container.
2015-05-11 16:05:25 -07:00
Jeff Lowdermilk
ac87ed6516 Merge pull request #8064 from deads2k/death-to-auth-path
eliminate auth-path
2015-05-11 15:41:41 -07:00
Yifan Gu
7831b7da72 kubelet/container: Move prober.ContainerCommandRunner to container.
Also include the ContainerCommandRunner in Runtime interface, but
still keep the ContainerCommandRunner interface for testability.
2015-05-11 15:32:51 -07:00
Yu-Ju Hong
3f791db886 Kubelet: remove unused getHostFieldLabel function 2015-05-11 14:39:22 -07:00
Jordan Liggitt
92bd58ede6 ServiceAccount e2e/integration tests 2015-05-11 17:18:06 -04:00
Jordan Liggitt
db1f0dc906 JWT token generation/verification 2015-05-11 17:18:06 -04:00
Jordan Liggitt
6e570732f5 ServiceAccounts controller 2015-05-11 17:18:05 -04:00
Jordan Liggitt
0955808668 ServiceAccountTokens controller 2015-05-11 17:18:05 -04:00
Jordan Liggitt
53d55f4192 Add ServiceAccount API type, client 2015-05-11 17:18:05 -04:00
Jordan Liggitt
6e1e7dbb24 Add ServiceAccountToken SecretType 2015-05-11 17:18:05 -04:00
Yu-Ju Hong
8b3130b112 Merge pull request #7980 from yifan-gu/fix_kubelet_tests
kubelet: Fix racy kubelet tests.
2015-05-11 14:09:44 -07:00
Dawn Chen
86479cc56c Add support to pull log for last terminated container 2015-05-11 12:54:04 -07:00
Clayton Coleman
ecbca9eb17 Allow v1beta3 to POST events to all namespaces
A namespaced resource that supports ALL may allow creation
on the root (all namespaces) collection, thus adding POST
here.

We need to better formalize the definition of calls on namespaced
resources at the root scope, so Storage objects that do not support
that call pattern can do so at definition time and reject those
calls.
2015-05-11 15:51:05 -04:00
Clayton Coleman
84d1f19016 Subresources should be in their parent rest scope
A subresource like "Binding" does not necessarily have
to have a namespace.  The RESTScope of a subresource
should always be its parent resource.
2015-05-11 15:51:05 -04:00
Clayton Coleman
b2a2ce0bb3 Legacy scope naming should NEVER set namespace for root
... resources.
2015-05-11 15:51:04 -04:00
Clayton Coleman
964bc8afda Verify namespace is not set on root objects 2015-05-11 15:51:04 -04:00
Yifan Gu
85b453091b kubelet: Add tests for fakePodWorkders. 2015-05-11 12:50:33 -07:00
Yifan Gu
52af792852 kubelet: Fix racy kubelet tests.
Add fakePodWorkders to run syncPod() in serial for testing.
2015-05-11 12:50:33 -07:00
Victor Marmol
65cf37ab6d Merge pull request #8069 from yujuhong/runcontainer
Kubelet: minor cleanups
2015-05-11 12:34:33 -07:00
kargakis
69a96f3ea1 resize: Use Resize method 2015-05-11 21:12:49 +02:00
Nikhil Jindal
0da12c1ba9 Merge pull request #7869 from bprashanth/rc_rl
Rate limit replica creation
2015-05-11 11:24:02 -07:00
Yu-Ju Hong
a9c9505206 Use VirtualSize of the docker image as the image size 2015-05-11 11:03:47 -07:00
Yu-Ju Hong
3599d81ef1 Remove some docker references 2015-05-11 11:03:47 -07:00
Yu-Ju Hong
3487a165b8 Unexport DockerManager.RunContainer 2015-05-11 11:03:41 -07:00
Paul Morie
e2dd95a8b3 Make nfs volume plugin use injected mounter 2015-05-11 13:36:36 -04:00
Piotr Szczesniak
12e44ff8a9 Added label kubernetes.io/name to cluster services
The label specifies service name which is displayed in kubectl cluster-info
2015-05-11 19:35:53 +02:00
Nikhil Jindal
2cc8696425 Merge pull request #7919 from brendandburns/kubectl
Fix validation by moving it into the resource builder.
2015-05-11 10:20:14 -07:00
Nikhil Jindal
48dfad6701 Merge pull request #8050 from fgrzadkowski/cache
Add cache with multiple shards to decrease lock contention
2015-05-11 10:18:34 -07:00
Dawn Chen
ffa5947010 Introduce Previous as PodLogOptions 2015-05-11 10:14:22 -07:00
Dawn Chen
ecaf0874b2 Introduce --previous option to kubectl log 2015-05-11 10:14:22 -07:00
Nikhil Jindal
9c0fdc7afd Merge pull request #8039 from nak3/delete-status
Delete status from displayable resources
2015-05-11 10:11:42 -07:00
Nikhil Jindal
6bf5acd109 Merge pull request #8044 from pmorie/pod-volume-injection
Refactor volume interfaces to receive pod instead of ObjectReference
2015-05-11 10:11:00 -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
Vish Kannan
b7289b606e Merge pull request #7786 from thockin/ports
Service port names are required for multi-port
2015-05-11 09:46:02 -07:00
Victor Marmol
307d677e06 Merge pull request #8022 from ddysher/kubelet-privilege
Check Pod privileged container
2015-05-11 09:01:58 -07:00
Paul Morie
14243d3bd6 Fix typo in nsenter_mount.go 2015-05-11 11:41:01 -04:00
Eric Paris
630aed6db1 Merge pull request #8016 from nak3/delete-empty-first-column-lines
Use template to get first column in __kubectl_parse_get()
2015-05-11 10:01:13 -05:00
Piotr Szczesniak
aa116e2033 Implemented first version of load test
As for now it creates a bunch of Replication Controllers and play with them

Partially addresses #3139
2015-05-11 16:40:59 +02:00
deads2k
19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
Clayton Coleman
2e3c40b5c2 Merge pull request #7774 from kargakis/load-object-for-more-safety
expose: Load input object for increased safety
2015-05-11 10:16:20 -04:00
Clayton Coleman
382623f3fa Merge pull request #7896 from wojtek-t/generated_calling_manual
Improments to conversion methods generator
2015-05-11 10:15:32 -04:00
Clayton Coleman
8755ea8ec9 Merge pull request #7704 from smarterclayton/parallel_allocator
Use etcd to allocate PortalIPs instead of in-mem
2015-05-11 09:56:10 -04:00
deads2k
2ecb0ebd73 make the dockerkeyring handle mutiple matching credentials 2015-05-11 09:54:03 -04:00
Filip Grzadkowski
50de4d0081 Add cache with multiple shards to decrease lock contention 2015-05-11 15:07:50 +02:00
Marek Grabowski
16a76f1bd3 Merge pull request #8028 from shawnps/patch-1
Fix struct tag
2015-05-11 14:00:18 +02:00
Marek Grabowski
141e6977d6 Merge pull request #8029 from shawnps/patch-2
Fix struct tag
2015-05-11 13:59:56 +02:00
Marek Grabowski
a0a68b0581 Merge pull request #8031 from shawnps/patch-4
Fix struct tag
2015-05-11 13:58:48 +02:00
Marek Grabowski
c28a83f264 Merge pull request #8032 from shawnps/patch-5
Use Fprintf
2015-05-11 13:57:46 +02:00
Marek Grabowski
01457a92af Merge pull request #8033 from shawnps/patch-6
Fix unused fmt.Errorf result
2015-05-11 13:55:07 +02:00
Marek Grabowski
035daa7fbf Merge pull request #8034 from shawnps/patch-7
Fix printf verb
2015-05-11 13:54:16 +02:00
Wojciech Tyczynski
5578dc99e3 Improvements for conversions generator 2015-05-11 12:21:11 +02:00
Jerzy Szczepkowski
36ab4b4c2f Merge pull request #8036 from shawnps/patch-10
Use Errorf in persistent_volume_claim_binder_test.
2015-05-11 11:17:04 +02:00
Paul Morie
cd359ffa73 Refactor volume interfaces to receive pod instead of ObjectReference 2015-05-10 20:12:57 -04:00
Kenjiro Nakayama
c13f457885 Use template to get first column in __kubectl_parse_get() 2015-05-10 23:32:24 +09:00
Kenjiro Nakayama
5a0acecc54 Delete status from displayable resources 2015-05-10 19:28:02 +09:00
Shawn Smith
50f34d013e Use Errorf 2015-05-10 13:23:03 +09:00
Shawn Smith
295286cdc8 Fix printf verb 2015-05-10 13:18:26 +09:00
Shawn Smith
02d136173a Fix unused fmt.Errorf result 2015-05-10 13:17:00 +09:00
Shawn Smith
555ff0d1bc Use Fprintf 2015-05-10 13:14:05 +09:00
Shawn Smith
48927cb209 Fix struct tag 2015-05-10 13:09:13 +09:00
Shawn Smith
97cdd064c8 Fix struct tag 2015-05-10 13:08:25 +09:00
Shawn Smith
8105ac5346 Fix struct tag 2015-05-10 13:06:20 +09:00
Tim Hockin
3aa39d54b6 Service port names are required for multi-port
There is no provision for the first port to be unnamed.  I think I
initially allowed that, but then the Subset struct became a sorted
struct, so the first-ness of the port got lost.  If you have a Service
with one named and one unnamed port, what happens is that the
EndpointController fails to create Endpoints (validation error).
2015-05-09 20:11:48 -07:00
Deyuan Deng
2f7183cba5 Check Pod privileged container 2015-05-09 17:30:35 -04:00
Deyuan Deng
72a563f618 Use error type from docker go-client instead of string 2015-05-09 15:20:45 -04:00
Victor Marmol
9ded52ac79 Merge pull request #7981 from yujuhong/reasons
Record failure reasons for image pulling
2015-05-08 18:00:46 -07:00
Yu-Ju Hong
d185bfd56a Record failure reason for image pulling 2015-05-08 17:37:11 -07:00
Brendan Burns
c9324e6e38 Switch exec to look at exit code not output status. 2015-05-08 16:51:37 -07:00
Prashanth Balasubramanian
4fdd5bc3f3 Ratelimit replica creation 2015-05-08 14:24:25 -07:00
Daniel Smith
b02149d3d2 Merge pull request #7950 from satnam6502/head2
Make the API server deal with HEAD requests via the service proxy
2015-05-08 14:13:21 -07:00
Brendan Burns
7f11585972 Fix validation by moving it into the resource builder.
Also always print an error for unknown field.
2015-05-08 14:00:33 -07:00
Abhi Shah
1014831a4f Merge pull request #7959 from eparis/bash-completions-fun-if-crap
Remove useless bash conditional
2015-05-08 13:33:40 -07:00
deads2k
6498fc1fda remove cmd respect for auth-path 2015-05-08 16:33:33 -04:00
Clayton Coleman
8bbb64cd8b Generated conversion functions 2015-05-08 16:04:03 -04:00
Clayton Coleman
5bcb96dae1 Separate out the master's control loops
These are "Bootstrap Controllers" as distinct from
the controllers in the controller-manager binary - they
are necessary for the cluster to start running.
2015-05-08 16:04:03 -04:00
Abhi Shah
87e85e25f1 Revert "Added ISCSI to PV structs" 2015-05-08 11:31:35 -07:00
Abhi Shah
9b2a0df811 Merge pull request #7734 from markturansky/iscsi_pv2
Added ISCSI to PV structs
2015-05-08 10:55:41 -07:00
Clayton Coleman
e200d5a317 Make PortalIP alloc HA
* Add an allocator which saves state in etcd
* Perform PortalIP allocation check on startup and periodically afterwards

Also expose methods in master for downstream components to handle IP allocation
/ master registration themselves.
2015-05-08 13:34:16 -04:00
Satnam Singh
220e754f3e Make the API server deal with HEAD requests 2015-05-08 10:33:51 -07:00
Yu-Ju Hong
170f426fb6 Don't use the first token uname -n as the hostname
This change partially reverts the change made in #7910, which takes only the
first token of `uname -n` as the hostname.
2015-05-08 10:09:06 -07:00
Eric Paris
d28660ae49 Remove useless bash conditional
bash just returns the last return code, why are we testing and then
doing the same?
2015-05-08 12:22:07 -04:00
Yifan Gu
7e9ba26103 kubelet: Add container runtime option for rkt. 2015-05-07 23:39:37 -07:00
Yifan Gu
8b1174a3a7 kubelet/container: Move pty*.go to container runtime package.
This makes the labeld pty wrapper available for both container runtime.
2015-05-07 23:36:47 -07:00
kargakis
93dc839b19 Load input object for increased safety 2015-05-08 03:17:54 +02:00
markturansky
6cdec4c093 rebased and updated 2015-05-07 20:54:35 -04:00
Abhi Shah
589154a557 Merge pull request #7821 from lavalamp/deleteEndpoints
Add old endpoint cleanup function
2015-05-07 16:54:41 -07:00
Victor Marmol
65bd04fc51 Merge pull request #7916 from yifan-gu/rkt_rm_label
kubelet/rkt: Remove build label.
2015-05-07 16:24:32 -07:00
Abhi Shah
7b1e9adb47 Merge pull request #7620 from brendandburns/fix
Support recovery from in the middle of a rename.
2015-05-07 16:04:26 -07:00
Clayton Coleman
f2b6c41345 Merge pull request #7715 from csrwng/exec_portfw_client
Update Exec and Portforward client to use pod subresource
2015-05-07 18:57:10 -04:00
markturansky
4c9eac6c3d Added ISCSI to PV structs 2015-05-07 18:13:03 -04:00
Victor Marmol
5074e98ee9 Merge pull request #7910 from yujuhong/hostname
Use the full hostname for mirror pod name.
2015-05-07 14:43:16 -07:00
Abhi Shah
42aa4ead7e Merge pull request #7564 from markturansky/nfs_pv
Added NFS to PV structs
2015-05-07 13:51:40 -07:00
Yifan Gu
41f8c79490 kubelet/rkt: Remove build label.
As we removed the linux specific dependency, now rkt can be built
on other platforms as well.
2015-05-07 13:42:05 -07:00
Victor Marmol
ecf8348609 Revert "kubelet: Add container runtime option for rkt." 2015-05-07 13:01:37 -07:00
Yu-Ju Hong
ab5e0e0b5c Use the full hostname for mirror pod name.
This change appends the full hostname to the mirror pod name (instead of taking
the first token) so that if the hostname is overriden, we'd not be creating
unncessary name conflicts. An example would be that a user overrides the
hostnames to be "127.0.0.1" and "127.0.0.2", and both of them were resolved to
"127" for the mirror pod name suffix.

Also, because `uname -n` could return a FQDN or not, this change takes only
the first token of it as the hostname for consistency.
2015-05-07 12:59:49 -07:00
Victor Marmol
3d0f54f1f6 Merge pull request #7900 from yifan-gu/rkt_switch
kubelet: Add container runtime option for rkt.
2015-05-07 12:22:31 -07:00
Cesar Wong
d954c31b22 Update Exec and Portforward client to use pod subresource 2015-05-07 14:25:14 -04:00
Cesar Wong
619332d58e Utility to convert versioned runtime objects to a set query parameters
JSON struct tags are used as parameter names, fields that do not have
the omitempty marker are always included.
2015-05-07 14:25:14 -04:00
Daniel Smith
6ab51f3bc0 Merge pull request #7668 from bprashanth/scheduling_minions
Scheduler ignores nodes that are in a bad state
2015-05-07 10:58:02 -07:00
Brendan Burns
63cbc715dd Support recovery from in the middle of a rename. 2015-05-07 10:39:15 -07:00
markturansky
dc0b49d960 rebased and updated 2015-05-07 13:33:52 -04:00
Yifan Gu
4f6535ed8a kubelet: Add container runtime option for rkt. 2015-05-07 10:31:58 -07:00
Brendan Burns
5461231c1c Merge pull request #7567 from endocode/kbeecher/wip_etcd_migrate_keys
WIP: Add startup code to apiserver to migrate etcd keys
2015-05-07 10:05:41 -07:00
markturansky
68ce264a6d Added NFS to PV structs 2015-05-07 12:38:27 -04:00
Victor Marmol
35c644a45f Merge pull request #7870 from yifan-gu/rkt_volume
Add volumeGetter to rkt.
2015-05-07 08:58:00 -07:00
Victor Marmol
581821da23 Merge pull request #7763 from wojtek-t/kubelet_removing_nodes
Set NodeReady=False when docker is dead
2015-05-07 08:56:44 -07:00
Clayton Coleman
b6fb8c861e Merge pull request #7556 from wojtek-t/conversions_with_defaulting
Auto-generated conversion methods calling one another
2015-05-07 11:28:35 -04:00
Wojciech Tyczynski
9ab167981f Merge pull request #7833 from fgrzadkowski/etcd_metrics
Add latency metrics for etcd operations
2015-05-07 10:32:26 +02:00
Wojciech Tyczynski
128835ec40 Merge pull request #7885 from hurf/master
Update errors_test.go
2015-05-07 10:06:26 +02:00
Wojciech Tyczynski
e26da316dc Set NodeReady=False when docker is dead 2015-05-07 09:30:25 +02:00
Wojciech Tyczynski
156795f298 Update conversion functions 2015-05-07 09:27:58 +02:00
Wojciech Tyczynski
5173ee07e1 Chain conversion functions while generation 2015-05-07 09:27:58 +02:00
Victor HU
f42a18d3c2 Update errors_test.go
minor change in log message
2015-05-07 15:06:15 +08:00
Filip Grzadkowski
970e972cd8 Add latency metrics for etcd operations 2015-05-07 08:58:28 +02:00
Yifan Gu
a8f86da35b kubelet/rkt: Add volumeGetter to rkt.
This enable rkt to fetch the volume mounts by the kubelet.
2015-05-06 19:30:33 -07:00
Prashanth Balasubramanian
4b0607cf0b Scheduler ignored nodes with unknown condition status 2015-05-06 18:32:52 -07:00
Victor Marmol
f6b7029475 Merge pull request #7859 from yifan-gu/rkt_remove_store
kubelet/rkt: Remove dependencies on rkt.store
2015-05-06 17:45:29 -07:00
Daniel Smith
1177adfdc8 Merge pull request #7867 from bprashanth/testWatchControllers
Fix controller unittests
2015-05-06 17:18:15 -07:00
Yifan Gu
8715c54bd3 kubelet/container: Move kubelet.volumeMap to container.VolumeMap.
This is a quick fix to solve circular dependency problem when
rkt references volume maps.
2015-05-06 16:50:57 -07:00
Prashanth Balasubramanian
8bf0adf147 Add a getter to pod expectations and use it in unittests 2015-05-06 16:01:03 -07:00
Victor Marmol
d6ea33fbb5 Merge pull request #7849 from yifan-gu/rkt_components
kubelet/rkt: Inject dependencies to rkt.
2015-05-06 16:00:02 -07:00
Yifan Gu
8cbe8938c9 kubelet/rkt: Remove getImageID().
Replace getImageID() with getImageByName(), this can remove the
dependency on rkt.store.
2015-05-06 15:59:31 -07:00
Victor Marmol
d46a2b1349 Merge pull request #7861 from pmorie/pull-secrets
Change signature of container runtime PullImage to allow pull w/ secret
2015-05-06 15:56:56 -07:00
CJ Cullen
fbd125e4e2 Remove restriction that cluster-cidr be a class-b 2015-05-06 15:01:13 -07:00
Paul Morie
df08b15121 Change signature of container runtime PullImage to allow pull w/ secret 2015-05-06 17:42:03 -04:00
Daniel Smith
b49dd0ad1e Add old endpoint cleanup function 2015-05-06 13:03:18 -07:00
Clayton Coleman
b60a90c3f4 Merge pull request #7718 from csrwng/create_sub_name
API Server - pass path name in context of create request for subresource
2015-05-06 15:42:03 -04:00
Sami Wagiaalla
a85451addc Support default udev GCE PD device path
The expected GCE PD device name is google-{name of disk}. This is
because standard GCE images contain a udev rules file which renames
the GCE PD device to google-{name of disk} https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google-startup-scripts/lib/udev/rules.d/65-gce-disk-naming.rules. In custome images which do not have that udev rules file
the device gets the default rules apply http://cgit.freedesktop.org/systemd/systemd/tree/rules/60-persistent-storage.rules
and the GCE PD device ends up with a name which looks like scsi-0Google_PersistentDisk_{name of disk}
This patch adds support for that scenario.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-05-06 15:09:15 -04:00
Brian Grant
32b4b1cdd7 Merge pull request #7575 from brendandburns/kubectl
Rolling Updates: Add support for --rollback.
2015-05-06 11:35:57 -07:00
Yifan Gu
dee060c8fd kubelet/rkt: Inject dependencies to rkt.
Add necessary components rkt.
2015-05-06 11:28:01 -07:00
Cesar Wong
fd65427e28 API Server - pass path name in context of create request for subresource
Allows a REST storage for a subresource to obtain name in path from
request.
2015-05-06 13:40:18 -04:00
Brendan Burns
c9e33e197d Add support for --rollback. 2015-05-06 10:21:35 -07:00
Clayton Coleman
800de8cb7e Merge pull request #7832 from wojtek-t/separate_generated_conversion
Support manually-created and generated conversion functions
2015-05-06 12:53:46 -04:00
Prashanth B
da42f13941 Merge pull request #7749 from yujuhong/stale_cache
Kubelet: record the timestamp correctly in the runtime cache
2015-05-06 09:20:30 -07:00
Victor Marmol
b4ae750e5d Merge pull request #7830 from rhcarvalho/fix-metric-label
Fix metric label
2015-05-06 09:08:29 -07:00
Paul Morie
5bcdecbb6b Fix v1beta1 typos in v1beta2 conversions 2015-05-06 11:21:39 -04:00
Wojciech Tyczynski
458fec6c99 Generate conversion functions for v1beta3 2015-05-06 16:43:15 +02:00
Wojciech Tyczynski
d4b32a8371 Support both manual and generate conversions 2015-05-06 16:43:15 +02:00
Rodolfo Carvalho
075ae79826 Fix metric label
Signed-off-by: Rodolfo Carvalho <rcarvalh@redhat.com>
2015-05-06 10:29:50 +02:00
Jerzy Szczepkowski
4d655e3fcf Merge pull request #7803 from yifan-gu/rkt_docker_image
kubelet/rkt: Add docker prefix to image string.
2015-05-06 09:22:50 +02:00
Robert Bailey
06c2f4e3d5 Merge pull request #7799 from cjcullen/test_pull_5246
Fix sync problems in #5246
2015-05-05 22:31:10 -07:00
Yu-Ju Hong
c075719f05 Kubelet: fix the runtime cache to not cache the stale pods
If a pod worker sees stale pods from the runtime cache which were retrieved
before their last sync finished, it may think that the pod were not started
correctly, and attemp to fix that by killing/restarting containers.
There are two issues that may cause runtime cache to store stale pods:
  1. The timstamp is recorded *after* getting the pods from the container
     runtime. This may lead the consumer to think the pods are newer than they
     actually are.
  2. The cache updates are triggered by many goroutines (pod workers, and the
     updating thread). There is no mechanism to enforece that the cache would
     only be updated to newer pods.

This change fixes the above two issues by making sure one always record the
timestamp before getting pods from the container runtime, and updates the
cached pods only if the timestamp is newer.
2015-05-05 18:28:38 -07:00
CJ Cullen
292d33e33c Add synchronization around nodeMap 2015-05-05 17:11:38 -07:00
Daniel Smith
8a47574644 Merge pull request #7468 from simon3z/serialized-reference
replica: serialize created-by reference
2015-05-05 16:42:42 -07:00
Jerzy Szczepkowski
e967ffd522 Added flag to set cluster class B network address for pods, add flag to disable allocation CIDRs for Pods. Fixed synchornization bug in NodeController registerNodes(). 2015-05-05 16:10:43 -07:00
Tomek Kulczynski
290c7b94ef Make nodecontroller configure nodes' pod IP ranges 2015-05-05 16:10:42 -07:00
Zach Loafman
875e83a741 Revert "Revert "Security context - types, kubelet, admission"" 2015-05-05 16:02:13 -07:00
Zach Loafman
3fcea23185 Revert "Revert "Revert "Kubelet: Add rkt as a runtime option""" 2015-05-05 15:55:12 -07:00
Yifan Gu
ec68f1a85a kubelet/rkt: Add docker prefix to image string.
This change makes rkt to run only docker image for now,
which enables us to test with all existing pods.
2015-05-05 15:41:13 -07:00
Zach Loafman
92ca92f43a Revert "Revert "Kubelet: Add rkt as a runtime option"" 2015-05-05 15:28:09 -07:00
Alex Robinson
5be3a5a9dc Merge pull request #7783 from GoogleCloudPlatform/revert-7609-lb
Revert "Truncate GCE load balancer names to 63 chars"
2015-05-05 15:23:35 -07:00
Zach Loafman
f48904fd5e Revert "Security context - types, kubelet, admission" 2015-05-05 15:20:39 -07:00
Zach Loafman
6016408096 Revert "Kubelet: Add rkt as a runtime option" 2015-05-05 15:15:15 -07:00
Yu-Ju Hong
b2c0ea37b4 Merge pull request #7743 from vmarmol/runtime-switch
Kubelet: Add rkt as a runtime option
2015-05-05 13:36:46 -07:00
Paul Morie
1625e231dd Merge pull request #7343 from pweil-/security-context-types
Security context - types, kubelet, admission
2015-05-05 16:26:09 -04:00
Federico Simoncelli
37038c4877 replica: serialize created-by reference
Fixes #7322

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-05 16:06:41 -04:00
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
Maxwell Forbes
39f3260ce0 Merge pull request #7773 from csrwng/fix_podexecopt
Fix command field PodExecOptions
2015-05-05 12:14:58 -07:00
Clayton Coleman
c30428a117 Merge pull request #7769 from deads2k/fix-deep-copy
fix DeepCopy to properly support runtime.EmbeddedObject
2015-05-05 15:03:42 -04:00
Yu-Ju Hong
08d25c3ed4 Merge pull request #7785 from vmarmol/fix-start
Start ImageManager housekeeping in Run().
2015-05-05 12:00:00 -07:00
Quinton Hoole
8a4a39d9b4 Merge pull request #7273 from lavalamp/fix7
fix master service endpoint system for multiple masters
2015-05-05 11:59:30 -07:00
Quinton Hoole
8bc481d65c Merge pull request #7669 from a-robinson/lb
Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer...
2015-05-05 11:42:06 -07:00
Victor Marmol
9f283f356f Start ImageManager housekeeping in Run().
Fixes #7762
Fixes #5634
2015-05-05 11:15:12 -07:00
Quinton Hoole
1c7f6b82c7 Revert "Truncate GCE load balancer names to 63 chars" 2015-05-05 11:02:18 -07:00
Victor Marmol
22297d316a Add rkt runtime to Kubelet init 2015-05-05 10:55:21 -07:00
Victor Marmol
5d0e5d7d61 Inject dependencies to rkt 2015-05-05 10:55:11 -07:00
Paul Weil
982bf19c20 security context initial implementation - squash 2015-05-05 13:46:13 -04:00
Victor Marmol
ba438a808b Merge pull request #7772 from pmorie/containerized
Add containerized option to kubelet binary
2015-05-05 10:43:00 -07:00
Cesar Wong
283049f679 Fix pod exec options
Change the command field to an array of strings.
2015-05-05 13:20:08 -04:00
Paul Morie
553265ce0c Add containerized option to kubelet binary 2015-05-05 13:10:06 -04:00
Brian Grant
1b7749b8d9 Merge pull request #7779 from pmorie/swagger-spec
Fix swagger spec
2015-05-05 09:51:18 -07:00
derekwaynecarr
d6a4b2427a Throw an API error when deleting namespace in termination 2015-05-05 12:49:51 -04:00
Yu-Ju Hong
a7dadfcc97 Merge pull request #7752 from vmarmol/rkt-compile
Add build labels to rkt
2015-05-05 09:26:59 -07:00
Jeff Lowdermilk
c1ae69da14 Merge pull request #7705 from bprashanth/rollingupdate_2
Reliable updates in rollingupdate
2015-05-05 09:23:25 -07:00
Paul Morie
f6f34d0493 Allow int64 types in API; update swagger spec 2015-05-05 12:15:12 -04:00
Quinton Hoole
74c07f1094 Merge pull request #7742 from cjcullen/cbr0
Make changes suggested in #7675
2015-05-05 08:00:24 -07:00
deads2k
0d796c184d fix DeepCopy to properly support runtime.EmbeddedObject 2015-05-05 10:36:39 -04:00
Karl Beecher
0473f652fd Add startup code to apiserver to migrate etcd keys
Refs: #3476
2015-05-05 12:28:14 +02:00
kargakis
c9e79a3c28 Setup generators in factory 2015-05-05 12:00:13 +02:00
Wojciech Tyczynski
bd3d853242 Merge pull request #7737 from lavalamp/fixTimeAfter
Reduce usage of time.After
2015-05-05 09:28:07 +02:00
Daniel Smith
a41a57cfe1 fix master service endpoint system for multiple masters 2015-05-04 22:55:51 -07:00
CJ Cullen
1ec0fb2e3d Make changes suggested in #7675 2015-05-04 21:58:13 -07:00
Robert Bailey
72048a824c Merge pull request #7735 from fabioy/yank-nodes-status.fix
Remove node status from "componentstatuses" call.
2015-05-04 20:43:01 -07:00
Victor Marmol
d84aac6498 rkt: Unexport runtime, use Runtime interface 2015-05-04 17:28:02 -07:00
Victor Marmol
f012d7f506 Add unsupported version of rkt. 2015-05-04 17:22:45 -07:00
Robert Bailey
5fe07e69b7 Merge pull request #7725 from pmorie/typo
Fix typo in runtime_cache.go
2015-05-04 17:03:42 -07:00
Brian Grant
df8521c468 Merge pull request #7592 from pmorie/dapi-example
Rename EnvVarSource.FieldPath -> FieldRef and add example
2015-05-04 17:02:17 -07:00
Victor Marmol
de2212983f Refactor rkt into one file.
This will make it easy to add build labels and stub out in non-Linux
builds.
2015-05-04 16:51:31 -07:00
Victor Marmol
fe7cb95be6 Merge pull request #7746 from vishh/exec_fix
Fix kubelet's docker RunInContainer implementation
2015-05-04 16:49:57 -07:00
Victor Marmol
a32d31d045 Merge pull request #7729 from yujuhong/runtime_up
Kubelet: wait until container runtime is up
2015-05-04 16:02:30 -07:00
Vishnu Kannan
ec01265643 Fix docker exec logic. Without this patch, kubelet was not receiving any output from docker exec
and was incorrectly handling the output.
2015-05-04 16:01:32 -07:00
Paul Morie
e949a623ff Change EnvVarSource.FieldPath -> FieldRef and add example 2015-05-04 18:41:09 -04:00
Prashanth Balasubramanian
faa65cbd20 More reliable updates in rollingupdate 2015-05-04 15:29:30 -07:00
Yu-Ju Hong
d231eb6bef Kubelet: wait until container runtime is up
Instead of waiting for the docker client to be up, we wait for the container
runtime to be up.
2015-05-04 15:16:38 -07:00
Victor Marmol
b0129089da Merge pull request #7712 from rjnagal/kubelet
Expose pod name as a label on containers.
2015-05-04 14:52:16 -07:00
Fabio Yeon
1709cf0dbb Remove node status from "componentstatuses" call.
The legacy "/validate" behavior remains unchanged.
2015-05-04 14:34:20 -07:00
Brian Grant
f7a2a02ebb Merge pull request #7443 from vishh/comments
Explicitly state the lack of support for 'Requests' for the purposes of scheduling
2015-05-04 14:33:13 -07:00
Daniel Smith
16a6fb8ef7 Replace calls to time.After with time.NewTimer for explicit stopping 2015-05-04 14:29:33 -07:00
Nikhil Jindal
2ae13693ab Merge pull request #7675 from cjcullen/cbr0
Fix kube2sky flakes. Fix tools.GetEtcdVersion to work with etcd > 2.0.7
2015-05-04 14:23:29 -07:00
Rohit Jnagal
1511dbf0b5 Expose pod name as a label on containers.
Full pod name is exposed under key 'kubernetes.io/pod'.
It helps in introspection by looking at all containers in a pod through
docker ps -a -f label=kubernetes.io/pod=podXXX

We also plan to visualize this in cAdvisor.
2015-05-04 21:20:42 +00:00
Quinton Hoole
cd7a0e5a9f Merge pull request #7721 from smarterclayton/fix_ipv4
Select IPv4-only from host interfaces
2015-05-04 14:09:27 -07:00
Vishnu Kannan
3b5a90852a Explicitly state the lack of support for 'Requests' for the purposes of scheduling. 2015-05-04 13:39:11 -07:00
Paul Morie
d90689bb71 Fix typo in runtime_cache.go 2015-05-04 16:33:48 -04:00
Clayton Coleman
c07896ee35 Merge pull request #7509 from deads2k/deads-has-any
add StringSet.HasAny
2015-05-04 16:21:33 -04:00
Robert Bailey
93a781ff66 Merge pull request #7722 from eparis/minor-bash-fixes
Minor bash update found by shellcheck.net
2015-05-04 13:03:26 -07:00
CJ Cullen
a21713a771 Fix kube2sky flakes. Fix tools.GetEtcdVersion to work with etcd > 2.0.7 2015-05-04 13:01:35 -07:00
Victor Marmol
90de73ac7a Merge pull request #7536 from rjnagal/node
Add --hostport to run-container.
2015-05-04 12:55:12 -07:00
Victor Marmol
25004014b1 Merge pull request #7703 from pmorie/nsenter-mount
Add NsenterMounter mount implementation
2015-05-04 12:54:02 -07:00
Yu-Ju Hong
7cf7b093a4 Merge pull request #7659 from vmarmol/runtime-switch
Have rkt implement the container Runtime interface
2015-05-04 12:45:16 -07:00
Daniel Smith
36977ecb67 Merge pull request #7643 from bprashanth/rc_status
Requeue rc if a single get/put retry on status.Replicas fails
2015-05-04 12:15:30 -07:00
Clayton Coleman
dd8184247e Merge pull request #7629 from caesarxuchao/new-fix-7260-7491
Change the order the different versions of API are registered
2015-05-04 15:01:59 -04:00
Clayton Coleman
82b939760e Merge pull request #7699 from kargakis/make-expose-generic
expose: Create objects in a generic way
2015-05-04 15:01:37 -04:00
Eric Paris
87613eee87 Minor bash update found by shellcheck.net 2015-05-04 14:52:50 -04:00
Clayton Coleman
166021e765 Select IPv4-only from host interfaces 2015-05-04 14:46:00 -04:00
Paul Morie
e5521234e4 Add NsenterMounter mount implementation 2015-05-04 14:40:04 -04:00
Zach Loafman
74cc4df81b Merge remote-tracking branch 'upstream/release-0.16' into merge-release-0.16-to-master 2015-05-04 11:37:23 -07:00
Victor Marmol
ba7e940a57 Make rkt implement the container Runtime 2015-05-04 11:16:33 -07:00
Victor Marmol
e44d9df0f4 Changes to rkt's PortForward to match Runtime API. 2015-05-04 11:16:33 -07:00
Victor Marmol
79fc8bee34 Change GetContainerLogs() signature.
This works for both runtimes. We need to eventually unify the ID scheme
for this method.
2015-05-04 11:16:32 -07:00
Victor Marmol
60a77221f5 Add dummy ListImages and RemoveImage to rkt runtime. 2015-05-04 11:14:54 -07:00
Victor Marmol
2ad933e124 Merge pull request #7674 from yujuhong/enable_runtime
Kubelet: replace DockerManager with the Runtime interface
2015-05-04 11:10:20 -07:00
Zach Loafman
91bc1637a1 Kubernetes version v0.16.2-dev 2015-05-04 10:42:55 -07:00
Zach Loafman
72a6a94840 Kubernetes version v0.16.2 2015-05-04 10:42:44 -07:00
Brendan Burns
3cc25541d1 Fix YAML parsing for v1beta3 objects in the kubelet for file/http 2015-05-04 10:32:21 -07:00
Yu-Ju Hong
1ad4dd7803 Kubelet: replace DockerManager with the Runtime interface
This change instructs kubelet to switch to using the Runtime interface. In order
to do it, the change moves the Prober instantiation to DockerManager.

Note that most of the tests in kubelet_test.go needs to be migrated to
dockertools. For now, we use type assertion to convert the Runtime interface to
DockerManager in most tests.
2015-05-04 10:19:46 -07:00
Paul Morie
b538642464 Inject mounter into volume plugins 2015-05-04 11:28:57 -04:00
Wojciech Tyczynski
72f9e940a8 Merge pull request #7694 from nak3/bash-comp-add-label
Add kubectl_label to custom functions in bash completion
2015-05-04 15:11:41 +02:00
kargakis
fa42901798 expose: Create objects in a generic way 2015-05-04 14:21:24 +02:00
Wojciech Tyczynski
0e842f0e0b Merge pull request #7695 from fgrzadkowski/cache_metrics
Add metrics to measure cache hit ratio
2015-05-04 13:59:29 +02:00
Kenjiro Nakayama
c3485ca85c Add kubectl_label to custom functions of bash completion 2015-05-04 20:57:56 +09:00
Wojciech Tyczynski
a020e054d8 Merge pull request #7662 from jlowdermilk/services-printer
Change IP to IP(S) in service columns for kubectl get
2015-05-04 13:35:09 +02:00
Filip Grzadkowski
be2b2466f3 Merge pull request #7076 from eparis/bash-5-kubectl-required-flags
annotate required flags for bash_completions
2015-05-04 13:26:11 +02:00
Filip Grzadkowski
6f341eb5ae Add metrics to measure cache hit ratio 2015-05-04 13:20:15 +02:00
Wojciech Tyczynski
9581aa85e9 Merge pull request #7676 from markturansky/fix_nil_ptr
Fixed nil pointer issue in describe when volume is unbound
2015-05-04 10:32:44 +02:00
Piotr Szczesniak
5845743171 Removed unnecessary closing bracket 2015-05-04 09:42:33 +02:00
Wojciech Tyczynski
e225a2e777 Merge pull request #7644 from liggitt/conversion_test
Output generated conversion functions/names
2015-05-04 08:17:03 +02:00
Quinton Hoole
83b70c4411 Revert "Revert #7145 now that #7609 is in, and fix the tests that were relying on it" 2015-05-02 23:32:21 -07:00
markturansky
2f5907b504 Fixed nil pointer issue in describe when volume is unbound 2015-05-02 06:49:19 -04:00
Prashanth Balasubramanian
864e12d995 Retry once and requeue on failure to update status.Replicas 2015-05-01 18:10:58 -07:00
Jeff Lowdermilk
b447dc0c54 Merge pull request #7635 from a-robinson/length
Revert #7145 now that #7609 is in, and fix the tests that were relying on it
2015-05-01 17:48:41 -07:00
Alex Robinson
a047250b53 Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer,
which returns the IP/DNS address of the load balancer, enabling more
intelligent reconciliation in the service controller.
2015-05-01 17:42:23 -07:00
Daniel Smith
4a6ab7fd36 Merge pull request #7597 from eparis/copyright
Use generic copyright holder name in license boilerplate
2015-05-01 17:01:39 -07:00
Brendan Burns
508eb309f8 Merge remote-tracking branch 'upstream/release-0.16' into merge-release-0.16-to-master 2015-05-01 16:55:34 -07:00
Jeff Lowdermilk
cd9e7fbc4f Change IP to IP(S) in service columns for kubectl get 2015-05-01 16:47:21 -07:00
Rohit Jnagal
9cbfb0c3f9 Add --hostport to run-container.
This helps as a starting point to show a single-machine container.
Its easier to use this as an example to show where host port mapping breaks and move on to
services.
2015-05-01 23:45:03 +00:00
Brendan Burns
28d727a0c8 Kubernetes version v0.16.1-dev 2015-05-01 16:33:53 -07:00
Brendan Burns
b933dda536 Kubernetes version v0.16.1 2015-05-01 16:33:40 -07:00
Victor Marmol
c5a86387a4 Merge pull request #7657 from yujuhong/docker_runtime
Removes RunPod in the Runtime interface
2015-05-01 16:09:44 -07:00
Prashanth Balasubramanian
20de8c93b7 Fix rollingupdate --image
(cherry picked from commit c8ea0c27e9)

Conflicts:
	docs/kubectl.md
	pkg/kubectl/cmd/rollingupdate.go
2015-05-01 15:28:23 -07:00
Chao Xu
4787c66214 Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
This makes kubectl sends requests to URLs in the format defined by the latest API version.
2015-05-01 15:14:15 -07:00
Yu-Ju Hong
ae1b24f07f Merge pull request #7652 from vmarmol/runtime-switch
Kubelet: Add container runtime option.
2015-05-01 14:50:30 -07:00
Eric Paris
6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Yu-Ju Hong
4fe3366b04 Removes RunPod in the Runtime interface
SyncPod subsumes RunPod, so the latter is no longer needed.
After this change, DockerManager implements the Runtime interface.
2015-05-01 14:47:04 -07:00
Victor Marmol
d9d61c3511 Kubelet: Add container runtime option. 2015-05-01 14:26:54 -07:00
Victor Marmol
e3fc039eaa Merge pull request #7611 from yifan-gu/rkt_syncPod
kubelet/rkt: Add SyncPod() to rkt.
2015-05-01 14:26:11 -07:00
Clayton Coleman
1a8845af61 Merge pull request #7490 from smarterclayton/alter_list
Do not automatically decode runtime.RawExtension
2015-05-01 16:48:26 -04:00
Jordan Liggitt
26caf9e0de Output generated conversion functions/names 2015-05-01 16:28:08 -04:00
Yifan Gu
1b77615deb kubelet/rkt: Add SyncPod() to rkt. 2015-05-01 13:02:05 -07:00
Yu-Ju Hong
ee473edd45 Merge pull request #7610 from vmarmol/runtime-syncpod
Add SyncPod() to DockerManager and use it in Kubelet
2015-05-01 12:22:39 -07:00
Quinton Hoole
c68723e7f9 Merge pull request #7628 from bprashanth/rc_ttl
Update expiration timeout based on observed latencies
2015-05-01 11:42:22 -07:00
Victor Marmol
3b9eba2c1b Add SyncPod() to DockerManager and use in Kubelet.
This allows us to abstract away the logic of syncing a pod by the
runtime. It will allow other runtimes to perform their own sync as well.
2015-05-01 11:03:08 -07:00
Victor Marmol
bb8ee5b0db Add lifecycle tests from kubelet_test to lifecycle. 2015-05-01 11:02:10 -07:00
Victor Marmol
7a737892f5 Extract out interface for GetPods().
This will remove the circular import with dockertools for
DockerManager. Eventually, this will be Runtime.
2015-05-01 11:02:10 -07:00
Alex Robinson
890ff7b4aa Revert #7145 now that #7609 is in, and fix the tests that were relying on it. 2015-05-01 10:49:23 -07:00
Vish Kannan
cadfde0bd1 Merge pull request #7277 from guenter/cgroup-parent
Add --cgroup_parent flag to Kubelet to set the parent cgroup for pods
2015-05-01 10:24:58 -07:00
Jeff Lowdermilk
ec9942e995 Merge pull request #7540 from bprashanth/rollingupdate
Fix rolling update --image
2015-05-01 10:07:46 -07:00
Alex Robinson
eab6020e16 Merge pull request #7609 from brendandburns/lb
Truncate GCE load balancer names to 63 chars
2015-05-01 09:52:49 -07:00
Yu-Ju Hong
f74fab4e56 Merge pull request #7603 from vmarmol/runtime-syncpod-api
Add SyncPod() and remove Kill/Run InContainer().
2015-05-01 09:41:50 -07:00
Prashanth Balasubramanian
a8fdf3d78b Update expiration timeout based on observed latencies 2015-05-01 08:53:51 -07:00
Victor Marmol
6316b485ad Add SyncPod() and remove Kill/Run InContainer().
SyncPod allows us to abstract away how a pod is started and updated. It
also simplifies what the runtime has to implement.
2015-05-01 00:32:29 -07:00
Yifan Gu
3751ecc766 kubelet/container: Move ShouldContainerBeRestarted() to runtime. 2015-04-30 22:55:25 -07:00
Yifan Gu
428652bdc7 kubelet/rkt: Add KillPod() and GetPodStatus() for rkt. 2015-04-30 18:32:32 -07:00
Victor Marmol
03b5c32576 Merge pull request #7553 from yifan-gu/rkt_runner
kubelet/rkt: Add RunInContainer()/ExecInContainer()/PortForward().
2015-04-30 18:31:08 -07:00
Yifan Gu
9ce568a142 kubelet/rkt: Add GetPods() for rkt. 2015-04-30 18:00:18 -07:00
Brendan Burns
40549dc083 Truncate GCE load balancer names to 63 chars 2015-04-30 17:54:11 -07:00
Yifan Gu
1636fd2e1c kubelet/rkt: Add RunPod() for rkt. 2015-04-30 17:31:35 -07:00
Yifan Gu
2e4be0bcf1 kubelet/rkt: Add RunInContainer()/ExecInContainer()/PortForward(). 2015-04-30 17:25:16 -07:00
Victor Marmol
262c34e7db Merge pull request #7543 from yifan-gu/pod_manifest
kubelet/rkt: Add routines for converting kubelet pod to rkt pod.
2015-04-30 17:18:19 -07:00
Clayton Coleman
aa810e4e88 Merge pull request #7467 from brendandburns/qps
Augment describe to search for matching things if it doesn't match the original resource.
2015-04-30 20:17:34 -04:00
Victor Marmol
3235799595 Merge pull request #7601 from yujuhong/kill_container
Add KillContainerInPod in DockerManager
2015-04-30 17:05:00 -07:00
Victor Marmol
df8490f52f Merge pull request #7555 from yifan-gu/rkt_pod_info
kubelet/rkt: Add podInfo.
2015-04-30 17:04:51 -07:00
Yu-Ju Hong
b37f23f1eb Add KillContainerInPod in DockerManager
This changes adds one of the functions that DockerManager needs to implement
the Runtime interface.
2015-04-30 16:23:39 -07:00
Victor Marmol
441a4e6f30 Merge pull request #7578 from yujuhong/docker_manager
Add image-related methods to DockerManager
2015-04-30 16:16:39 -07:00
Victor Marmol
a94aeb27fa Merge pull request #7586 from yujuhong/container_info
Remove more docker references in kubelet
2015-04-30 16:16:23 -07:00
Yifan Gu
7e8afc7c96 kubelet/rkt: Add routines for converting kubelet pod to rkt pod. 2015-04-30 15:24:47 -07:00
Clayton Coleman
f41e03ce9f Merge pull request #7582 from smarterclayton/example_typo
Correct the capitalization of KubeProxyVersion
2015-04-30 18:20:10 -04:00
Victor Marmol
0e89d65563 Merge pull request #7545 from yifan-gu/getlog
Getlog
2015-04-30 15:15:44 -07:00
Victor Marmol
57cc1218ca Merge pull request #7549 from yifan-gu/rkt_gc
Rkt gc
2015-04-30 15:15:07 -07:00
Alex Robinson
f3352d96e6 Merge pull request #7595 from a-robinson/typo
Fix typo in kubelet prober code
2015-04-30 14:42:18 -07:00
Yifan Gu
01841a8c19 kubelet/rkt: Add podInfo.
podInfo reprensents the state of rkt pods.
It is used to for reporting the pod and container status to kubelet.
2015-04-30 14:39:10 -07:00
Vish Kannan
1dead9c670 Merge pull request #6400 from ddysher/nfs-volume-mounter
Implement Mount interface using mount(8) and umount(8)
2015-04-30 14:00:56 -07:00
Yu-Ju Hong
644ec0dbfb Remove ErrNoKubeletContainers
We no longer use it.
2015-04-30 13:35:21 -07:00
Yu-Ju Hong
83c599e4d4 Add image-related methods to DockerManager
This change is part of the efforts to make DockerManager implement the Runtime
interface.

The change also modifies the interface slightly to work with existing
code, and aggregates the type converting functions to convert.go.
2015-04-30 13:27:52 -07:00
Alex Robinson
faa3292bb3 Fix typo in kubelet prober code. 2015-04-30 13:17:10 -07:00
Yu-Ju Hong
2f7b951140 Remove more docker references in kubelet
This change also renames TrimRuntimePrefixFromImage to TrimRuntimePrefix to
better reflect that the usage is not limited to images (e.g. ID).
2015-04-30 13:16:11 -07:00
Victor Marmol
2c381a6f6f Merge pull request #7550 from yifan-gu/rkt_pull
Rkt pull
2015-04-30 13:09:14 -07:00
Clayton Coleman
32dfd3e07b Correct the capitalization of KubeProxyVersion 2015-04-30 15:43:14 -04:00
Brian Grant
0a9a10e997 Merge pull request #7535 from smarterclayton/bad_capitalization
Capitalization of KubeProxyVersion wrong in JSON
2015-04-30 12:36:02 -07:00
Brian Grant
2d37650c65 Merge pull request #7530 from mbforbes/nodeExternal
Make nodes report their external IP rather than the master's.
2015-04-30 12:29:45 -07:00
CJ Cullen
015c0656a6 Merge pull request #7568 from yujuhong/rm_getcontainers
Remove GetContainers from Runtime interface
2015-04-30 12:01:58 -07:00
Prashanth Balasubramanian
c8ea0c27e9 Fix rollingupdate --image 2015-04-30 11:28:18 -07:00
Yu-Ju Hong
11be6811b3 Merge pull request #7563 from vmarmol/runtime-pre
Move lifecycle handlers to their own subpackage
2015-04-30 11:22:58 -07:00
Clayton Coleman
d03b5299f9 Merge pull request #7432 from piosz/termination_notice
Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
2015-04-30 13:55:51 -04:00
Tobi Knaup
b96c4046a8 Add --cgroup_root flag to Kubelet to set the parent cgroup for all pods.
Implements #6991.
2015-04-30 10:32:27 -07:00
Yifan Gu
ca4643ef31 kubelet/rkt: Add GetContainerLogs() for rkt. 2015-04-30 10:31:31 -07:00
Yifan Gu
488f49a216 kubelet/rkt: Add GarbageCollection to rkt runtime. 2015-04-30 10:29:38 -07:00
CJ Cullen
b11f07be7a Merge pull request #7541 from csrwng/fix_bool_conversion
Handle conversion of boolean query parameters with a value of "false"
2015-04-30 10:14:54 -07:00
Yifan Gu
01693c8233 kubelet/rkt: Add PullImage()/IsImagePresent() to rkt runtime. 2015-04-30 10:01:24 -07:00
Yu-Ju Hong
176fc9b9c6 Remove GetContainers from Runtime interface
This function is no longer considered needed.
2015-04-30 09:33:23 -07:00
Yu-Ju Hong
de32785e2e Merge pull request #7532 from vmarmol/runtime-images
Add image-related methods to Runtime interface.
2015-04-30 09:30:59 -07:00
Victor Marmol
5bd2e6d37f Merge pull request #7552 from rjnagal/kubectl
Fix typo in 'kubectl expose' examples.
2015-04-30 09:19:37 -07:00
Piotr Szczesniak
11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Victor Marmol
238b3c6f4e Move lifecycle handlers to its own sub package.
This will allow injecting it into the runtimes.
2015-04-30 08:47:23 -07:00
Victor Marmol
4db5127073 Make HttpGetter a shared Kubelet type. 2015-04-30 08:47:23 -07:00
Clayton Coleman
dd976a27fb Merge pull request #7560 from wojtek-t/conversion_test
Test whether auto-generated conversions weren't manually edited
2015-04-30 11:39:56 -04:00
Victor Marmol
037295ac4c Merge pull request #7533 from yujuhong/get_containers
Clean up dockertools/manager.go and add more unit tests
2015-04-30 08:38:27 -07:00
Victor Marmol
946dac4f7c Merge pull request #7465 from yifan-gu/split_rkt
kubelet/rkt: Add basic rkt runtime routines.
2015-04-30 08:37:24 -07:00
Victor Marmol
0a6584cafe Merge pull request #7487 from njuicsgz/master
readinessProbe calls livenessProbe.Exec.Command which cause "invalid memory address or nil pointer dereference".
2015-04-30 08:36:54 -07:00
Yu-Ju Hong
baaea11cd5 Merge pull request #7520 from vmarmol/runtime-pull
Add RuntimeHooks to abstract Kubelet logic
2015-04-30 08:33:19 -07:00
Clayton Coleman
e637cd66e8 Merge pull request #7559 from fgrzadkowski/perf
Add a simple cache for objects stored in etcd.
2015-04-30 11:27:01 -04:00
Wojciech Tyczynski
6d00e336a6 Merge pull request #7546 from smarterclayton/get_urls_from_request
Expose URL() on Request to allow building URLs
2015-04-30 16:05:16 +02:00
Cesar Wong
f72ee1f72b Handle conversion of boolean query parameters with a value of "false" 2015-04-30 09:26:06 -04:00
Wojciech Tyczynski
3b84bae544 Auto-generated conversion not manually edited 2015-04-30 14:05:42 +02:00
Wojciech Tyczynski
c455600784 Merge pull request #7557 from piosz/kubectl
Added displaying external IPs to kubectl cluster-info
2015-04-30 13:48:55 +02:00
Filip Grzadkowski
15e9bfd9ae Add a simple cache for objects stored in etcd. 2015-04-30 12:08:56 +02:00
Piotr Szczesniak
cfc73878b9 Added displaying external IPs to kubectl cluster-info
Fixes #7521
2015-04-30 10:47:58 +02:00
Gao Zheng
b445afdf11 Merge remote-tracking branch 'upstream/master' 2015-04-30 15:42:14 +08:00
Akram Ben Aissi
a788002d0d Port forward now listens on IPv4 and IPv6 localhost address
- Tries to listen 127.0.0.1 and the given port
- Tries to listen [::1] and the given port
- If both of them fails port-forward fails
- If at least one succeeds, port-forward listens on the corresponding interface and displays a warning for the other
- If both succeeds, port-portfward listens on both the interfaces
2015-04-30 09:17:41 +02:00
Filip Grzadkowski
231284187e Merge pull request #7431 from wojtek-t/conversion_chains
Prepare for chaining autogenerated conversion methods
2015-04-30 09:08:40 +02:00
Rohit Jnagal
0a8b136ee6 Fix typo in 'kubectl expose' examples. 2015-04-30 06:02:16 +00:00
Clayton Coleman
53ca1fcc7a Expose URL() on Request to allow building URLs
The client/Request type is the appropriate place to build
URLs, this allows callers to generate URLs for providing to
others (such as SelfLinks or relative links to objects).
2015-04-29 23:27:13 -04:00
Jeff Lowdermilk
6f5e08114a Merge pull request #7407 from brendandburns/recovery2
Support recovery for anonymous roll outs
2015-04-29 20:08:23 -07:00
Gao Zheng
95f2d1378f change probe.runner to probe.Runner as based 2015-04-30 10:36:38 +08:00
Gao Zheng
74975eff03 Fixes issue #7352
readinessProbe calls livenessProbe.Exec.Command which cause
"invalid memory address or nil pointer dereference".
2015-04-30 10:19:49 +08:00
Yu-Ju Hong
919d78281f Clean up dockertools/manager.go and add more unit tests.
This change refactors the GetPods function and add some basic unit tests.
We should start migrating docker specific tests from kubelet_test to
manager_test.go.
2015-04-29 18:32:52 -07:00
Victor Marmol
090d0c95fa Remove ImagePull metric in Kubelet.
There is an equivalent metric from our Docker metrics and this one is
harder to maintain with the RuntimeHooks.
2015-04-29 17:12:03 -07:00
Yifan Gu
305345efe1 kubelet/rkt: Add basic rkt runtime routines. 2015-04-29 17:09:32 -07:00
Victor Marmol
2a01a2c7e9 Use RuntimeHooks in Kubelet.
Used in functionality that will be moved to the runtimes.
2015-04-29 17:06:49 -07:00
Victor Marmol
61d51243c5 Add RuntimeHooks interface and Kubelet implementation.
This interface will be used to inject functionality and logic into the
runtimes that should be shared accross runtimes.
2015-04-29 17:06:49 -07:00
Brendan Burns
83cbd0cf4c Add recovery for anonymous rollouts. 2015-04-29 16:53:30 -07:00
Clayton Coleman
1042ab32a5 Capitalization of KubeProxyVersion wrong in JSON 2015-04-29 19:52:51 -04:00
Brendan Burns
3a8a98c319 Augment describe to search for matching things if it doesn't match the original resource 2015-04-29 16:47:10 -07:00
Yu-Ju Hong
d81ecc58f8 Adapt pod killing and cleanup for generic container runtime
This change removes docker-specifc code in killUnwantedPods. It
also instructs the cleanup code to move away from interacting with
containers directly. They should always deal with the pod-level
abstraction if at all possible.
2015-04-29 16:08:09 -07:00
Yu-Ju Hong
ba1140a54f Merge pull request #7480 from vmarmol/runtime-syncpod
Move ComputePodChanges to the Docker runtime
2015-04-29 16:05:20 -07:00
Victor Marmol
4d09b79529 Add image-related methods to Runtime interface.
This includes RemoveImage() and ListImages().
2015-04-29 16:00:36 -07:00
Max Forbes
e1c2e6b4b1 Make nodes report their external IP rather than the master's. 2015-04-29 15:44:25 -07:00
Jeff Lowdermilk
9fd8cbae64 Merge pull request #7510 from eparis/cobra-rebase
Cobra rebase
2015-04-29 15:08:41 -07:00
Victor Marmol
293828c93c Merge pull request #7515 from brendandburns/kubelet
Fix YAML parsing for v1beta3 objects in the kubelet for file/http
2015-04-29 14:31:49 -07:00
Victor Marmol
209b4fcbef Merge pull request #6718 from vishh/sys_oom1
Adding system oom events from kubelet
2015-04-29 14:29:38 -07:00
Victor Marmol
fe4600ba17 Move ComputePodChanges to DockerManager.
This logic is specific to the Docker runtime. This move is the first
step towards making syncPod() runtime-agnostic.
2015-04-29 14:00:37 -07:00
deads2k
f258717f26 add StringSet.HasAny 2015-04-29 16:55:43 -04:00
Yu-Ju Hong
134e585195 Merge pull request #7479 from vmarmol/runtime-prefactor
Move Prober to its own subpackage
2015-04-29 13:53:35 -07:00
CJ Cullen
182f47ee3d Revert "Add a simple cache for objects stored in etcd" 2015-04-29 12:06:52 -07:00
Brendan Burns
48d269e6ab Fix YAML parsing for v1beta3 objects in the kubelet for file/http 2015-04-29 11:38:36 -07:00
Vishnu Kannan
020950fd0f Adding events for system ooms.
Kubelet will continuously watch for system OOMs and generate events whenever it
encounters a system OOM.
2015-04-29 11:19:11 -07:00
Victor Marmol
f38c607285 Move Prober to its own subpackage.
This will allow it to be reused by the runtimes.
2015-04-29 10:11:28 -07:00
Yu-Ju Hong
33b8f487f6 Merge pull request #7449 from vmarmol/runtime-network-plugins
Move network plugin TearDown to DockerManager
2015-04-29 10:09:58 -07:00
Victor Marmol
02231ea75d Merge pull request #7503 from jsafrane/devel/fix-volume-rm
Fixed kubelet deleting data from volumes on stop (#7317).
2015-04-29 10:01:16 -07:00
Brian Grant
4071868581 Merge pull request #7482 from nikhiljindal/verifyDescription
Fixing hooks/description to catch API fields without description tags
2015-04-29 09:56:08 -07:00
Clayton Coleman
12ba4e2452 Do not automatically decode runtime.RawExtension
Make clients opt in to decoding objects that are stored
in the generic api.List object by invoking runtime.DecodeList()
with a set of schemes. Makes it easier to handle unknown
schema objects because decoding is in the control of the code.

Add runtime.Unstructured, which is a simple in memory
representation of an external object.
2015-04-29 12:53:07 -04:00
Daniel Smith
4d2f7a38c2 Merge pull request #6866 from bprashanth/rc_watch_pods
RcManager watches pods and RCs instead of polling every 10s
2015-04-29 09:10:55 -07:00
Daniel Smith
2802b18b0a Merge pull request #7288 from fgrzadkowski/perf
Add a simple cache for objects stored in etcd
2015-04-29 09:00:33 -07:00
Eric Paris
a17a26643b Update kube to support new pflag/cobra 2015-04-29 11:26:30 -04:00
Victor Marmol
dfadc10fcb Merge pull request #7488 from yifan-gu/get_container_logs
kubelet/container: Add GetContainerLogs to runtime interface.
2015-04-29 08:24:20 -07:00
Victor Marmol
38831237b2 Merge pull request #7477 from yifan-gu/refactor_runonce
kubelet: Refactor isPodRunning() in runonce.go
2015-04-29 08:24:09 -07:00
Victor Marmol
fc918cc896 Merge pull request #7466 from yifan-gu/refactor_kube
kubelet/container: Update the runtime interface.
2015-04-29 08:23:50 -07:00
Victor Marmol
587d5a6b85 Merge pull request #7408 from vishh/kubelet_namespace
Set the default namespace for events to be "default"
2015-04-29 08:23:27 -07:00
Deyuan Deng
6897095e56 Change mount.Interface.Mount to exec('mount'), instead of syscall 2015-04-29 10:46:32 -04:00
Wojciech Tyczynski
fc6fb0953a Generate conversions 2015-04-29 16:32:56 +02:00
Wojciech Tyczynski
8eca76298f Improvements to conversions generator. 2015-04-29 16:32:31 +02:00
Paul Morie
8fa21ebd62 Merge pull request #7419 from liggitt/secrets_etcd
Convert Secret registry to use update/create strategy, allow filtering by Type
2015-04-29 09:59:22 -04:00
Filip Grzadkowski
016e20167b Add a simple cache for objects stored in etcd. 2015-04-29 13:14:31 +02:00
Piotr Szczesniak
9272fe2aea Updated kubectl cluster-info to show v1beta3 addresses
Fixes #7016
2015-04-29 10:54:36 +02:00
Jan Safranek
9b9e98a22f Fixed kubelet deleting data from volumes on stop (#7317).
We must not clear the pod directory in killUnwantedPods(), volumes are still
mounted there at this time. There already is cleanupOrphanedPodDirs(),
called later in the SyncPods() sequence, which should remove these pod
directories.
2015-04-29 10:41:19 +02:00
Brendan Burns
fc76242f4a Kubernetes version v0.16.0-dev 2015-04-28 21:20:33 -07:00
Brendan Burns
2cea8f22b3 Kubernetes version v0.16.0 2015-04-28 21:20:12 -07:00
Yifan Gu
fb1c55aa11 kubelet/container: Add GetContainerLogs to runtime interface. 2015-04-28 20:26:16 -07:00
nikhiljindal
7c99865c94 Fixing hooks/description to catch API fields without description tags 2015-04-28 18:32:15 -07:00
Brian Grant
a4316aa638 Merge pull request #7454 from nikhiljindal/v1
Cloning v1beta3 as v1 and exposing it in the apiserver
2015-04-28 18:06:57 -07:00
Yifan Gu
ba1389de3c kubelet/container: Update the runtime interface.
Make some of them (RunInContainer, ExecInContainer, etc) to have
same function signatures as current docker and rkt implementation.
2015-04-28 17:55:41 -07:00
Yifan Gu
c848fa447d kubelet: Refactor isPodRunning() in runonce.go
Replace InspectContainer() with generic GetPodStatus().
2015-04-28 17:44:13 -07:00
Victor Marmol
787d42d50b Move network plugin teardown to DockerManager.
This teardown is Docker-specific and will let us also do the setup in
the manager in future cleanups.
2015-04-28 16:58:54 -07:00
Victor Marmol
de0957ccb1 Create Kubelet types package for common shared types. 2015-04-28 16:57:45 -07:00
Alex Robinson
3c0b799213 Merge pull request #7446 from liggitt/namespace_conversion
Fix typo in namespace conversion
2015-04-28 16:38:10 -07:00
Vishnu Kannan
820d0f3e83 Adding a 'PastEventf' method to EventRecorder interface. This will be
useful for recording the timestamp of events that happened in the past.
2015-04-28 16:13:29 -07:00
Vishnu Kannan
2f68cddbd2 Adding events API to cadvisor interface. 2015-04-28 16:13:29 -07:00
Vishnu Kannan
84e2c36cf7 Set namespace of events to "default" if the involved object does not have
any namespace set.
2015-04-28 16:08:16 -07:00
nikhiljindal
c4d7e19c8c Cloning v1beta3 as v1 and exposing it in the apiserver 2015-04-28 16:06:03 -07:00
Fabio Yeon
45f85dbf06 Merge pull request #7404 from nikhiljindal/handleIndex
Updating handleIndex to return 404 for invalid server URL
2015-04-28 15:51:04 -07:00
Brendan Burns
e1256c0802 Make delete actually stop resources by default.
Refactor for shared code.
2015-04-28 14:36:43 -07:00
Prashanth Balasubramanian
7592dabeba RcManager uses informers 2015-04-28 13:45:15 -07:00
Jordan Liggitt
ac67fff1cf Convert Secret registry to use update/create strategy, allow filtering by Type 2015-04-28 15:00:20 -04:00
Robert Bailey
4304b1d24a Set the 'WWW-Authenticate' header on 401 responses when basic
auth is enabled. This is required for basic auth to work with
web browsers.
2015-04-28 11:00:05 -07:00
Robert Bailey
6d85dcb4a0 Add support for HTTP basic auth to the kube-apiserver. 2015-04-28 10:33:51 -07:00
Alex Robinson
4c0c04f247 Merge pull request #7424 from thockin/print-named-endpt-ports
Print named ports in 'describe service'
2015-04-28 10:07:38 -07:00
Jordan Liggitt
0dbc9c2688 Fix typo in namespace conversion 2015-04-28 12:45:13 -04:00
Jeff Lowdermilk
4045dedc99 Merge pull request #7279 from brendandburns/update
Further implementation of rolling-update, add rename
2015-04-28 09:31:28 -07:00
Dawn Chen
af5d017911 Merge pull request #7386 from vmarmol/rkt-pull-image
Kubelet: Factor out and remove pullImageAndRunContainer
2015-04-28 09:28:16 -07:00
Dawn Chen
1de4c45115 Merge pull request #7401 from vmarmol/rkt-kill-pod
Kubelet: Move killPod() logic to DockerManager's KillPod()
2015-04-28 09:25:12 -07:00
Alex Robinson
f2b9b673ca Merge pull request #7409 from pmorie/downward-api
Fix omitempty attributes on downward api
2015-04-28 08:40:39 -07:00
Wojciech Tyczynski
56a7b91e54 Merge pull request #7429 from kargakis/expose-fix
Fix getting services in expose cmd
2015-04-28 15:55:21 +02:00
Wojciech Tyczynski
43e59162f1 Merge pull request #7430 from fgrzadkowski/master_metrics
Add summary metrics to apiserver for easier debugging and future use in performance tests
2015-04-28 15:53:52 +02:00
Filip Grzadkowski
c1c24f645c Add summary metrics to apiserver for easier debugging and future use in performance tests 2015-04-28 14:27:18 +02:00
kargakis
e6ee32a6c6 Fix getting services in expose cmd 2015-04-28 14:45:05 +03:00
Wojciech Tyczynski
534a2fd27c Merge pull request #7171 from ravigadde/master
Node controller change to use field selector
2015-04-28 13:14:11 +02:00
Marek Grabowski
7a122a42d4 Merge pull request #7040 from justinsb/aws_nodeaddresses
AWS: Return public & private addresses in GetNodeAddresses
2015-04-28 10:56:50 +02:00
Tim Hockin
eea949b3a3 Print named ports in 'describe service'
Also in 'describe service'.  This got missed in all the multiport work.
2015-04-27 22:17:51 -07:00
Sam Ghods
5ceebb4a5f Add error message to log of docker error 2015-04-27 21:49:46 -07:00
Brendan Burns
591d98b6b2 Add replication controller renaming as a cleanup option. 2015-04-27 20:38:20 -07:00
Alex Robinson
45d8c97b0b Merge pull request #7413 from pmorie/typo
Fix typo in provider.go
2015-04-27 19:09:07 -07:00
Dawn Chen
4b79e5a3db Merge pull request #7403 from vmarmol/rkt-deps
Remove DockerPrefix references in Kubelet.
2015-04-27 19:05:43 -07:00
Paul Morie
b3a613c6c3 Fix typo in provider.go 2015-04-27 21:42:45 -04:00
Tim Hockin
0c611370e0 Merge pull request #7281 from thockin/flag-word-separators
Make flags accept - or _ between words
2015-04-27 18:11:58 -07:00
Paul Morie
2ecb883ff4 Fix omitempty attributes on downward api 2015-04-27 20:48:28 -04:00
Victor Marmol
6b0db76e85 Move killPod() logic to DockerManager KillPod().
This moved Docker specific logic there and allows it to align with the
runtime API. There is still a pod infra container reference in the
function due to network plugins. We can handle this in the Kubelet since
we'll need to be explicit in stating that the network plugin will not
work in a non-Docker runtime.
2015-04-27 17:15:37 -07:00
Dawn Chen
5ea5fff586 Merge pull request #7391 from vmarmol/rkt-portforward
Add PortForward to runtime API.
2015-04-27 17:10:37 -07:00
nikhiljindal
f864195a5b Returning 404 on invalid server URL 2015-04-27 16:15:52 -07:00
Brian Grant
734663f8d8 Merge pull request #7394 from pmorie/downward-api
Fix downward API descriptions
2015-04-27 16:09:11 -07:00
Victor Marmol
42a2059a5d Remove DockerPrefix references in Kubelet.
Makes this usage generic and usable by other runtimes.
2015-04-27 15:55:13 -07:00
Victor Marmol
1d6913779b Use kubecontainer.Pod instead of api.Pod in KillPod.
We don't need the full api.Pod and the uses today use kubecontainer.Pod.
2015-04-27 15:36:06 -07:00
Victor Marmol
3082bb291c Remove pullImageAndRunContainer().
Relevant logic is now in shared helpers.
2015-04-27 15:13:11 -07:00
Victor Marmol
b232eef5f7 Move image PullPolicy logic to pullImage().
This will allow us to remove the Docker-specific logic in
pullImageAndRunContainer() and re-use pullImage() in other runtimes.
2015-04-27 15:13:11 -07:00
Tim Hockin
a3d45fada8 Change flags to use dashes in help 2015-04-27 15:11:03 -07:00
Tim Hockin
6694eff020 Use pflags word separators to make - and _ equiv. 2015-04-27 15:10:52 -07:00
Dawn Chen
aa487b7cab Merge pull request #7382 from vmarmol/rkt-deps
Move Docker-specific log handling to DockerManager.
2015-04-27 15:10:14 -07:00
Victor Marmol
3a61421711 Add PortForward to runtime API. 2015-04-27 14:56:32 -07:00
Paul Morie
8bf0b03c17 Fix downward API descriptions 2015-04-27 17:46:34 -04:00
Daniel Smith
83093af8b0 Merge pull request #5707 from endocode/kbeecher/etcd_prefix
Adds ability to define a prefix for etcd paths
2015-04-27 13:37:43 -07:00
Tim Hockin
635c393a5a Merge pull request #6105 from markturansky/yoko_pv_mgr
PersistentVolumeClaimBinder
2015-04-27 13:35:44 -07:00
Victor Marmol
7404b7019c Move Docker-specific log handling to DockerManager.
Eases the separation of Docker-specific code into the Docker-specific
runtime.
2015-04-27 13:10:10 -07:00
Brian Grant
2648ae86d6 Merge pull request #6739 from pmorie/downward-api
Env var sources / downward API
2015-04-27 12:46:00 -07:00
Ravi Gadde
4b5f851520 Node controller change to use field selector 2015-04-27 12:12:13 -07:00
markturansky
beacd8722a addressed feedback. added opt-in cmd line flag 2015-04-27 15:00:01 -04:00
Paul Morie
7d30f09ebf Add downward API for environment vars 2015-04-27 14:13:11 -04:00
Victor Marmol
0c52f7b6a5 Move CreatePodInfraContainer to DockerManager.
This will allow us to start making it an implementation detail of the
Docker runtime.
2015-04-27 11:07:38 -07:00
Daniel Smith
e0e83fa8fe Merge pull request #7354 from wojtek-t/conversion_improvements
Improvements to generator of conversion methods.
2015-04-27 10:27:51 -07:00
markturansky
2fe8ed5358 fixed prefix name in validation 2015-04-27 12:05:12 -04:00
markturansky
a04420e548 Added pending phase for volumes. added defaults for PV/PVC. refactored to better phase transitioning in control loops 2015-04-27 12:05:12 -04:00
markturansky
37d7f3f4f1 Added integration test, fixed a validation issue 2015-04-27 12:05:12 -04:00
markturansky
2cf4e6564b Added more to README, tweaked pod, added service, fixed validation 2015-04-27 12:05:12 -04:00
markturansky
b634f17ca7 Refactored to DeltaFifo 2015-04-27 12:05:12 -04:00
markturansky
49883e7d01 Edited README 2015-04-27 12:05:12 -04:00
markturansky
e1b885c9ad narrowed client interface to allow easier testing. added PVC deletion test case. 2015-04-27 12:05:12 -04:00
markturansky
f26df6a983 renamed exported symbol for pvOrderedIndex, added locks, remove go routine for sync funcs 2015-04-27 12:05:12 -04:00
markturansky
6c6aab60ab goformatted 2015-04-27 12:05:12 -04:00
markturansky
fb412e47e4 Addressed feedback, improved flow and comments 2015-04-27 12:05:11 -04:00
markturansky
242567460d PersistentVolumeClaimBinder implementation 2015-04-27 12:05:11 -04:00
Maciej Szulik
cd183bbb72 Fixed validation message when trying to submit incorrect secret 2015-04-27 15:18:32 +02:00
Wojciech Tyczynski
922555f048 Improvements to generator of conversion methods. 2015-04-27 13:33:38 +02:00
Chris Moos
36e3ec9c1f Fix crash in kubelet when persistent volume claim is not bound.
While testing #6105 ran into this issue, kubelet crashed because
controller had not yet bound the claim to a volume.
2015-04-25 12:38:18 -07:00
Yifan Gu
6c98b9daee kubelet/metrics: Move instrumented_docker.go to dockertools.
This can solve the circular import problem when we move the
kubelet.pullImage to kubelet/metrics or kubelet/container package.
2015-04-24 22:03:11 -07:00
Brendan Burns
f40c793b37 Address a couple of TODO's in the recent rolling update change. 2015-04-24 16:47:37 -07:00
Victor Marmol
d0288f7143 Merge pull request #7301 from yujuhong/no_resurrection
Kubelet: filter out terminated pods in SyncPods
2015-04-24 16:17:06 -07:00
Brian Grant
7330ced1fe Merge pull request #7268 from brendandburns/qps
First part of improved rolling update, allow dynamic next replication controller generation.
2015-04-24 16:11:07 -07:00
Yu-Ju Hong
b0e6926f67 kubelet: filter out terminated pods in SyncPods
Once a pod reaches a terminated state (whether failed or succeeded), it should
not transit out ever again. Currently, kubelet relies on examining the dead
containers to verify that the container has already been run. This is fine
in most cases, but if the dead containers were garbage collected, kubelet may
falsely concluded that the pod has never been run. It would then try to restart
all the containers.

This change eliminates most of such possibilities by pre-filtering out the pods
in the final states before sending updates to per-pod workers.
2015-04-24 15:28:03 -07:00
Brendan Burns
217e6ff0d0 First part of improved rolling update, allow dynamic next replication controller generation. 2015-04-24 15:19:00 -07:00
Victor Marmol
270d8aec8b Raise cAdvisor stats cache to 2m.
This used to be 60ns which was a bug from when we switched from number
of stats to duration. Seems like the type was silently
converted/ignored.
2015-04-24 14:44:13 -07:00
Robert Bailey
0f22b6fc4d Merge pull request #7251 from a-robinson/tp
Move load balancer host / target pool reconciliation to the service controller
2015-04-24 13:17:54 -07:00
Eric Tune
8a76cbf3d0 Merge pull request #7293 from ashcrow/apiserver_authz_tests
Added basic apiserver authz tests.
2015-04-24 13:05:45 -07:00
Clayton Coleman
9d0042e760 Merge pull request #7238 from csrwng/use_log_subresource
Switch kubelet log command to use pod log subresource
2015-04-24 15:16:50 -04:00
Alex Robinson
5d9564b1cc Improve GCE's implementation of UpdateTCPLoadBalancer to only make the
update calls if anything has changed.
2015-04-24 18:44:19 +00:00
Alex Robinson
6ae8e40d3d Move the logic for reconciling the host targets of external load balancers
from the node controller to the service controller before impending changes
to the node controller make it not fit there anymore.
2015-04-24 18:44:04 +00:00
Steve Milner
1acbfba576 Added basic apiserver authz tests. 2015-04-24 14:38:34 -04:00
Brian Grant
60d7bad147 Merge pull request #7128 from nikhiljindal/fixbeta1tests
Removing more references to v1beta1 from pkg/
2015-04-24 11:07:53 -07:00
Cesar Wong
556faa4590 Switch kubelet log command to use pod log subresource 2015-04-24 14:04:51 -04:00
Fabio Yeon
0c54673626 Merge pull request #7180 from ddysher/validate-no-dup-ip
Validate Node IPs; clean up validation code
2015-04-24 09:36:27 -07:00
Robert Bailey
137c90738e Merge pull request #7289 from kazegusuri/logging
lower log level on recovering from panic
2015-04-24 09:22:46 -07:00
Victor Marmol
e654abde97 Merge pull request #7271 from yifan-gu/run
kubelet/dockertools: Move RunContainer into container runtime.
2015-04-24 07:46:22 -07:00
Masahiro Sano
7c371ee36e lower log level on recovering from panic 2015-04-24 22:09:14 +09:00
Clayton Coleman
9f753c2592 Merge pull request #5909 from mfojtik/iowatcher
Suppress 'use of closed network connection' error in iowatcher
2015-04-24 08:56:40 -04:00
Clayton Coleman
ed00dae7c8 Merge pull request #7107 from wojtek-t/conversion_generator
Code to automatically generate conversion methods
2015-04-24 08:39:11 -04:00
Michal Fojtik
1d496a030e Suppress 'use of closed network connection' error in iowatcher
Signed-off-by: Michal Fojtik <mfojtik@redhat.com>
2015-04-24 14:32:00 +02:00
Wojciech Tyczynski
159a58ddfb Merge pull request #7169 from fgrzadkowski/requests_by_clients
Break request metrics in apiserver by client.
2015-04-24 13:37:50 +02:00
Filip Grzadkowski
8b755c805b Break request metrics in apiserver by client. 2015-04-24 13:16:14 +02:00
Karl Beecher
a7623ca6cc Adds ability to define a prefix for etcd paths
The API server can be supplied (via a command line flag) with a custom
prefix that is prepended to etcd resources paths.

Refs: #3476
2015-04-24 12:12:39 +02:00
nikhiljindal
dcc368c781 Removing more references to v1beta1 from pkg/ 2015-04-24 00:45:17 -07:00
Wojciech Tyczynski
7f919a44c2 Generate conversions for v1beta3 package. 2015-04-24 09:18:12 +02:00
Deyuan Deng
c73ce1db34 Validate Node IPs; clean up validation code 2015-04-23 21:08:18 -04:00
David Oppenheimer
7505bed054 Merge pull request #7270 from thockin/docslinks
Make docs links go through docs.k8s.io
2015-04-23 17:18:51 -07:00
David Oppenheimer
ee11832d71 Merge pull request #7263 from lavalamp/fix4
fix watch of single object
2015-04-23 17:09:59 -07:00
Brian Grant
24cad22a88 Merge pull request #6674 from kargakis/error-on-invalid-label-spec
Tighten label parsing
2015-04-23 16:41:52 -07:00
Yifan Gu
b5a1b32aa4 kubelet/dockertools: Move RunContainer into container runtime.
Also removed ContainerRunner interface.
2015-04-23 16:40:37 -07:00
Tim Hockin
12e4e8f304 Make docs links go through docs.k8s.io 2015-04-23 16:36:27 -07:00
Brian Grant
73322af8e8 Merge pull request #5842 from simon3z/rc-annotation
Replica Controller Name Annotation in Pods
2015-04-23 16:35:18 -07:00
David Oppenheimer
e8b28c59c6 Merge pull request #7228 from jlowdermilk/describe-examples
Add examples for kubectl describe, make gendocs less spammy
2015-04-23 16:08:35 -07:00
Daniel Smith
2fa3ae9f15 fix watch of single object 2015-04-23 16:02:22 -07:00
Victor Marmol
d25a1412e6 Merge pull request #7262 from yifan-gu/kill
kubelet: Move KillContainer to container runtime.
2015-04-23 15:59:30 -07:00
Brian Grant
0b153eb522 Merge pull request #7211 from anguslees/lbmethod-fix
OpenStack: lb_method required when creating LbaaS pool
2015-04-23 15:56:42 -07:00
Yifan Gu
6ed27d06f7 kubelet: Move KillContainer to container runtime.
Rename KillContainerID(string) with KillContainer(string).
Delete the old KillContainer(*kubecontainer.Container).
2015-04-23 15:44:00 -07:00
Brian Grant
38ea531487 Merge pull request #7194 from nikhiljindal/example
Updating the guestbook example to v1beta3
2015-04-23 15:26:47 -07:00
Yu-Ju Hong
a3de4908d5 Merge pull request #7215 from nikhiljindal/errHandle
Updating serviceErrorHandler to use apiVersion specific codec
2015-04-23 15:21:29 -07:00
David Oppenheimer
8667ebddff Merge pull request #7249 from yifan-gu/generator
kubelet/container: Introduce RunContainerOptionsGenerator.
2015-04-23 14:59:23 -07:00
Jeff Lowdermilk
a8e2f6e9c8 Add examples for kubectl describe, and make gendocs less spammy
Makes hack/{run/verify}-gendocs.sh ignore generated-timestamp-only
changes so minor changes to kubectl don't have to touch the entire
set of md docs.
2015-04-23 14:53:10 -07:00
Satnam Singh
bb478a9e21 Merge pull request #7007 from jlowdermilk/kubeconfig-verbose
Add a --short flag to kubectl config view
2015-04-23 14:51:13 -07:00
Dawn Chen
6207c518b3 Merge pull request #7254 from yifan-gu/readiness
kubelet/dockertools: Add readinessManage/containerRefManager to dockerManager.
2015-04-23 14:34:43 -07:00
nikhiljindal
1e323d77bc Updating the guestbook example to v1beta3 2015-04-23 14:34:36 -07:00
nikhiljindal
120904df5f Fixing serviceErrorHandler to use apiVersion specific codec 2015-04-23 14:32:05 -07:00
Yifan Gu
e8d485a3a1 kubelet/dockertools: Add readinessManage/containerRefManager to dockerManager.
This can enable us to move KillContainer() to container runtime.
2015-04-23 14:20:34 -07:00
Yifan Gu
bd7132bc07 kubelet/container: Introduce RunContainerOptionsGenerator.
This interface wraps the kubelet to provide the options for
container runtime to run a container.
2015-04-23 13:55:50 -07:00
Dawn Chen
f7831dcd93 Merge pull request #7229 from vmarmol/stats
Kubelet: Add /stats/container endpoint for raw containers
2015-04-23 13:43:23 -07:00
Dawn Chen
4c221892a5 Merge pull request #7241 from yifan-gu/pull
kubelet/container: Add Pull() and IsImagePresent() to runtime interface.
2015-04-23 13:39:31 -07:00
Tim Hockin
4e40423ca7 Merge pull request #7166 from pmorie/secrets-idempotent
Make secret volume plugin idempotent
2015-04-23 12:13:26 -07:00
Yifan Gu
de6e81fb4a kubelet/container: Add Pull() and IsImagePresent() to runtime interface. 2015-04-23 11:58:51 -07:00
Victor Marmol
15e2a7fe38 Merge pull request #7200 from yifan-gu/containerID
Introduce container ID type.
2015-04-23 11:33:32 -07:00
Yifan Gu
afb9a896cb Introduce container ID type. 2015-04-23 10:43:27 -07:00
Victor Marmol
c29d328c55 Kubelet: Add /stats/container endpoint.
This endpoint exposes container stats for all raw containers on the
machine. The addition is backwards compatible.
2015-04-23 10:38:29 -07:00
Yifan Gu
af1e9f737f kubelet: Introduce volume manager.
The volume manager book-keeps the information for the volume mounts
on the kubelet, so we can avoid passing the volumeMap around.
2015-04-23 10:37:02 -07:00
Victor Marmol
e2f37f81a9 Add SubcontainerInfo() to cAdvisor API.
Returns information about a container and its subcontainers.
2015-04-23 10:20:05 -07:00
Dawn Chen
f9156c281a Merge pull request #7123 from satnam6502/logging
Propagate pod and container name for log files
2015-04-23 10:13:08 -07:00
Dawn Chen
961cd710d7 Merge pull request #7208 from vmarmol/runtime
Add RunInContainer/ExecInContainer to container Runtime API.
2015-04-23 10:11:57 -07:00
Fabio Yeon
eb11d78b58 Merge pull request #7187 from akram/fix_port_forward_listner_parsing_ipv4_ipv6_2
Fixes port_forward unit tests which fails on machine which ::1 does not resolve to localhost
2015-04-23 09:49:46 -07:00
Robert Bailey
c303c055d1 Merge pull request #7225 from relaxdiego/master
Add .yml to the list of recognized file extensions
2015-04-23 09:36:33 -07:00
Wojciech Tyczynski
c4a27f5c0f Generating conversion methods. 2015-04-23 18:26:24 +02:00
Jeff Lowdermilk
fa6ce7b7bf Add a --raw flag to kubectl config view
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
Mark Maglana
4927d70dd0 Add .yml to the list of recognized file extensions 2015-04-23 08:57:45 -07:00
Paul Morie
bc8f010a10 Make secret volume plugin idempotent 2015-04-23 11:23:23 -04:00
Wojciech Tyczynski
7e2724e14b Avoid benchmarks from being optimized 2015-04-23 08:57:29 +02:00
Angus Lees
8818966d1f OpenStack: lb_method required when creating LbaaS pool
This change takes lb-method from [LoadBalancer] section of cloud
provider config file, defaulting to ROUND_ROBIN.

Fixes #7199
2015-04-23 15:19:14 +10:00
Victor Marmol
de6d5cc165 Add RunInContainer/ExecInContainer to container Runtime API. 2015-04-22 18:09:24 -07:00
Prashanth B
35cbbe6bde Merge pull request #7198 from yujuhong/fix_filter
Fix pod filtering in replication controller
2015-04-22 17:25:38 -07:00
Yu-Ju Hong
10ecbb8aab Fix pod filtering in replication controller 2015-04-22 16:09:14 -07:00
Brian Grant
ef2d1aef26 Merge pull request #7189 from ddysher/clean-tag
Fix condition tags
2015-04-22 15:40:56 -07:00
Satnam Singh
2444c1f943 Propagate pod and container name for log files 2015-04-22 15:08:51 -07:00
Deyuan Deng
401442b024 Fix condition tags 2015-04-22 16:33:22 -04:00
Victor Marmol
45575d95b3 Merge pull request #7177 from yifan-gu/runner
kubelet/dockertools: Remove dockerContainerCommandRunner.
2015-04-22 13:24:50 -07:00
Akram Ben Aissi
0883bfa6d3 Fixes an issue with hosts having an IPv6 address on localhost
- When 'getent hosts localhost' returns '::1' the creation of the
  listener fails because of the port parsing which uses ":" as a
separator
- Use of net.SplitHostPort() to do the job
- Adding unit tests to ensure that the creation succeeds
- On docker.go: adds a test on the presence the socat command which was
  failing silenty if not installed

- Code Review 1
  - Fixed typo on Expected
  - The UT now fails if the PortForwarder could not be created

- Code Review 2
  - Simplify socat error message
  - Changing t.Fatal to to.Error on unit tests

- Code Review 3
  - Removing useless uses cases in unit tests

- Code Review 4
  - Removing useless initiliasiation of PortForwarder
  - Changing error message

- Code Review 5
  - Simplifying TestCast struct
  - Adding addition test in one test case
  - Closing the listener

- Code Review 6
  - Improving unit test
2015-04-22 22:20:51 +02:00
Victor Marmol
a0cc7c26d7 Merge pull request #7185 from yifan-gu/interface
kubelet/container: Move Prober/HandlerRunner interface to container/help...
2015-04-22 12:16:10 -07:00
Yifan Gu
f59013410a kubelet/container: Move Prober/HandlerRunner interface to container/helpers.go
This enables us to pass them to container runtime as parameters.
2015-04-22 11:56:15 -07:00
Brian Grant
97302af015 Merge pull request #5012 from smarterclayton/podtemplates
Pod templates as their own type
2015-04-22 11:50:24 -07:00
Vish Kannan
a054201556 Merge pull request #7110 from swagiaal/improve-iscsi-test
iscsi Test: Add explicit check for attach and detach calls.
2015-04-22 11:21:42 -07:00
Vish Kannan
ee06097c07 Merge pull request #7003 from derekwaynecarr/enforce_unbounded
Reject unbounded cpu and memory pods if quota is restricting it
2015-04-22 11:19:52 -07:00
Clayton Coleman
d790cc14a9 Merge pull request #7163 from wojtek-t/conversion_benchmarks
Create benchmarks for conversions.
2015-04-22 14:10:46 -04:00
Yifan Gu
c55c879ffe kubelet/dockertools: Remove dockerContainerCommandRunner.
Replace with docker manager.
2015-04-22 11:00:54 -07:00
Xiang Li
fb3c8f9452 pkg/apiserver: minor cleanup for errToAPIStatus() 2015-04-22 10:44:03 -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
Victor Marmol
1a41ec9c86 Merge pull request #7116 from yujuhong/container_status
Print container statuses in `kubectl get pods`
2015-04-22 09:18:14 -07:00
Federico Simoncelli
253ce4b6fe replication: annotate replicated pods with controller name
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-22 11:26:25 -04:00
Victor Marmol
914a6febfb Merge pull request #7010 from yifan-gu/compute
kubelet: Refactor computePodContainerChanges().
2015-04-22 08:05:18 -07:00
Wojciech Tyczynski
ea314d55f7 Create benchmarks for conversions. 2015-04-22 16:27:23 +02:00
Brian Grant
fc50201f89 Merge pull request #7059 from derekwaynecarr/fixup
Improve container resource requirements validation
2015-04-22 07:13:34 -07:00
Brian Grant
15c2986a07 Merge pull request #7067 from ravigadde/master
Added field selector for listing pods
2015-04-22 07:12:21 -07:00
Brian Grant
8dbbf3da5c Merge pull request #7138 from pravisankar/unschedulable-event
Record an event on node schedulable changes
2015-04-22 07:11:14 -07:00
Brian Grant
1a9c179271 Merge pull request #7145 from caesarxuchao/6812
Resolve #6812, limit length of load balancer names
2015-04-22 07:09:23 -07:00
Fabio Yeon
1ac71631ee Merge pull request #7156 from xiang90/use_httperror
pkg/apiserver: use httpError in handlers.go
2015-04-22 06:59:58 -07:00
Xiang Li
405ebf4b1e pkg/apiserver: use httpError in handlers.go 2015-04-21 23:05:56 -07:00
Dawn Chen
a666c1e731 Merge pull request #7134 from yifan-gu/version
kubelet: Refactor GetDockerVersion().
2015-04-21 16:49:45 -07:00
Yu-Ju Hong
06125f37d3 Print container statuses in kubectl get pods
`kubectl get pod` already prints one container per line. This change fills in
the status for each container listed. This aims to help users quickly identify
unhealthy pods (e.g. in a crash loop) at a glance.

 - The first row of every pod would display the pod information and status
 - Each row of the subsequent rows corresponds to a container in that pod:
    * STATUS refers to the container status (Running, Waiting, Terminated).
    * CREATED refers to the elapsed time since the last start time of the
      container.
    * MESSAGE is a string which explains the last termination reason, and/or
      the reason behind the waiting status.
2015-04-21 15:42:18 -07:00
Derek Carr
cf27fd12c1 Merge pull request #6278 from akram/fix_port_forward_listner_parsing_ipv4_ipv6
Fixes an issue with hosts having an IPv6 address on localhost
2015-04-21 18:04:02 -04:00
Clayton Coleman
250a9889f7 Merge pull request #7093 from derekwaynecarr/ref_update
Fixup event object reference generation to allow downstream objects
2015-04-21 17:55:02 -04:00
Yifan Gu
611fb25926 kubelet: Refactor GetDockerVersion().
Remove GetDockerServerVersion() from DockerContainerCommandRunner interface,
replaced with runtime.Version(). Also added Version type in runtime for version
comparision.
2015-04-21 14:52:08 -07:00
Tim Hockin
fa648c17cb Merge pull request #7131 from rjnagal/node
Convert error strings to proper validation errors.
2015-04-21 14:15:32 -07:00
Ravi Sankar Penta
f1d88f6d2f Record an event on node schedulable changes 2015-04-21 14:14:59 -07:00
Yifan Gu
5594981340 kubelet: Refactor computePodContainerChanges().
Pull generatePodStatus() and makePodDataDirs() out as they are the
common part for container runtimes.
2015-04-21 13:53:20 -07:00
Brian Grant
7d3c15dd4d Merge pull request #6996 from ironcladlou/rolling-updater-cleanup-policy
Add cleanup policy to RollingUpdater
2015-04-21 13:47:12 -07:00
Rohit Jnagal
bfb4b7280d Convert error strings to validation errors. 2015-04-21 20:35:46 +00:00
Brian Grant
7977949767 Merge pull request #6593 from derekwaynecarr/object_counts
ResourceQuota add object count support for secret and volume claims
2015-04-21 13:16:00 -07:00
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
Brian Grant
8ae4cb384e Merge pull request #6992 from yujuhong/kill_pods
Prioritize deleting the non-running pods when reducing replicas
2015-04-21 12:58:21 -07:00
derekwaynecarr
3445bd5806 Fixup event object reference generation to allow downstream objects to have an event 2015-04-21 15:31:38 -04:00
caesarxuchao
e9c5e44767 Use service UID as the ELB name 2015-04-21 12:20:42 -07:00
Daniel Smith
1ebe994ba7 Merge pull request #7056 from kubernetes-ui/kubernetes-ui-dashboard
Kubernetes UI with Dashboard component
2015-04-21 12:16:47 -07:00
Fabio Yeon
0163ebf224 Merge pull request #7106 from justinsb/aws_fakeec2_filter_by_instanceid
Add FakeEC2 Instances support for matching by instance id
2015-04-21 11:39:25 -07:00
Tim Hockin
5ff76bfdab Merge pull request #7102 from jsafrane/devel/fix-gluster-namespace
Use pod namespace when looking for its GlusterFS endpoints.
2015-04-21 11:18:52 -07:00
Akram Ben Aissi
b7fc22be8a Fixes an issue with hosts having an IPv6 address on localhost
- When 'getent hosts localhost' returns '::1' the creation of the
  listener fails because of the port parsing which uses ":" as a
separator
- Use of net.SplitHostPort() to do the job
- Adding unit tests to ensure that the creation succeeds
- On docker.go: adds a test on the presence the socat command which was
  failing silenty if not installed

- Code Review 1
  - Fixed typo on Expected
  - The UT now fails if the PortForwarder could not be created

- Code Review 2
  - Simplify socat error message
  - Changing t.Fatal to to.Error on unit tests

- Code Review 3
  - Removing useless uses cases in unit tests

- Code Review 4
  - Removing useless initiliasiation of PortForwarder
  - Changing error message

- Code Review 5
  - Simplifying TestCast struct
  - Adding addition test in one test case
  - Closing the listener

- Code Review 6
  - Improving unit test
2015-04-21 20:16:22 +02:00
Derek Carr
74d6f30b3c Merge pull request #7022 from markturansky/ns_controller_indempotent
Made NamespaceManager.Run idempotent and added graceful shutdown
2015-04-21 13:55:14 -04:00
Yu-Ju Hong
df2cbd4877 Prioritize deleting the non-running pods when reducing replicas
This changes instructs the replication controller to delete replicas in the
order of "unscheduled (pending)", "scheduled (pending)", and "scheduled
(running)" pods. This is less disruptive than deleting random pods.
2015-04-21 10:17:29 -07:00
Victor Marmol
4b9a64bcd8 Merge pull request #7098 from yifan-gu/handler
kubelet: Refactor runHandler().
2015-04-21 08:14:42 -07:00
Dan Mace
093b7c2e25 Add cleanup policy to RollingUpdater
* Support configurable cleanup policies in RollingUpdater. Downstream
library consumers don't necessarily have the same rules for post
deployment cleanup; making the behavior policy driven is more flexible.

* Refactor RollingUpdater to accept a config object during Update instead
of a long argument list.

* Add test coverage for cleanup policy.
2015-04-21 10:51:38 -04:00
Sami Wagiaalla
0a7f6c2999 iscsi Test: Add explicit check for attach and detach calls.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-04-21 10:30:47 -04:00
Patrick Reilly
716d98c39e initial commit of chrome only of new replacement web ui
remove node modules

make new data file for web ui

initial commit of dashboard

switch back to non SSL request

move port splitting to common place; add to node resource location

Signed-off-by: Patrick Reilly <patrick@kismatic.io>

various path fixes

make svg path relative

work around missing mime type

Signed-off-by: Patrick Reilly <patrick@kismatic.io>

fix paths

fix karma path

remove bad protractor test
2015-04-21 07:24:06 -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
Justin Santa Barbara
5efd1e717f Add FakeEC2 Instances support for matching by instance id 2015-04-21 06:51:43 -07:00
derekwaynecarr
06eb45fb75 ResourceQuota add object count support for secret and volume claims 2015-04-21 09:49:40 -04:00
Ravi Gadde
bf8f258471 Added field selector for listing pods. 2015-04-21 06:33:28 -07:00
Jan Safranek
0293c6b7f0 Use pod namespace when looking for its GlusterFS endpoints.
I have a pod, which exports a Gluster filesystem in non-default namespace.
When I try to use this FS as a GlusterfsVolumeSource in a 'client' pod
definition, Kubernetes looks for the appropriate endpoint in 'default'
namespace instead of the namespace where the client pod is being defined.
2015-04-21 12:33:59 +02:00
Piotr Szczesniak
a45b5c3ebf Merge pull request #7095 from derekwaynecarr/public_describe_events
Make describeEvents DescribeEvents
2015-04-21 06:52:26 +02:00
Piotr Szczesniak
ade6b23622 Merge pull request #7083 from lavalamp/mimeType
work around missing mime type
2015-04-21 06:45:20 +02:00
Yifan Gu
c23b83b0ca kubelet: Refactor runHandler().
Use new HandlerRunner type to replace runHandler()
2015-04-20 21:31:11 -07:00
derekwaynecarr
7638107f8b Make describeEvents DescribeEvents 2015-04-21 00:24:12 -04:00
Brian Grant
9dcf3e0a33 Merge pull request #7082 from fabioy/api-cs.fix
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 18:10:36 -07:00
Daniel Smith
bf45a62382 Merge pull request #7079 from thockin/fuzz_volumes
Easier fuzzing for volumes
2015-04-20 18:09:05 -07:00
CJ Cullen
1be193098a Merge pull request #7072 from dchen1107/cleanup
Remove fqdn dependency for node name
2015-04-20 18:00:21 -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
Dawn Chen
5eda3fe9a9 Remove deprecated comment. 2015-04-20 17:12:36 -07:00
Daniel Smith
b9aaf90dd1 work around missing mime type 2015-04-20 17:12:35 -07:00
Daniel Smith
462534ca5d Merge pull request #7068 from krousey/api_pod_pointer
Changing  a few more instances of api.Pod to *api.Pod
2015-04-20 17:09:28 -07:00
Clayton Coleman
1bc4912f51 Merge pull request #7030 from liggitt/skip_fetch_delete
Skip fetching from server when deleting a named resource
2015-04-20 19:38:10 -04:00
Tim Hockin
c320931d6a Easier fuzzing for volumes 2015-04-20 16:29:52 -07:00
Masahiro Sano
f90dc8f413 use Watch for single object instead of WatchList 2015-04-21 08:00:52 +09:00
Eric Paris
0620940d26 annotate required flags for bash_completions
some commands require that certain flags be set in order to function.
Annotate those flags so the bash completions will suggest to the user
that they be set.
2015-04-20 18:33:00 -04: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
Victor Marmol
d44e9b4880 Merge pull request #7048 from yujuhong/para_cleanup
Kubelet: parallelize cleaning up containers in unwanted pods
2015-04-20 14:59:07 -07:00
Yu-Ju Hong
275002173e Kubelet: parallelize cleaning up containers in unwanted pods
Kubelet kills unwanted pods in SyncPods, which directly impact the latency of a
sync iteration. This change parallelizes the cleanup to lessen the effect.

Eventually, we should leverage per-pod workers for cleanup, with the exception
of truly orphaned pods.
2015-04-20 14:42:12 -07:00
Daniel Smith
27ee6ea0de move port splitting to common place; add to node resource location 2015-04-20 14:31:44 -07:00
Brendan Burns
01b891770f Merge pull request #7054 from ncdc/dockerclient-version
Use go-dockerclient's APIVersion
2015-04-20 14:20:57 -07:00
Dawn Chen
28e0c68d65 Register node with nodename only. 2015-04-20 14:16:21 -07:00
Kenjiro Nakayama
2e702b0c61 Replace hostname -f with uname -n 2015-04-20 14:16:21 -07:00
Brendan Burns
d7b0b4a95b Merge pull request #6834 from eparis/bash-4-kubectl-describe
Annotate kubectl describe with describable object for bash completions
2015-04-20 14:13:53 -07:00
markturansky
13a38f3e52 Made NamespaceManager.Run indempotent and added graceful shutdown 2015-04-20 16:50:40 -04:00
Jeff Lowdermilk
89fba5ff63 Merge pull request #6942 from smarterclayton/simplify_object_export
List output with differing types should be more resilient
2015-04-20 13:48:57 -07:00
derekwaynecarr
5036289b5e Improve container resource requirements validation 2015-04-20 15:08:18 -04:00
Jordan Liggitt
feb8ba9c4e Allow resource builder to avoid fetching objects 2015-04-20 15:00:52 -04:00
Brendan Burns
4e811201a0 Merge pull request #7020 from kazegusuri/reenable_auto_reauth
Update gophercloud to HEAD and reenable auto reauth
2015-04-20 11:57:07 -07:00
Clayton Coleman
545a5a865f List output with differing types should be more resilient
kubectl get can output a series of objects as a List in versioned
form, but not all API objects are available in the same schema.
Make the act of converting a []runtime.Object to api.List more
robust and add a test to verify its behavior in Get.

Makes it easier for client code to output unified objects.
2015-04-20 14:44:16 -04:00
Brendan Burns
e079e23e47 Merge pull request #6597 from fabioy/kubectl-validate
Add "kubectl validate" command to do a cluster health check.
2015-04-20 11:21:06 -07:00
Andy Goldstein
a0a80ea76e Use go-dockerclient's APIVersion
Use go-dockerclient's APIVersion to check the minimum required Docker
version, as it contains methods for parsing the ApiVersion response from
the Docker daemon and for comparing 2 APIVersion objects.
2015-04-20 13:48:18 -04:00
Brendan Burns
29875191ad Merge pull request #7000 from deads2k/deads-allow-many-modifications
allow multiple changes in kubeconfig modifyconfig
2015-04-20 10:46:12 -07:00
Yu-Ju Hong
cd61aa9484 Merge pull request #7009 from yifan-gu/kube_dep
kubelet: Refactor prober.
2015-04-20 10:23:04 -07:00
Victor Marmol
cf27de61c6 Merge pull request #7035 from smarterclayton/turn_down_kubelet_for_what
Tone down kubelet logs for already run containers
2015-04-20 08:05:25 -07:00
Victor Marmol
446f349910 Merge pull request #7037 from xiang90/no-self
pkg/kubelet: no more self receiver in kubelet pkg
2015-04-20 08:03:48 -07:00
Avesh Agarwal
a2ac72c4e7 This commit fixes "kubectl get nodes" output and makes it more sane, and also adds new unit test cases for SchedulingDisabled. 2015-04-20 00:12:18 -04:00
Justin Santa Barbara
335f42b38c AWS: Return public & private addresses in GetNodeAddresses 2015-04-19 21:10:44 -07:00
Xiang Li
2f2247dae3 pkg/kubelet: no more self receiver in kubelet pkg 2015-04-19 20:26:07 -07:00
Clayton Coleman
9e87924983 Tone down kubelet logs for already run containers 2015-04-19 22:55:38 -04:00
Masahiro Sano
b2d68c79b7 use auto reauth when access token is expired 2015-04-18 18:41:54 +09:00
Prashanth B
f2f40b06aa Merge pull request #6943 from lavalamp/fix4
Improve endpoint controller
2015-04-17 16:30:31 -07:00
Yifan Gu
1d58992df7 kubelet: Refactor prober.
Decompose the health check prober from the kubelet.
2015-04-17 15:54:28 -07:00
Daniel Smith
a2953fdc7e Make endpoint controller use framework 2015-04-17 15:21:51 -07:00
Daniel Smith
24a8cceb5c add work queue; test coverage 100% 2015-04-17 15:21:47 -07:00
Daniel Smith
da5111891c Fix selector handling in listers.go. 2015-04-17 15:21:37 -07:00
Yu-Ju Hong
1f3e47f6f7 Merge pull request #7005 from yifan-gu/kube_dep
kubelet: Refactor shouldContainerBeRestarted():
2015-04-17 15:05:41 -07:00
Daniel Smith
8a17ea4894 Add Delete method to endpoints client. 2015-04-17 14:55:19 -07:00
Yifan Gu
29a5da231d kubelet: Refactor shouldContainerBeRestarted():
Remove the function's dependency on kubelet.
2015-04-17 14:35:39 -07:00
derekwaynecarr
75482cabb4 Reject unbounded cpu and memory pods if quota is restricting it 2015-04-17 17:02:47 -04:00
Kris Rousey
81497f3ed2 Changing the scheduler package to use *api.Pod instead of api.Pod to
avoid unnecessary shallow copies. The change rippled through a lot of
code.
2015-04-17 13:34:31 -07:00
deads2k
d24b672aa0 allow multiple changes in kubeconfig modifyconfig 2015-04-17 16:02:36 -04:00
Vish Kannan
c3caf397af Merge pull request #6935 from derekwaynecarr/fix_quota
Fix quota status not updating with change in spec
2015-04-17 12:52:33 -07:00
Brian Grant
43c375f759 Merge pull request #6968 from hurf/master
Update priorities.go
2015-04-17 12:10:54 -07:00
Fabio Yeon
c6ef2ddf8a Fix "validate-cluster.sh" to use "kubectl get componentstatus". 2015-04-17 11:59:53 -07:00
Fabio Yeon
951a125751 Add "componentstatus" to API for easier cluster health check. 2015-04-17 11:58:23 -07:00
Yu-Ju Hong
26a70a52e6 Merge pull request #6843 from xiang90/cleanup
pkg/kubelet: clean up pod manager
2015-04-17 11:27:14 -07:00
Yu-Ju Hong
13b29cd64b Merge pull request #6595 from guenter/kubelet-update-channel-closed
kubelet syncloop should stop if/when updates chan closes
2015-04-17 10:42:05 -07:00
Xiang Li
28c1726232 pkg/kubelet: minor cleanup in pod_manager.go 2015-04-17 10:24:38 -07:00
Xiang Li
864f9b4a8a pkg/kubelet: drop unnecessary receiver in pod_manager.go 2015-04-17 10:24:38 -07:00
Xiang Li
ede4fb4a37 pkg/kubelet: remove unnecessary wrapper code in pod_manager.go 2015-04-17 10:24:38 -07:00
Clayton Coleman
153a362501 Merge pull request #6938 from derekwaynecarr/fix_nil_pointer
Fix nil pointer in etcd tools
2015-04-17 13:20:59 -04: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
Clayton Coleman
4b85c0866a Don't insert duplicate arguments in SplitResourceArgs 2015-04-17 11:36:25 -04:00
derekwaynecarr
199011eee0 Fix nil pointer in etcd tools 2015-04-17 11:33:31 -04:00
Clayton Coleman
4833578a57 Merge pull request #6958 from smarterclayton/args_remain_in_order
`kubectl get rc,pods` should invoke in that order
2015-04-17 11:30:09 -04:00
Clayton Coleman
3bc42f1635 Merge pull request #6573 from kargakis/setup-resource-aliases
Support setting up aliases for groups of resources
2015-04-17 11:16:30 -04:00
kargakis
9d056c6bd8 Support setting up aliases for groups of resources
Closes #5278
2015-04-17 16:31:59 +02:00
Clayton Coleman
b3f03b934d Merge pull request #6869 from csrwng/pod_connect
Pod proxy, portforward and exec subresources
2015-04-17 09:49:12 -04:00
Wojciech Tyczynski
fafcf79d5d Allow more retries in density test 2015-04-17 12:35:56 +02:00
Victor HU
7eac8563d4 Update priorities.go
minor change in log message and log level
2015-04-17 16:02:55 +08:00
Clayton Coleman
2c11835612 kubectl get rc,pods should invoke in that order
SplitResourceArguments should not use a golang map
2015-04-17 00:57:02 -04:00
Daniel Smith
636d0682d7 Merge pull request #6830 from derekwaynecarr/improve_error_msg
Improve error message when name is omitted but generateName is available
2015-04-16 17:21:43 -07:00
Brian Grant
a927c239fe Merge pull request #6881 from nikhiljindal/errHandle
Registering a serviceErrorHandler with go-restful to always return JSON responses
2015-04-16 16:44:17 -07:00
Clayton Coleman
1d9203d98f Merge pull request #6932 from csrwng/proxy_redirect_params
Add URL parameters to proxy redirect Location header
2015-04-16 18:35:31 -04:00
nikhiljindal
f9132dc572 Registering serviceErrorHandler with go-restful 2015-04-16 14:59:44 -07:00
Cesar Wong
e09b8c99dc Add URL parameters to proxy redirect Location header
When a URL that doesn't end in "/" is sent to the API proxy,
the proxy responds with a redirect to the URL with a "/" at the
end. The problem is that this redirect path does not include
query parameters that were passed in the original request. This
is a fix to that issue.
2015-04-16 17:57:45 -04:00
derekwaynecarr
ea0ddd4a0a Fix quota status not updating with change in spec 2015-04-16 17:46:27 -04:00
Jeff Lowdermilk
97e4549170 Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
Eric Tune
e300bf3e13 Merge pull request #6922 from fabianofranz/fix_config_dir_creation
Create complete parent dir structure when saving config to file
2015-04-16 13:40:32 -07:00
Alex Robinson
391e079cf6 Merge pull request #6917 from thockin/dockerfile-images-are-dead
Stop using dockerfile/* images
2015-04-16 13:30:50 -07:00
Tim Hockin
c2bacd588d Stop using dockerfile/* images
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx.  Fix all
users in our tree.  Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
Dawn Chen
fa4363d493 Merge pull request #6924 from yujuhong/data_race
Fix data race in kubelet_test.go
2015-04-16 11:56:40 -07:00
Quinton Hoole
31dc4851ef Merge pull request #6870 from a-robinson/client
Make client service requests use the default timeout now that external load balancers are created asynchronously
2015-04-16 11:41:05 -07:00
Yu-Ju Hong
2fd87597a4 Fix data race in kubelet_test.go
Ensure that FakeDockerClient make a copy of the internal list and return it.
2015-04-16 11:36:10 -07:00
fabianofranz
f71aa6ad38 Create complete parent dir structure when saving config to file 2015-04-16 14:17:54 -03:00
derekwaynecarr
81dcd8c836 Improve error message when name is omitted but generateName is available 2015-04-16 13:06:19 -04:00
deads2k
de4be5422c change kubeconfig loading order 2015-04-16 13:05:09 -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
Cesar Wong
49abf9133e Add Connecter storage interface to API server
Connecter is a type of resource that connects a request
coming from the client to an internal request within the cluster.
It will be used for exposing a pod's proxy, exec, and portforward
endpoints.
2015-04-16 10:20:17 -04:00
Cesar Wong
a3f5dfd0e2 Move proxy html transport to utility package
Moves the proxy html transport that translates html links
from the proxy in apiserver to its own package under util.
2015-04-16 10:20:17 -04:00
markturansky
34924af63d Fixed typos in comments 2015-04-16 08:52:36 -04:00
Robert Bailey
f633ac0ab5 Restrict functions and structs that aren't used outside of the
nodecontroller to have package private scope. This makes reasoning
about the code in this package much simpler.
2015-04-15 20:56:07 -07: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
Tim Hockin
5e30997aeb Merge pull request #6871 from ironcladlou/rolling-update-refactor
Use narrowly scoped interfaces for client access
2015-04-15 17:01:58 -07:00
Victor Marmol
abab9ea31f Merge pull request #6844 from yifan-gu/cleankube
kubelet: Clean up computePodContainerChanges.
2015-04-15 13:53:21 -07:00
Dan Mace
bd7b719944 Make default impls private 2015-04-15 16:50:08 -04:00
Victor Marmol
24df692b48 Merge pull request #6872 from yujuhong/fix_lock
Fix locking issue in pod manager
2015-04-15 13:15:42 -07:00
Daniel Smith
1ea2c3ba48 Merge pull request #6754 from wojtek-t/list_with_single_element
Support List() with single-matchers
2015-04-15 12:43:47 -07:00
Yu-Ju Hong
967405f0bb Fix locking issue in pod manager 2015-04-15 11:39:57 -07:00
Alex Robinson
4e7248e47b Make client service requests use the default timeout now that external
load balancers are created asynchronously.
2015-04-15 18:37:53 +00:00
Dan Mace
312ccad3c1 Use narrowly scoped interfaces for client access
Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.
2015-04-15 14:28:59 -04:00
Saad Ali
6cfce2c7ee Merge pull request #6822 from derekwaynecarr/send_events_replication_controller
Replication controller gives failedCreate events
2015-04-15 11:27:23 -07:00
Victor Marmol
902e1196ac Merge pull request #6867 from pmorie/libcontainer-bug
Remove workaround for libcontainer Getfilecon bug
2015-04-15 11:02:46 -07:00
Eric Tune
3565a0861c Merge pull request #6864 from liggitt/generic_405_error
Add a more descriptive message for 405 errors
2015-04-15 10:59:17 -07:00
Quinton Hoole
7d9adad916 Merge pull request #6724 from nikhiljindal/beta1
Updating test/integration to use testapi.Version everywhere
2015-04-15 10:58:25 -07:00
Dawn Chen
d912398d07 Merge pull request #6813 from vmarmol/in-container
Run Kubelet and Kube-proxy in resource-only containers.
2015-04-15 10:37:00 -07:00
Paul Morie
68f22a40f3 Remove workaround for libcontainer Getfilecon bug
https://github.com/docker/libcontainer/issues/499 has been fixed
2015-04-15 13:29:20 -04:00
Brian Grant
775787bb4c Merge pull request #6849 from nikhiljindal/validation
Updating api/validation/schema_test to test testapi.Version rather than just v1beta1
2015-04-15 10:25:54 -07:00
Yifan Gu
3b28c6262b kubelet: Clean up computePodContainerChanges.
More `continue`, less `else` to make it less indent and more readable.
2015-04-15 10:13:57 -07:00
Jordan Liggitt
dde8c7156b Add a more descriptive message for 405 errors 2015-04-15 11:28:12 -04:00
Wojciech Tyczynski
afb94c43b1 Fix listing nodes in scheduler 2015-04-15 14:26:25 +02:00
Wojciech Tyczynski
6feaf8ee4f Support List() single-matchers 2015-04-15 12:10:43 +02:00
nikhiljindal
8874ef9c06 Updating test/integration to use testapi.Version everywhere 2015-04-15 00:00:17 -07:00
nikhiljindal
40842e4471 Updating api/validation/schema_test to test testapi.Version rather than just v1beta1 2015-04-14 23:51:49 -07:00
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
Quinton Hoole
cd6daae014 Merge pull request #6271 from a-robinson/asynclb
Manage load balancer creation and deletion asynchronously in a ServiceController
2015-04-14 17:50:07 -07:00
Alex Robinson
fc08a0a71b Do service creation/update/deletion work in a pool of goroutines, protecting
each service with a lock to ensure that no two goroutines will process a
service at the same time. This is needed to avoid weird race conditions.
2015-04-15 00:30:18 +00:00
Dawn Chen
a249a5bec8 Merge pull request #6792 from eparis/bash-3-kubectl-filename-json-yaml
bash_completions: Generic function for --filename arguments
2015-04-14 16:04:19 -07:00
Victor Marmol
54406a5b7c Merge pull request #6794 from yujuhong/restart_counts
Kubelet: persist restart count of a container
2015-04-14 16:01:49 -07:00
Eric Paris
f272e836e0 Annotate kubectl describe with describable object for bash completions 2015-04-14 18:51:18 -04:00
David Oppenheimer
6b28a69a1b Clarify comments describing how GuaranteedUpdate() (previously AtomicUpdate() works. Closes #6626. 2015-04-14 15:38:15 -07:00
Eric Paris
de3864a1c2 bash_completions: Generic function for --filename arguments
This generic function adds --filename= arguments to commands, and does
the magic so they get bash completions to find json, yaml, or yml files.
2015-04-14 18:25:52 -04:00
Yu-Ju Hong
fd34441d2d Kubelet: persist restart count of a container
Currently, restart count are generated by examine dead docker containers, which
are subject to background garbage collection. Therefore, the restart count is
capped at 5 and can decrement if GC happens.

This change leverages the container statuses recorded in the pod status as a
reference point. If a container finished after the last observation, restart
count is incremented on top of the last observed count. If container is created
after last observation, but GC'd before the current observation time, kubelet
would not be aware of the existence of such a container, and would not increase
the restart count accordingly. However, the chance of this should be low, given
that pod statuses are reported frequently. Also, the restart cound would still
be increasing monotonically (with the exception of container insepct error).
2015-04-14 15:06:42 -07:00
Jeff Lowdermilk
037407f49e Merge pull request #6791 from eparis/bash-2-kubectl-get-resources
bash_completions: annotate kubectl get with resources
2015-04-14 15:02:34 -07:00
Daniel Smith
98e61e252d Merge pull request #6736 from smarterclayton/conserve_copiers
Reuse gob.Encoder and Decoder in DeepCopy
2015-04-14 14:33:40 -07:00
Clayton Coleman
0e9ddadc71 Merge pull request #6825 from lavalamp/fix2
fix fake controller source watch behavior
2015-04-14 17:33:26 -04:00
Daniel Smith
3fdfea3ad8 fix fake controller source watch behavior 2015-04-14 13:31:35 -07:00
markturansky
d904e747e3 PVClaim volume plugin 2015-04-14 16:21:29 -04:00
derekwaynecarr
986c225311 Replication controller gives failedCreate events 2015-04-14 15:42:49 -04:00
Alex Robinson
9a351e3670 Move validation of load balancers only supporting TCP ports to validation.go. 2015-04-14 18:56:51 +00:00
Dawn Chen
f471ca8e0c Merge pull request #6809 from markturansky/pv_union
Refactor Volumes to use InternalVolume instead of API types
2015-04-14 11:56:49 -07: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
Jeff Lowdermilk
4f552053f1 Merge pull request #6789 from eparis/bash-custom-functions
Add bash completion custom functions
2015-04-14 11:54:22 -07:00
Alex Robinson
a11106edd3 Put the node controller in its own package rather than in the generic
cloudprovider/controller package.
2015-04-14 18:34:59 +00:00
markturansky
e1481fb9c2 Refactored Volume plugins to use InternalVolume instead of API types 2015-04-14 14:25:01 -04:00
Dawn Chen
f7ae442a02 Merge pull request #6811 from markturansky/typos
Fix spelling typo in comments
2015-04-14 10:30:39 -07:00
Victor Marmol
fb3c351fe1 Run Kubelet on "/kubelet" container. 2015-04-14 10:29:05 -07:00
Victor Marmol
8fc3d8f7b6 Adding utility for creating resource containers.
Allows creating and running in resource-only containers.
2015-04-14 10:29:05 -07:00
markturansky
f599aecc6a Fix spelling typo in comments 2015-04-14 12:46:29 -04:00
Victor Marmol
ca9e209ccb Merge pull request #6795 from yifan-gu/cache
kubelet/container: Replace DockerCache with RuntimeCache.
2015-04-14 09:37:34 -07:00
Dawn Chen
8420abeea8 Merge pull request #6786 from yifan-gu/cleankube
kubelet: Remove unused docker functions.
2015-04-14 09:16:53 -07:00
Derek Carr
9b6ba23622 Merge pull request #6761 from deads2k/deads-kubeconfig-squash
add flattening and minifying options to config view
2015-04-14 11:45:39 -04:00
Victor Marmol
e265f2c58d Merge pull request #6799 from xiang90/kerr
pkg/kubelet: fix error msg in GetHostIP
2015-04-14 08:40:34 -07:00
Victor Marmol
f59a9ca5f0 Merge pull request #6608 from yifan-gu/infra_changed
kubelet: Introduce PodInfraContainerChanged().
2015-04-14 08:23:17 -07:00
deads2k
bac5cbbe82 add flattening and minifying options to config view 2015-04-14 10:23:10 -04:00
Xiang Li
4a152290f4 pkg/kubelet: fix error msg in GetHostIP 2015-04-13 22:44:23 -07:00
Jordan Liggitt
8faf02ba58 Make secrets client honor namespace 2015-04-13 21:17:09 -04:00
Yifan Gu
e1feed9a8b kubelet/container: Replace DockerCache with RuntimeCache. 2015-04-13 18:16:05 -07:00
Daniel Smith
d02139d2b4 Merge pull request #6771 from derekwaynecarr/ns_controller
Remove delay when deleting namespaces, move to new controller framework
2015-04-13 17:55:13 -07:00
Yifan Gu
a5e6bea9b5 kubelet/container: Update the cache interface. 2015-04-13 17:38:18 -07:00
Yifan Gu
7fedb14c27 kubelet: Remove unused docker functions.
Remove kubelet.getPodInfraContainer().
Remove dockertools.RemoveContainerWithID().
Remove dockertools.FindContainersByPod().

Also replace the useless test with a test for GetPods().
2015-04-13 16:32:18 -07:00
Yifan Gu
4cdb1bf9ce kubelet: Introduce PodInfraContainerChanged().
Update tests.
2015-04-13 16:18:52 -07:00
Yifan Gu
d14cb8f1dd kubelet: Introduce PodInfraContainerChanged().
This functions computes in ahead whether we need to restart the pod
infra container.
2015-04-13 16:18:52 -07:00
Victor Marmol
26f8bc1a68 Merge pull request #6776 from yifan-gu/puller
kubelet/dockertools: Add puller interfaces in the containerManager.
2015-04-13 16:17:43 -07:00
Eric Paris
c75ecbd8e3 bash_completions: annotate kubectl get with resources which can be 'gotten'
A user types:
  kubectl get $resource

This will cause the bash completions to suggest the possible objects the
user can ask for.  The complete list right now is:

endpoints
event
limitrange
namespace
node
persistentvolume
persistentvolumeclaim
pod
replicationcontroller
resourcequota
secret
service
status

But this list should stay up2date as api objects are added or deleted
2015-04-13 19:11:26 -04:00
Fabio Yeon
e99141de0d Merge pull request #6729 from smarterclayton/chaosclient
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07:00
Dawn Chen
da481aacd7 Merge pull request #6784 from lavalamp/fix
fix tests flaky due to timeouts
2015-04-13 16:05:22 -07:00
Dawn Chen
fb25f9e12c Merge pull request #6768 from deads2k/deads-allow-flag-elimination
allow selective removal of kubeconfig override flags
2015-04-13 16:00:23 -07:00
Eric Paris
f6878aed3c Add bash completion custom functions
These functions call out to kubectl to get information about running
resources.  They give us completions which are kubernetes aware and thus
obviously better than just cobra subcommands and flags.
2015-04-13 18:49:28 -04:00
Dawn Chen
a8d028d054 Merge pull request #6780 from ddysher/remove-kubelet-client
Remove kubelet dependency on nodecontroller
2015-04-13 15:47:14 -07:00
Yifan Gu
dda600e45c kubelet/dockertools: Add puller interfaces in the containerManager. 2015-04-13 15:34:22 -07:00
Clayton Coleman
ca335d7be9 Add support for chaos to Kubelet and hack/local-up-cluster.sh 2015-04-13 18:21:20 -04:00
Daniel Smith
1ec6b02e99 fix tests flaky due to timeouts 2015-04-13 15:16:59 -07:00
Dawn Chen
a0fa592b80 Merge pull request #6778 from yifan-gu/getpods
kubelet/dockertool: Move Getpods() to DockerManager.
2015-04-13 14:50:52 -07:00
Robert Bailey
efdd58b737 Kubernetes version v0.15.0-dev 2015-04-13 14:08:50 -07:00
Robert Bailey
831f3e60d7 Kubernetes version v0.15.0 2015-04-13 14:08:45 -07:00
Yifan Gu
a3675e08f2 kubelet/dockertool: Move Getpods() to DockerManager. 2015-04-13 14:05:22 -07:00
Deyuan Deng
236db3c252 Remove kubelet dependency on nodecontroller 2015-04-13 16:59:45 -04:00
derekwaynecarr
c1a3fa0dae Remove delay when deleting namespaces, move to new controller framework 2015-04-13 15:18:22 -04:00
Tim Hockin
f318da8344 Merge pull request #6379 from pmorie/rootcontext
Skeletal security context to facilitate tmpfs mount
2015-04-13 12:01:11 -07: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
Vish Kannan
810ad7116d Merge pull request #6763 from swagiaal/improve-gce-pd-test
GCE PD Test: Add explicit check for attach and detach calls
2015-04-13 10:55:10 -07:00
Tim Hockin
96bcb56f10 Merge pull request #6737 from xiang90/p_tcp
pkg/proxy: a more reliable way to detect a closed proxy
2015-04-13 10:54:45 -07:00
Clayton Coleman
0c8a358de0 Merge pull request #6683 from deads2k/deads-handle-subresources
add support for authorizing subresources
2015-04-13 13:53:54 -04:00
Clayton Coleman
f95cc2b8f2 Reuse gob.Encoder and Decoder in DeepCopy 2015-04-13 13:52:38 -04:00
Dawn Chen
17bfa6f5d7 Merge pull request #6717 from lavalamp/fix
Fix comments; switch to watching nodes
2015-04-13 10:28:23 -07:00
deads2k
e7baa94404 allow selective removal of kubeconfig override flags 2015-04-13 13:14:23 -04:00
Xiang Li
7e36a88068 pkg/proxy: a more reliable way to detect a closed proxy 2015-04-13 10:11:22 -07:00
Dawn Chen
aa804ffb45 Merge pull request #6723 from kargakis/remove-deprecated-call
Remove deprecated call to ResourceFromArgs
2015-04-13 10:09:01 -07:00
Paul Morie
c98e89fca0 Set rootcontext of emptyDir tmpfs mounts correctly 2015-04-13 12:50:36 -04:00
Paul Morie
042ac3d800 Fix build (kubelet/util.go) 2015-04-13 12:29:36 -04:00
Victor Marmol
ab68bcb97f Merge pull request #6733 from xiang90/kub_cap
pkg/kubelet: move the capabilities related code to util.go
2015-04-13 09:02:36 -07:00
Victor Marmol
4e3b4bd10e Merge pull request #6731 from xiang90/util-kubulet
pkg/kubelet: kill a TODO in util.go
2015-04-13 09:01:00 -07:00
Dawn Chen
86091eea82 Merge pull request #6732 from xiang90/status_manager.go
pkg/kubelet: clean up status manager
2015-04-13 09:00:24 -07:00
Dawn Chen
b6ec2f971e Merge pull request #6741 from xiang90/udp_timeout
proxy: lower udp timeout
2015-04-13 08:58:02 -07:00
Dawn Chen
9d7eff0dca Merge pull request #6759 from luksa/master
Added missing argument
2015-04-13 08:56:20 -07:00
Sami Wagiaalla
309fd272b6 GCE PD Test: Add explicit check for attach and detach calls
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-04-13 11:36:28 -04:00
markturansky
ac4d34e5d7 Added PV & PVC client tests 2015-04-13 10:10:52 -04:00
markturansky
d8c87e93dc Adding missing UpdateStatus methods to client 2015-04-13 10:10:52 -04:00
Marko Luksa
9bfa29896b Added missing argument 2015-04-13 15:46:27 +02:00
Wojciech Tyczynski
a531a465d1 Merge pull request #6727 from xiang90/panic_fds
pkg/proxy: panic if run out of fd
2015-04-13 15:11:42 +02: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
Xiang Li
233ec922f3 proxy: lower udp timeout 2015-04-11 23:51:08 -07:00
Xiang Li
4b29947652 pkg/proxy: panic if run out of fd
When proxy runs out of fd, it fills the logs with error message.
From #6716, it is better to just panic().
2015-04-11 13:09:15 -07:00
Xiang Li
cef744ecaa pkg/kubelet: move the capabilities related code to util.go 2015-04-11 12:09:11 -07:00
Xiang Li
d24f60b5b8 pkg/kubelet: clean up status manager 2015-04-11 11:37:07 -07:00
Xiang Li
cea38a2f4e pkg/kubelet: kill a TODO in util.go
Move kubelet.CapabilitiesSetup to capabilities.Setup
2015-04-11 10:55:39 -07:00
Clayton Coleman
0146e318f5 Allow client.Config to wrap the underyling Transport 2015-04-11 13:20:48 -04:00
Clayton Coleman
66e746bade Add a transport that can simulate random network errors 2015-04-11 13:20:48 -04: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
kargakis
ae960552c8 Remove deprecated call to ResourceFromArgs
Continuing from #6571
2015-04-11 08:14:25 +02:00
Daniel Smith
dd26cdf0f7 Fix comments; switch to watching nodes 2015-04-10 17:49:51 -07:00
Tobi Knaup
3932dfd8bb Log an error when update channel is closed. 2015-04-10 17:30:04 -07:00
Dawn Chen
fff6cebb5f Merge pull request #6711 from yujuhong/container_status
Kubelet: surface the container creation/start failure reason
2015-04-10 17:19:32 -07:00
Daniel Smith
66d55e0959 Merge pull request #6546 from lavalamp/fix
Add to controller framework; use in scheduler
2015-04-10 16:20:17 -07:00
Daniel Smith
395d69641e fix race 2015-04-10 16:02:51 -07:00
Yu-Ju Hong
bb417e82d7 Kubelet: surface the container creation/start failure reason
Container creation/start failure cannot be reproduced by inspecting the
containers. This change caches such errors so that kubelet can retrieve it
later.

This change also extends FakeDockerClient to support setting error response
for a specific function.
2015-04-10 16:02:27 -07:00
Dawn Chen
c19437395b Merge pull request #6702 from ddysher/remove-nodeinfo
Remove nodeinfo endpoint from kubelet
2015-04-10 14:54:16 -07:00
Dawn Chen
cf357dfa21 Merge pull request #6701 from dchen1107/podstatus
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 14:22:54 -07:00
Daniel Smith
6835318d1e switch to require 'go controller.Run()' 2015-04-10 14:05:08 -07:00
Daniel Smith
5f7715f0e9 Make scheduler not miss deletion events even in the case of a resync. 2015-04-10 14:05:08 -07:00
Daniel Smith
880f922bb6 Add easy setup for simple controller
Also add tests; coverage up to 86.7%
2015-04-10 14:05:07 -07:00
Tim Hockin
b67bb85a2d Merge pull request #6435 from lavalamp/fix4
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:53:45 -07:00
Tim Hockin
4a7b0eecbb Merge pull request #5138 from justinsb/cloud_pd
AWS EBS volume support
2015-04-10 13:47:03 -07:00
Dawn Chen
c1e13b3431 Fix a small regression on api server proxy after switch to v1beta3. 2015-04-10 13:42:46 -07:00
Daniel Smith
1a2e4f8e1d Merge pull request #6616 from brendandburns/default
Default replica controller selector and labels using pod template.
2015-04-10 13:33:43 -07:00
Daniel Smith
f591873af7 Add DeepCopy! Also-- optimize conversion for []byte 2015-04-10 13:26:46 -07:00
Justin Santa Barbara
7626914344 Rename aws_pd.go -> aws_ebs.go, aws_pd_test.go -> aws_ebs_test.go 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
9462471bcd Fix some mistaken volumeId -> volumeID changes 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
503e19e58c Rename aws_pd -> aws_ebs 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
933cf60af7 Style: volumeId -> volumeID 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
98c9ebbc50 Style: Aws -> AWS 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
2afc1840b6 Style: awsId -> awsID 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
46f9c2cc3c Style: Ebs -> EBS 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
7e758fe441 Grammar fix: s/a AWS/an AWS/g 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
5a887e83e7 Remove now-unused instanceId parameter from newAwsCloud 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
4e176771b6 Make fetching the aws instance id optional, so we can use it on e2e 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
c7c969564a Add missing conversion for v1beta2 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
a20484b5ed Apply latest changes from copy-and-pasted gce_pd 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
9711e771c5 Rename AWSPersistentDisk -> AWSElasticBlockStore, aws-pd -> aws-ebs
Per comments from @markturansky - thanks!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
b3666ed08c Add AWSPersistentDisk to fuzzer 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
2e91fdd2fd Fixup merge mistakes 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
95b68ae0b0 Rename pdName -> volumeId for AWS persistent volumes 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
aa6051026e Add comment about EBS status being a bit slow through API 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
0101bf2081 Fix detached-check logic, warn on multiple attachments 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
3689bf0298 Fix pd name parse 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
21beabd0a7 Default attachment status to detached
So no-attachments = status detached
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
cdc569a6c8 Parse the pdName from the volume mount
Don't assume there are no slashes!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
f0cedd7375 More logging around error causes
Come back exceptions, all is forgiven!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
3549b30c8e Add missing import 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6c823dbdab Small clean-ups 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
f2184e0860 Fix comment 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
ee72fa4d61 Tolerate volume being already-attached 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
86ddc0f96a Fix mountpoint values 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
e56e2ee46a Strip leading slash from url path when parsing aws volume 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
743f2edb56 Fix tests 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
89089900d7 Fix merge problems 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
2812936d34 Simplify logic of pd.go 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6a4153fc0a Always create volumes in the active k8s zone 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
ffadd5533a Fix AWS region vs zone
We were specifying a region, but naming it as a zone in util.sh

The zone matters just as much as the region, e.g. for EBS volumes.

We also change the config to require a Zone, not a Region.
But we fallback to get the information from the metadata service.
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
8fde691aa7 Fix tests 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
edf0292d4a Add initial support for Volumes to AWS 2015-04-10 13:25:42 -07:00
Daniel Smith
2bd95d4290 Merge pull request #6150 from HaiyangDING/bru
Implement Balanced Resource Allocation (BRA) algorithm as a PriorityFunction in scheduler package.
2015-04-10 12:48:27 -07:00
Deyuan Deng
868e05ce96 Remove nodeinfo endpoint from kubelet 2015-04-10 15:47:32 -04:00
deads2k
c17ffb7c4c comments 1: comments 2015-04-10 15:39:20 -04:00
Daniel Smith
8dfd7001f5 Merge pull request #6671 from smarterclayton/ensure_body_is_closed
Reorganized Request.DoRaw() to guarantee streams are closed
2015-04-10 11:46:42 -07:00
Daniel Smith
c6abb5b047 Merge pull request #6686 from derekwaynecarr/terminate_must_have_deletion_timestamp
Improve validation and fix not throwing an error during ns delete
2015-04-10 10:56:09 -07:00
Tim Hockin
e4602eb68e Merge pull request #6663 from justinsb/cleanup_service_ip
Use defer to cleanup allocated service ip in case of error
2015-04-10 10:43:56 -07:00
Daniel Smith
e2093798cb Merge pull request #6675 from wojtek-t/nodes_support_field_selector
FieldSelector for node List()
2015-04-10 10:30:55 -07:00
Dawn Chen
c7ca118c7a Merge pull request #6682 from thockin/spew-keys-in-hash
Make DeepHashObject use SpewKeys
2015-04-10 09:58:47 -07:00
Justin Santa Barbara
e551e0cb8c Use defer to cleanup allocated service ip in case of error
We're probably going to be doing a port allocation here also, so this needs some pre-simplifying.
2015-04-10 09:47:47 -07:00
deads2k
72817a0801 add support for authorizing subresources 2015-04-10 12:42:52 -04:00
Tim Hockin
c989f30a00 make DeepHashObject use SpewKeys 2015-04-10 09:38:12 -07:00
Victor Marmol
1563a7636a Merge pull request #6652 from dchen1107/podstatus
Populate last terminated container information
2015-04-10 09:21:58 -07:00
Clayton Coleman
fce3e5a2bb Merge pull request #6574 from ncdc/exec-portforward-no-command-pipes
Don't use command pipes for exec/port forward
2015-04-10 12:07:21 -04:00
Clayton Coleman
7ac4a22f18 Merge pull request #6613 from brendandburns/swagger
Add return types to PUT, POST and PATCH methods.
2015-04-10 11:50:03 -04:00
derekwaynecarr
8364055f0f Improve validation and fix not throwing an error during ns delete 2015-04-10 11:41:28 -04:00
Jerzy Szczepkowski
1c042208c7 Added retrying update of balancers in case some of updates failed. 2015-04-10 16:06:56 +02: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
Timothy St. Clair
2b60111fca Performance change to option enable client.QPS, client.Burst
and change default on max_requests_inflight.
2015-04-10 07:53:54 -05:00
Wojciech Tyczynski
88eb0b0295 FieldSelector for node List() 2015-04-10 12:53:16 +02:00
kargakis
c0ab76f539 Tighten label parsing 2015-04-10 11:36:49 +02:00
Clayton Coleman
852ef7b637 Reorganized Request.DoRaw() to guarantee streams are closed
Added a test to verify 429 triggers a client retry based on
header. Forced resp.Body.Close() to close after each request,
which allows Golang to reuse the TCP connection to the server
(should reduce connection establishment under retries).
Possibly fixed a server leak of request bodies.
2015-04-10 01:10:35 -04:00
Brendan Burns
fded23a777 Default replica controller nodeSelector using pod template.
Add default labels from pod if not present.
2015-04-09 20:50:37 -07:00
Brendan Burns
8694f6f550 Add return types to PUT, POST and PATCH methods.
Also add return types for proxy and redirect handlers.
2015-04-09 20:17:05 -07:00
dingh
71b2af1e0c Implement BRA algorithm as a new priority function in scheduler
Balanced Resource Allocation policy can now be enabled to so that
host(s) with balanced resource usage would be preferred. The score
given by BRA also scales from 0 to 10 with 10 representing that the
resource usage is well balanced.
2015-04-10 10:53:52 +08:00
Abhishek Shah
964bc6b85d fix compilation 2015-04-09 17:19:13 -07:00
Victor Marmol
7ce5e7bc73 Merge pull request #6661 from vishh/sys_oom
Updating cadvisor deps and adding events cadvisor interface to kubelet
2015-04-09 16:28:20 -07:00
Dawn Chen
563f2965ba Populate last terminated container information 2015-04-09 16:10:13 -07:00
Vishnu Kannan
de79209970 Adding events API to cadvisor interface. 2015-04-09 16:02:34 -07:00
Daniel Smith
f16abee122 Merge pull request #6653 from yifan-gu/fix_pid_test
kubelet/fake_docker_client: Use self's PID instead of 42 in testing.
2015-04-09 16:01:10 -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
Tim Hockin
4661cedf4a Merge pull request #5709 from gmarek/client5
Add validation for Endpoint
2015-04-09 15:13:45 -07:00
Jeff Lowdermilk
96076eb129 Merge pull request #6585 from deads2k/deads-config-takes-factory
make kubectl config behave more expectedly
2015-04-09 14:54:55 -07:00
Yifan Gu
12b382ce76 kubelet/fake_docker_client: Use self's PID instead of 42 in testing.
This is safer to use self's PID than some arbitrary PID (say 42),
since the kubelet will set the oom_score_adj for real.
2015-04-09 14:31:44 -07:00
David Oppenheimer
3ee42b4643 Merge pull request #6561 from piosz/events_back
Added events back to Node Controller
2015-04-09 13:57:23 -07:00
Daniel Smith
27c0828e50 Merge pull request #6647 from ncdc/TestServeExecInContainerIdleTimeout-flake
Fix TestServeExecInContainerIdleTimeout flake
2015-04-09 13:55:13 -07:00
Andy Goldstein
00e24603cb Fix TestServeExecInContainerIdleTimeout flake
Remove creation of stream from TestServeExecInContainerIdleTimeout as
it's not necessary to very idle timeout.

Increase stream creation and ack timeouts to 30 seconds.

Fixes #5628
2015-04-09 16:44:56 -04:00
Daniel Smith
6667b18c7c Merge pull request #6646 from smarterclayton/printer_should_include_apiversion
The versioned printer should be initialized with the mapping apiversion
2015-04-09 13:26:47 -07:00
Daniel Smith
fe2e45567d Merge pull request #6640 from pmorie/entrypoint-serialization
Fix serialization for v1beta[12] container Command
2015-04-09 12:59:51 -07:00
Daniel Smith
71dd4ddc52 Merge pull request #6627 from bprashanth/watcher_cancel
Fix RunUntil and stop leaking watch channel on etcd error
2015-04-09 12:47:54 -07:00
Clayton Coleman
92a68ad7bf The versioned printer should be initialized with the mapping apiversion
VersionedPrinter handles fallback when multiple different APIVersions
are present if multiple arguments are passed (for instance, both Kube
resources at v1beta3 and a third party's API objects which are only
at v1). The cmd PrinterForMapping should always include the current
object's "mapping version" as a fallback in the event the preferred
API version does not map to the actual object.
2015-04-09 15:45:06 -04:00
deads2k
b2e3f2185e make kubectl config behave more expectedly 2015-04-09 15:43:57 -04:00
Paul Morie
cfb15e22d8 Fix serialization for v1beta[12] container Command 2015-04-09 15:17:00 -04:00
Prashanth Balasubramanian
5234c2dc82 Fix RunUntil and stop leaking watch channel on etcd error 2015-04-09 11:03:30 -07:00
Vish Kannan
2215a64567 Merge pull request #6571 from kargakis/describe-fix
describe: Support resource type/name syntax
2015-04-09 10:54:24 -07:00
Dawn Chen
554efa642c Merge pull request #6636 from ncdc/fix-flakey-portforward-test
Fix flakey port forward test
2015-04-09 10:49:06 -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
Victor Marmol
40acaef454 Merge pull request #6607 from yujuhong/mirror_update
Kubelet: recreate mirror pod if the static pod changes
2015-04-09 10:29:55 -07:00
Daniel Smith
c72dc15e8e Merge pull request #6614 from brendandburns/validate
Add Validate in addition to ValidateUpdate to validation for most resources.
2015-04-09 10:24:57 -07:00
Andy Goldstein
c07e98b7f5 Fix flakey port forward test
Only simulate data for the data stream, not for the error stream too.

Fixes #6529
2015-04-09 13:18:51 -04:00
Yifan Gu
b868f421e0 kubelet: Move pod infra container image setting to dockertools. 2015-04-09 09:53:07 -07:00
Jeff Lowdermilk
ca6f1a1bc7 Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
fix kubeconfig serialization
2015-04-09 09:41:26 -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
Piotr Szczesniak
c1dd881f48 Added events back to Node Controller
It reverts @davidopp temp fix #6443.
Fixes #6199.
2015-04-09 10:37:07 +02:00
Brendan Burns
5d4f1cf8da Add Validate in addition to ValidateUpdate to validation for most resources. 2015-04-08 20:15:49 -07:00
Vish Kannan
b12d75d0ee Merge pull request #6610 from markturansky/fifos_typos
Fixed typos in FIFO comments
2015-04-08 18:08:42 -07:00
Vish Kannan
3a3d860448 Merge pull request #6609 from yifan-gu/fix_getpodstatus
kubelet/DockerManager: Fix returning empty error from GetPodStatus().
2015-04-08 18:08:11 -07:00
Vish Kannan
844e375ceb Merge pull request #6603 from nikhiljindal/encoder
Removing some references to v1beta1 from test code
2015-04-08 18:06:32 -07:00
Yu-Ju Hong
d7cf294c99 Kubelet: recreate mirror pod if the static pod changes
If a static pod changes, delete the corresponding mirror pod. When kubelet
could not see mirror pod from the API server update, it'd attemp to create a
new mirror pod with up-to-date specs.
2015-04-08 18:06:21 -07:00
markturansky
e5f280b79e fixed typos 2015-04-08 21:00:48 -04:00
Yifan Gu
d4513c2890 kubelet/DockerManager: Fix returning empty error from GetPodStatus(). 2015-04-08 17:55:30 -07:00
nikhiljindal
08d9e244f7 Removing some references to v1beta1 from test code 2015-04-08 17:28:06 -07:00
Daniel Smith
43ec88fda5 Merge pull request #6179 from bprashanth/ts_ttl_scheduler
Modeler uses a ttl store for assumed pods
2015-04-08 15:25:05 -07:00
Clayton Coleman
4a31da0808 Merge pull request #6579 from deads2k/deads-fix-stream
make .Stream handle error status codes
2015-04-08 18:21:06 -04:00
Prashanth Balasubramanian
a7864aa230 Scheduler uses TTLStore for assumed pods 2015-04-08 15:01:04 -07:00
Vish Kannan
43949b41d4 Merge pull request #6586 from dchen1107/podstatus
small cleanup by removing useless generatePodStatus
2015-04-08 14:59:23 -07:00
Vish Kannan
094cbcc6fe Merge pull request #6074 from derekwaynecarr/reflector_last_sync_resource_version
Expose last sync resource version on reflector
2015-04-08 14:56:33 -07:00
Tobi Knaup
3efff6d4e8 kubelet syncloop should stop if/when updates chan closes 2015-04-08 14:45:16 -07:00
Dawn Chen
914616a195 Merge pull request #6592 from vishh/kubelet_logging
Improve kubelet logging around startup.
2015-04-08 14:35:53 -07:00
David Oppenheimer
4ffc2aad21 Merge pull request #6146 from kazegusuri/node_client_label
List in NodesInterface takes label selector
2015-04-08 14:22:53 -07:00
derekwaynecarr
9df41301f0 Expose last sync resource version 2015-04-08 17:09:06 -04:00
Vishnu Kannan
2b5cad6acf Improve kubelet logging around startup. This might help detect any lockup issues during startup. 2015-04-08 21:02:15 +00:00
Brian Grant
c4cbc9bc46 Merge pull request #6581 from nikhiljindal/v1beta3
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 14:01:57 -07:00
Dawn Chen
b6d846aea5 small cleanup by removing useless generatePodStatus 2015-04-08 13:38:06 -07:00
nikhiljindal
fe60be3179 Moving v1beta1 kubectl examples to v1beta3 2015-04-08 13:08:13 -07:00
gmarek
c20efb6bae Add validation for Endpoints 2015-04-08 20:12:07 +02:00
deads2k
dbda3f7303 make .Stream handle error status codes 2015-04-08 13:52:16 -04:00
Andy Goldstein
4c1cba5312 Don't use command pipes for exec/port forward
Switch to passing the streams for Stdin/Stdout/Stderr instead of using
StdinPipe() etc because the pipes are incompatible with Run()/Wait().
2015-04-08 13:42:42 -04:00
Yifan Gu
4b945e7218 kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
Add unit tests to test the restart behaviour under different
restart policy.
2015-04-08 09:44:23 -07:00
Yifan Gu
ddf323ee00 kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
Always call GetPodStatus().
2015-04-08 09:44:23 -07:00
Yifan Gu
6103b144e0 kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
Use the pod status to get the recent stopped containers in
shouldContainerBeRestarted().
2015-04-08 09:44:23 -07:00
Nikhil Jindal
f5c66ade0a Merge pull request #6568 from piosz/doc_fix
Removed TODO comment from ContainerStatuses in PodInfo
2015-04-08 08:55:15 -07:00
Masahiro Sano
d04cc5ced4 List in NodesInterface takes label selector 2015-04-08 23:41:27 +09:00
kargakis
a8987b661a describe: Support resource type/name syntax
This makes `kubectl describe` resource syntax consistent with `kubectl delete`
2015-04-08 16:03:22 +02:00
Piotr Szczesniak
007e6d9ff9 Removed TODO comment from ContainerStatuses in PodInfo
Fixes #6551
2015-04-08 14:39:41 +02:00
Wojciech Tyczynski
8a5c76356c Revert "Stop the bleeding for #6059"
This reverts commit 6be09c5e97.
2015-04-08 13:29:29 +02:00
gmarek
72182735b9 Remove Node Controllers ability to pull status from Kubelet 2015-04-08 09:44:42 +02:00
Daniel Smith
c1390a0836 version field selector field names in the client 2015-04-07 16:59:57 -07:00
Rohit Jnagal
71e7079aea Merge pull request #6543 from vishh/fix_fuzzer
Fix duplicate fuzz config.
2015-04-07 16:44:59 -07:00
Vishnu Kannan
f4f08c3378 Fix duplicate fuzz config. 2015-04-07 23:29:24 +00:00
Tim Hockin
f2c8decffe Clarify network-related flags in the master
Rename and rejigger flags to make it more obvious what is happening.  Change
the default listen from ChooseHostInterface() to 0.0.0.0.
2015-04-07 15:55:51 -07:00
Quinton Hoole
c670071e87 Revert "kubelet: Remove GetRecentDockerContainersWithNameAndUUID." 2015-04-07 14:25:10 -07:00
Clayton Coleman
bb137f0bba Merge pull request #6534 from deads2k/deads-kubeconfig-cmd-factory
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 17:02:20 -04:00
Derek Carr
6eb54e73e0 Merge pull request #5270 from lavalamp/fix7
Controller framework
2015-04-07 16:58:09 -04:00
David Oppenheimer
8599564c96 Merge pull request #6535 from davidopp/master
Change default Kubelet NodeStatusUpdateFrequency from 2s to 10s.
2015-04-07 13:37:03 -07:00
Nikhil Jindal
842b9d8d3a Merge pull request #6493 from smarterclayton/make_client_pluggable
Make the client.Fake more powerful by standardizing how the fake loads data
2015-04-07 12:48:27 -07:00
David Oppenheimer
d8aa57872a Change default Kubelet NodeStatusUpdateFrequency from 2s to 10s. 2015-04-07 12:36:09 -07:00
Victor Marmol
cb0850d7cf Merge pull request #6527 from yujuhong/remove_unused
Remove unused code in kubelet/server_test.go
2015-04-07 12:30:39 -07:00
Vish Kannan
5ced09a06f Merge pull request #6519 from markturansky/typo_fix
Fixed typo
2015-04-07 12:15:56 -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
Yu-Ju Hong
d6b4633432 Remove unused code in kubelet/server_test.go
The code creates a channel and a go routine waiting for update, which is never
used by any test. Remove the unused code.
2015-04-07 11:55:19 -07:00
deads2k
6344cf3c3a refactor to move kubectl.cmd.Factory to kubect/cmd/util 2015-04-07 14:43:50 -04:00
David Oppenheimer
402bf60366 Merge pull request #6214 from gmarek/move_consts_to_flags
Move NodeController constants to flags
2015-04-07 11:31:11 -07:00
Victor Marmol
ef3cdb2f18 Merge pull request #6491 from yifan-gu/depreciate_getkubeletdockercontainers
kubelet: Refactor RunInContainer/ExecInContainer/PortForward.
2015-04-07 11:00:16 -07:00
markturansky
8f24fbc40c fixed typo 2015-04-07 12:38:09 -04:00
Vish Kannan
c1ef9be261 Merge pull request #6174 from rootfs/wip-gluster
implement glusterfs volume plugin
2015-04-07 09:21:33 -07:00
Clayton Coleman
31b7f75c60 Merge pull request #6516 from ncdc/fix-exec-portforward-proxy-resource
Fix exec/portforward minions->nodes
2015-04-07 11:47:46 -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
Brian Grant
530fe89726 Merge pull request #6411 from gmarek/schedulable
Remove Schedulable Condition. Only Unschedulable bit from Spec will be used.
2015-04-07 08:38:30 -07:00
Brian Grant
6e93d37fb9 Merge pull request #6232 from smarterclayton/minor_fixes_to_watch_swagger
Improve the output of the swagger API for watch events
2015-04-07 08:33:59 -07:00
Clayton Coleman
7ebceafee9 Merge pull request #6515 from you-n-g/master
RunCreate don't need the cmd arg any more
2015-04-07 11:10:08 -04:00
gmarek
ef56dca6b6 Remove ConditionSchedulable 2015-04-07 17:01:07 +02:00
Clayton Coleman
7a6b2ec227 Improve the output of the swagger API for watch events
Stopgap to improve this prior to converting watch resources to
versioned objects.
2015-04-07 10:46:19 -04:00
Andy Goldstein
1c92133b77 Fix exec/portforward minions->nodes
Exec and port forward weren't working with v1beta3 because they were
proxying minions. Change minions to nodes. This appears to work with
v1beta1 and v1beta2 as well.
2015-04-07 09:48:46 -04:00
Young
ad3712d07c RunCreate don't need the cmd arg any more 2015-04-07 21:39:48 +08:00
Huamin Chen
a278ceeb0a implement glusterfs volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-04-07 09:14:39 -04:00
deads2k
06c9dbd32f add example for default view serialization 2015-04-07 08:07:24 -04:00
deads2k
5c4b6583e4 fix kubectl config view to respect serialization formats 2015-04-07 08:07:24 -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
efc7f86baf Add GetterWithOptions and allow stream flushing
In addition to Getter interface, API Installer now supports a
GetterWithOptions interface that takes an additional options object when
getting a resource. A flag is now returned from rest.ResourceStreamer
that indicates whether the streamed response should be
flushed when written back to the client. This is to support log
streaming.
2015-04-07 07:46:30 -04:00
Cesar Wong
6dba6aa178 Add PodLogOptions versioned resource
PodLogOptions will capture options passed in to retrieve a pod's log.
2015-04-07 07:46:30 -04:00
Cesar Wong
e64d7337b3 Move flushwriter from Kubelet server to a common util package
Exposes a Wrap function to wrap a given writer into a writer that
flushes with every write if the writer also implements the io.Flusher
interface.
2015-04-07 07:46:30 -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
gmarek
321a81047c Move NodeController constants to flags 2015-04-07 12:33:03 +02:00
gmarek
751d1d25ff Add timestamp cache to NodeController 2015-04-07 09:15:35 +02:00
Rohit Jnagal
0400339d01 Merge pull request #6494 from lavalamp/fix2
compute query parameter names in the client.
2015-04-06 18:44:45 -07:00
Yifan Gu
ba1ad9fad2 kubelet: Refactor RunInContainer/ExecInContainer/PortForward.
Replace GetKubeletDockerContainers() with findContainer().
2015-04-06 17:14:46 -07:00
Daniel Smith
44bc29631e compute query parameter names in the client. 2015-04-06 16:54:26 -07:00
Vish Kannan
be0feddfa5 Merge pull request #5506 from rootfs/dev
add iscsi volume plugin
2015-04-06 15:11:44 -07:00
Rohit Jnagal
f2f3da15e1 Merge pull request #6370 from justinsb/aws_config_optional
Make AWS configuration file optional (fall-back to metadata service)
2015-04-06 14:29:28 -07:00
Rohit Jnagal
55fe466aca Merge pull request #6468 from derekwaynecarr/improve_test
Improve test case to ensure finalize does desired behavior
2015-04-06 14:27:40 -07:00
Victor Marmol
7716804a0d Merge pull request #6470 from yifan-gu/get_recent
kubelet: Remove GetRecentDockerContainersWithNameAndUUID.
2015-04-06 14:25:59 -07:00
Victor Marmol
3facc53cee Merge pull request #4842 from jdef/kubelet_bootstrap
allow for more easily customized kubelet creation and initialization
2015-04-06 14:20:44 -07:00
Rohit Jnagal
0e10b2a842 Merge pull request #6434 from alml/silent-watcher-close
Ignore errors after StreamWatcher is closed
2015-04-06 13:52:11 -07:00
Rohit Jnagal
dbbfac3b54 Merge pull request #6479 from TamerTas/refactor
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 13:43:44 -07:00
Huamin Chen
7a82af31de add iscsi volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-04-06 16:20:28 -04:00
Brendan Burns
afa0100e27 Copy labels from the service to endpoints that we create. 2015-04-06 13:14:54 -07:00
Tamer Tas
6d84838c0f Refactor kubectl/cmd/config/getConfigFromFileOrDie 2015-04-06 22:50:07 +03:00
Yifan Gu
a8c02412b2 kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
Use the pod status to get the recent stopped containers in
shouldContainerBeRestarted().
2015-04-06 12:43:49 -07:00
Brian Grant
9d9948e3a8 Change "time/Time" to "util.Time", which is what we use in our API for time. 2015-04-06 18:56:56 +00:00
James DeFelice
d194af6b4f allow for more easily customized kubelet creation and initialization 2015-04-06 18:51:42 +00:00
markturansky
4e528a847a added PVClaim status subresource 2015-04-06 14:42:22 -04:00
derekwaynecarr
b1dca3232f Improve test case to ensure finalize does desired behavior 2015-04-06 13:13:06 -04:00
Daniel Smith
ebb982878f Merge pull request #6442 from yujuhong/node_watch
Fix the kubelet node watch
2015-04-06 09:59:57 -07:00
Rohit Jnagal
bfde7e0735 Merge pull request #6429 from lavalamp/fix
Oops, let's be careful about licensing.
2015-04-06 09:20:18 -07:00
Rohit Jnagal
fe735d33ac Merge pull request #6441 from smarterclayton/hide_already_exists_error
Do not log "event already exists" errors
2015-04-06 08:59:46 -07: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
a5ebacb043 changed claimed validation from length check to specific storage check 2015-04-06 08:46:44 -04:00
markturansky
c4a53a23bd Added validation to prevent mutating Claim.Spec after binding 2015-04-06 08:46:44 -04:00
markturansky
95bd170ca2 PV & PVC Client implementation 2015-04-06 08:46:43 -04:00
David Oppenheimer
c048e6fcbf Merge pull request #6443 from davidopp/master
Remove use of events from NodeController, to temporarily fix #6199
2015-04-04 12:13:48 -07:00
David Oppenheimer
c4a595aa7f Remove use of events from NodeController, to temporarily fix #6199 2015-04-04 11:56:43 -07:00
Yu-Ju Hong
0e1bd18b3e Fix the kubelet node watch 2015-04-04 09:59:39 -07:00
Clayton Coleman
aee73d6729 Do not log "event already exists" errors
When the server rejects an event because it has already been created, log it
at a very high level (debug) instead of the default level. Duplicate events
typically only occur due to programmer error or failure conditions, so they
can safely be ignored in production environments.
2015-04-04 11:35:56 -04:00
Alexandr Lurye
952ff24f0b Do not log net.errClosing error when StreamWatcher is stopping. 2015-04-04 05:18:32 +02:00
Yu-Ju Hong
dbd7b186a0 Merge pull request #6338 from smarterclayton/improve_config_error
Return a typed error for config validation, and make errors simple
2015-04-03 18:08:15 -07:00
Daniel Smith
78b8f9599f Fix another license problem. 2015-04-03 17:06:29 -07:00
Daniel Smith
2c93080373 Fix licensing for forked code. 2015-04-03 17:06:24 -07:00
Brian Grant
b0b6418ca3 Merge pull request #6377 from nikhiljindal/kubevtl
Updating components to use v1beta3
2015-04-03 15:58:09 -07:00
nikhiljindal
f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Brian Grant
0d95883593 Merge pull request #6027 from ghodss/kube-patch
Implement Strategic Merge Patch in apiserver
2015-04-03 15:08:51 -07:00
Brian Grant
8e91097f82 Merge pull request #6423 from lavalamp/fix
Fix incorrect reference to name in v1beta3 API.
2015-04-03 14:45:47 -07:00
Yu-Ju Hong
ab13d64255 Merge pull request #6420 from vishh/proxy_logs
Updating kube-proxy logging levels to assist debugging.
2015-04-03 14:34:36 -07:00
Brendan Burns
88dbdc4a69 Merge pull request #6203 from brendandburns/qps
Add a QPS limiter to the kubernetes client.
2015-04-03 14:24:29 -07:00
Daniel Smith
34b399ca02 Fix incorrect reference to name in v1beta3 API. 2015-04-03 14:10:47 -07:00
Eric Tune
e49424785e Merge pull request #6380 from roberthbailey/kubelet-ssl
Configure the kubelet to use HTTPS (take 2)
2015-04-03 13:43:00 -07:00
Justin Santa Barbara
b61fc222bb Make AWS configuration file optional (fall-back to metadata service) 2015-04-03 13:42:31 -07:00
Vishnu Kannan
eb1c453a9a Updating kube-proxy logging levels to assist debugging. 2015-04-03 20:19:52 +00:00
Daniel Smith
0c2d3ffe68 Single-key matching behavior in generic.Matcher 2015-04-03 13:11:21 -07:00
James DeFelice
4d3a9e2203 fixes #6416 2015-04-03 19:13:25 +00:00
Brendan Burns
3f98ac07c2 Add a QPS limiter to the kubernetes client. 2015-04-03 11:58:51 -07:00
Sam Ghods
2c977db1b3 Implement Strategic Merge Patch in apiserver 2015-04-03 11:51:02 -07:00
Quinton Hoole
fd966b7950 Merge pull request #6194 from quinton-hoole/2015-03-24-rollingupdate
Retry replication controller rolling updates on version mismatch.
2015-04-03 11:17:41 -07:00
Wojciech Tyczynski
9d432850a4 Merge pull request #6409 from fgrzadkowski/measure_client
Add latency metrics to REST client
2015-04-03 14:59:27 +02:00
Filip Grzadkowski
4c50767c80 Add metrics to REST client 2015-04-03 14:42:06 +02:00
Piotr Szczesniak
8bc9f5fef7 Added rate limiting to pod deletion
Fixes #6228
2015-04-03 06:58:59 +02:00
Prashanth Balasubramanian
5903f6ff39 Register field conversion function under the right type name 2015-04-02 18:37:28 -07:00
Quinton Hoole
40e2eae5b4 Retry replication controller rolling updates on version mismatch.
When kubectl does rolling updates of replication controllers, retry updates that
fail due to version mismatches (caused by concurrent updates by other clients).
These failed rolling updates were causing intermittent e2e test failures
(e.g. issue 5821)
2015-04-02 17:53:34 -07:00
Sam Ghods
ca18e86877 Make naming of kubectl subcommands consistent 2015-04-02 16:14:53 -07:00
Prashanth B
620af16892 Merge pull request #6097 from derekwaynecarr/limit_range_default_value
Limit range supporting a default resource limits value
2015-04-02 16:04:09 -07:00
Saad Ali
e0cbe3853b Merge pull request #6290 from simon3z/fix-event-update
event: fallback to creations when update fails
2015-04-02 16:03:21 -07:00
Prashanth B
3fe4224b6c Merge pull request #6314 from bparees/tokenbucket
add a blocking accept method to RateLimiter
2015-04-02 16:01:17 -07:00
Quinton Hoole
4a2000c4aa Merge pull request #6207 from brendandburns/server
Add a limit to the number of in-flight requests that a server processes.
2015-04-02 15:46:54 -07:00
Daniel Smith
cc5ef8c5ad make undelta store use go's implementatio inheritance mechanism 2015-04-02 15:31:19 -07:00
Vish Kannan
ee98731a2a Merge pull request #6269 from ddysher/extend-mount
Abstract IsMountPoint and improve FakeMounter
2015-04-02 15:29:38 -07:00
Daniel Smith
8ee9ee9920 add ListKeys method to Store 2015-04-02 15:26:39 -07:00
Daniel Smith
3fe17b93cf Begin a controller framework. 2015-04-02 15:25:58 -07:00
Dawn Chen
67c1678e7e Merge pull request #6378 from yujuhong/docker_manager
RFC: Kubelet: a step towards to better encapsulation of docker functions
2015-04-02 14:22:26 -07:00
Daniel Smith
6be09c5e97 Stop the bleeding for #6059 2015-04-02 13:54:10 -07:00
Jeff Lowdermilk
96bdee8c28 Merge pull request #6312 from brendandburns/services
Make expose use introspection to grab the port value if possible.
2015-04-02 13:32:50 -07:00
Yu-Ju Hong
d01bc660b5 Kubelet: a step towards to better encapsulation of docker functions
We want to stop leaking more docker details into kubelet, and we also want to
consolidate some of the existing docker interfaces/structs. This change creates
DockerManager as the new home of some functions in dockertools/docker.go. It
also absorbs containerRunner. In addition, GetDockerPodStatus is renamed to
GetPodStatus with the entire pod passed to it so that it is simialr to the what
is defined in the container Runtime interface.

Eventually, DockerManager should implement the container Runtime interface, and
integrate DockerCache with a flag to turn on/off caching. Code in kubelet.go
should not be using docker client directly.
2015-04-02 13:26:39 -07:00
Brian Grant
414be101b6 Merge pull request #6352 from piosz/api
Removed PodStatus.Host
2015-04-02 13:16:24 -07:00
Brendan Burns
674efe6de8 Make expose use introspection to grab the port value if possible.
Also improve service printing to include public IP addresses.
2015-04-02 13:08:47 -07:00
Ben Parees
70be667cf8 add a blocking accept method to RateLimiter 2015-04-02 14:33:18 -04:00
Robert Bailey
4488ff95a2 Create an insecure (http) read-only port on the kubelet so that
heapster can collect metrics. Update the heapster config to
point to the non-secured port.
2015-04-02 10:45:49 -07:00
Robert Bailey
f15e34a1bf Revert "Merge pull request #6309 from GoogleCloudPlatform/revert-6243-kubelet-ssl"
This reverts commit 96a0a0d618, reversing
changes made to 2af9b54147.
2015-04-02 10:44:37 -07:00
Victor Marmol
f8f14b1cc1 Merge pull request #6349 from wojtek-t/node_watch_fields
Kubelet watching only its own Node object
2015-04-02 10:20:39 -07:00
Daniel Smith
c25a1be03a Merge pull request #6345 from thockin/equalities_bug
Remove dead, buggy code
2015-04-02 10:09:44 -07:00
Wojciech Tyczynski
6b08958264 Kubelet watching only its own Node 2015-04-02 18:39:59 +02:00
Brendan Burns
67003f323a Merge pull request #6356 from deads2k/deads-parse-error
abac policy file parsing bug
2015-04-02 09:28:59 -07:00
Brendan Burns
fdf7ccbcfe Merge pull request #6361 from vmarmol/describe
Include ContainerStatus in "describe pod".
2015-04-02 09:23:21 -07:00
Victor Marmol
657bc33500 Include ContainerStatus in "describe pod".
Fixes #6076.
2015-04-02 08:51:41 -07:00
deads2k
00fc17e690 abac policy file parsing bug 2015-04-02 11:13:20 -04:00
Victor Marmol
1065302bf4 Merge pull request #6327 from mikedanese/readiness-probe-busted
Fix readiness probe
2015-04-02 07:54:47 -07:00
Piotr Szczesniak
5c6439d449 Removed PodStatus.Host
Fixes #6165
2015-04-02 16:38:45 +02:00
Mike Danese
32c7de290c fix readiness probe 2015-04-02 06:56:34 -07:00
Federico Simoncelli
8849cf21d3 event: fallback to creation when update fails
Updating may fail because the item was removed from apiserver. This
patch makes sure to retry using creation instead of update.

Fixes #6289

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:15:01 -04:00
Federico Simoncelli
f78301c5ab kubelet: log offline event message recording
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:07:32 -04:00