Commit Graph

5727 Commits (c99d18b6d59ff3889f0f278eec93417f17956210)

Author SHA1 Message Date
Victor Marmol 6b0d3d8df0 Add DockerErrors metric in the Kubelet.
Allows the tracking of errors by Docker operation.
2015-06-02 17:38:09 -07:00
Victor Marmol 1a805c711a Refactoring handling of latency recording. 2015-06-02 17:29:13 -07:00
Chao Xu 3358f37871 remove imports of v1 in latest_test.go 2015-06-02 17:27:57 -07:00
Filip Grzadkowski 7cdfb2ac7f Reduce number of list requests in watch-based cache 2015-06-03 00:55:49 +02:00
CJ Cullen 934c553c04 Clarify description/usage of --advertise-address, Master.PublicAddress 2015-06-02 15:23:32 -07:00
Yu-Ju Hong 64aa958efb Make PodList span multiple lines for readability 2015-06-02 15:03:38 -07:00
Yu-Ju Hong 55f7b9b9b1 Adapt most CommandRunner tests to use FakeRuntime 2015-06-02 15:03:38 -07:00
Yu-Ju Hong b3197bb49b Switch more tests from newTestKubelet to newTestKubeletWithFakeRuntime 2015-06-02 15:03:38 -07:00
Yu-Ju Hong d4034f9c43 Move more docker-specific tests to dockertools/manager_test.go 2015-06-02 15:03:33 -07:00
Chao Xu 89c8949e78 add v1 to hack/test-integration.sh 2015-06-02 14:55:45 -07:00
Chao Xu 48d3d604af fix 2015-06-02 14:55:45 -07:00
Chao Xu ff6947625d add v1 tests to hack/test-go; let default value of Container.SecurityContext to be nil 2015-06-02 14:55:45 -07:00
Filip Grzadkowski 98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
CJ Cullen 085a48a70e Add an advertise-address flag. This allows the address that the apiserver binds
to (possibly 0.0.0.0) to be different than the address on which members of the cluster
can reach the apiserver (possibly not a local interface).
2015-06-02 14:33:15 -07:00
Brian Grant 0cb0a56895 Merge pull request #8417 from jdef/proxy_port_allocator
proxy port range allocation
2015-06-02 14:17:41 -07:00
Brian Grant 8a9700b2ba Merge pull request #8864 from ncdc/pluggable-docker-exec
Add support for pluggable Docker exec handlers
2015-06-02 14:13:06 -07:00
Brian Grant 6508c04f24 Merge pull request #9112 from kargakis/expose-nits
expose: Better error formatting and generic flag message
2015-06-02 13:10:52 -07:00
Brian Grant 0a28edf6e7 Merge pull request #8698 from vmarmol/with-limits
Reserve node resources for node services
2015-06-02 13:05:29 -07:00
Brian Grant 3f07503cea Merge pull request #9103 from liggitt/omitempty_service_account
fix omitempty on PodSpec.ServiceAccount in v1beta3
2015-06-02 10:41:11 -07:00
Brian Grant b8a7527cb3 Merge pull request #9069 from markturansky/pv_panic_fix
Fixes panic/nil pointer in PV
2015-06-02 10:39:40 -07:00
Brian Grant 55529d9256 Merge pull request #7153 from xiang90/apiserver
minor cleanup for apiserver/errors.go
2015-06-02 10:37:36 -07:00
markturansky b1464437de fixed test 2015-06-02 09:19:28 -04:00
Jan Safranek d2b4ae4df4 Fix persistent volumes.
Check Spec.PersistentVolumeSource in NFS, RBD, Gluster and iSCSI volume
plugins.
2015-06-02 09:19:28 -04:00
James DeFelice 4abcf7449c implementation of proxy port allocation 2015-06-02 12:28:25 +00:00
kargakis 0fba4820f5 expose: Better error formatting and generic flag message
Re error formatting:
$ osc expose svc frontend --port=5432 --generator='service/v2' --name=test

Before:
error: generator %!!(MISSING)q(<nil>) not found.
see 'osc expose -h' for help.

Now:
error: generator "services/v2" not found.
see 'openshift cli expose -h' for help.
2015-06-02 13:06:21 +02:00
Jordan Liggitt a837771b27 Clean up token on service account update failure 2015-06-02 01:35:51 -04:00
Jordan Liggitt 870be9768a fix omitempty on service account in v1beta3 2015-06-02 01:31:06 -04:00
Angus Lees 785a775777 Actually delete LBaaS monitors after disassociating
Partially addresses issue #8352
2015-06-02 15:25:51 +10:00
Angus Lees 6491922562 Catch 404 and return exists=false from GetTCPLoadBalancer
Previouly getVipByName treated 404 like any other unexpected error
return and passed it up the chain.  This caused the "if ErrNotFound then
exists=false" logic in GetTCPLoadBalancer to never fire.

This change teaches getVipByName to return ErrNotFound on a 404 server
response.
2015-06-02 15:25:40 +10:00
Tim Hockin a826529573 Insert 'svc' into the DNS search paths
Fixes #8569.

This requires the DNS server to be running kube2sky v1.6 or higher (part of
release 0.18).  Users with older kube2sky MUST NOT update to this kubelet until
they upgrade DNS.  Versions of kube2sky >= 1.6 support both old and new style
names.  Old style names are deprectaed and will be removed around the time of
kubernetes v1.0 release.
2015-06-01 17:02:17 -07:00
Clayton Coleman e89d551817 Add a new contiguous allocator strategy option
Also fix an error in port allocator
2015-06-01 19:59:17 -04:00
Clayton Coleman 5f06138798 Namespace controller must wait for terminating resources 2015-06-01 19:24:02 -04:00
Clayton Coleman ce3a6a666d Show terminating pods in get/describe 2015-06-01 19:24:01 -04:00
Clayton Coleman 9d3631e3de Handle deleted pods in replication and endpoint controllers
Pods that are slated for deletion should be excluded from
replication and endpoints immediately.
2015-06-01 19:24:01 -04:00
Clayton Coleman 72ee028cab Gracefully delete pods from the Kubelet
This commit wires together the graceful delete option for pods
on the Kubelet.  When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default.  The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.

When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker.  When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00
Clayton Coleman da7c612bb6 Expire is a new type of watch action 2015-06-01 17:26:48 -04:00
Clayton Coleman 3368e12a6c Ensure TTL is not cleared in possible edge cases 2015-06-01 17:26:47 -04:00
Andy Goldstein 2a0d7ebb11 Add support for pluggable Docker exec handlers
Add support for pluggable Docker exec handlers. The default handler is
now Docker's native exec API call. The previous default, nsenter, can be
selected by passing --docker-exec-handler=nsenter when starting the
kubelet.
2015-06-01 16:59:59 -04:00
derekwaynecarr b69f1ff5bd Name is a required parameter for kubectl run, default-name is not 2015-06-01 14:05:05 -04:00
Eric Tune 8b498aee4a Merge pull request #8495 from gmarek/fix_ratelimit
Move evicting pods to separate thread to allow for correct ratelimitting.
2015-06-01 10:29:37 -07:00
Eric Tune 760caea187 Merge pull request #8863 from mfojtik/fix-default-registry-matcher
Add 'docker.io' and 'index.docker.io' to default registry matcher
2015-06-01 10:28:34 -07:00
Eric Tune 1f526a5f89 Merge pull request #9027 from jlowdermilk/kubectl-deprecate-minion
Stop supporting the minion alias for nodes in kubectl
2015-06-01 10:26:51 -07:00
Eric Tune 936c6842e0 Merge pull request #8733 from justinsb/nodeport_aws
Enable support for AWS LB
2015-06-01 09:25:15 -07:00
Eric Tune c1d0a48075 Merge pull request #8912 from justinsb/volumes_kubelet_root_not_symlink
Ensure kubelet root is not a symlink
2015-06-01 09:24:32 -07:00
gmarek 1490543d54 Move evicting pods to separate thread to allow for correct ratelimitting. 2015-06-01 11:39:20 +02:00
Michal Fojtik 9a94f7cc38 Add 'docker.io' and 'index.docker.io' to default registry matcher
Signed-off-by: Michal Fojtik <mfojtik@redhat.com>
2015-05-30 12:59:18 +02:00
Victor Marmol 7283e662b5 Introduce SystemContainer to Kubelet ContainerManager.
This generalizes the handling of containers in the
ContainerManager.

Also introduces the ability to determine how much
resources are reserved for those system containers.
2015-05-29 17:32:34 -07:00
Kris f4e2c738f6 Delete deprecated API versions
pkg/service:

There were a couple of references here just as a reminder to change the
behavior of findPort. As of v1beta3, TargetPort was always defaulted, so
we could remove findDefaultPort and related tests.

pkg/apiserver:

The tests were using versioned API codecs for some of their encoding
tests. Necessary API types had to be written and registered with the
fake versioned codecs.

pkg/kubectl:

Some tests were converted to current versions where it made sense.
2015-05-29 17:17:35 -07:00
Justin Santa Barbara c4a2631593 Mount logic breaks if /var/lib/kubelet is a symlink
Pass the correct kubelet root-dir on AWS
2015-05-29 20:13:09 -04:00
Justin Santa Barbara 9839253233 Add logging to volume tear-down to help understand mount behaviour 2015-05-29 20:11:13 -04:00
Rohit Jnagal 25e63e737a Merge pull request #9014 from caesarxuchao/image-omitempty
make the Container.Image field optional in v1
2015-05-29 16:32:30 -07:00
Rohit Jnagal 99c9c54c05 Merge pull request #8983 from jlowdermilk/update-patch
Disable --patch for kubectl update
2015-05-29 16:30:16 -07:00
Rohit Jnagal 0cbd4beb63 Merge pull request #8886 from csrwng/fix_proxy_url_slash
Fix proxying of URLs that end in "/" in the pod proxy subresource
2015-05-29 16:28:41 -07:00
Justin Santa Barbara 1e99426d5b Support for AWS ELB 2015-05-29 18:53:35 -04:00
Rohit Jnagal fd4a0c5966 Merge pull request #8823 from jlowdermilk/release-0.18
Release 0.18.0
2015-05-29 15:49:46 -07:00
Justin Santa Barbara c741b8f3ae Pass ports as []*api.ServicePort into LoadBalancer provider
Because AWS needs the NodePort; this also paves the way for e.g. UDP balancing
2015-05-29 18:47:05 -04:00
Jeff Lowdermilk 0c44be833d Stop supporting the minion alias for nodes in kubectl 2015-05-29 15:40:47 -07:00
Rohit Jnagal 9184ccf24d Merge pull request #8960 from erictune/nodectrlevent
Add event about Node when cannot assign CIDR.
2015-05-29 14:54:16 -07:00
Rohit Jnagal fdefd120c1 Merge pull request #8980 from caesarxuchao/Remove_TemplateRef
remove ReplicationControllerSpec.TemplateRef
2015-05-29 14:53:25 -07:00
Rohit Jnagal 233ce46b83 Merge pull request #8923 from caesarxuchao/TerminationToTerminated
Update ContainerState.Termination to ContainerState.Terminated
2015-05-29 14:51:09 -07:00
Rohit Jnagal d34d00c288 Merge pull request #8898 from brendandburns/tunnel
Move SSH code into a common util package.  Add support for SSH tunnels.
2015-05-29 14:48:37 -07:00
Rohit Jnagal ae8bc2c47b Merge pull request #8887 from brendandburns/balancer
Add event generation when create/delete of balancers fails.
2015-05-29 13:32:11 -07:00
Rohit Jnagal 3e98919a63 Merge pull request #8857 from andronat/fix_TestGetEtcdVersion_NotListening
fix TestGetEtcdVersion_NotListening
2015-05-29 13:25:02 -07:00
Rohit Jnagal 7813fb6e58 Merge pull request #8438 from tcnghia/master
Support glob wildcards for gcr.io credentials
2015-05-29 13:22:58 -07:00
Chao Xu 74f66b3c96 make the Container.Image field optional 2015-05-29 13:12:35 -07:00
Rohit Jnagal 11268baa92 Merge pull request #8804 from kargakis/expose-default-name-param
expose: Use separate parameters for default and custom name
2015-05-29 11:21:09 -07:00
Rohit Jnagal 51750a4680 Merge pull request #8724 from smarterclayton/preserve_ttl
TTL is not preserved automatically during edit
2015-05-29 11:12:00 -07:00
Rohit Jnagal 38c1fe112f Merge pull request #9006 from GoogleCloudPlatform/revert-8927-revert-8822-fifo_rc
Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown t…
2015-05-29 11:11:38 -07:00
Nghia Tran 8b57b6fea6 Support glob wildcards for gcr.io credentials 2015-05-29 10:44:59 -07:00
Jeff Lowdermilk 754d3ce99e Kubernetes version v0.18.0 2015-05-29 09:41:41 -07:00
Jeff Lowdermilk 24712e8170 Kubernetes version v0.18.0-dev 2015-05-29 09:41:41 -07:00
Rohit Jnagal 50b9d6284a Merge pull request #8681 from vmarmol/system-container
Create a system container
2015-05-29 09:41:06 -07:00
Jeff Lowdermilk 90a5b8c845 Disable --patch for kubectl update 2015-05-29 09:31:49 -07:00
Prashanth B 6c209ec193 Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones"" 2015-05-29 09:24:39 -07:00
Anastasis Andronidis bb9fb19cc2 TestGetEtcdVersion_NotListening is looking for a closed port first 2015-05-29 11:32:05 +02:00
Anastasis Andronidis 9cb0eaf01a Fixed get's help message 2015-05-29 11:31:16 +02:00
Filip Grzadkowski ce7a3ea34d Merge pull request #8916 from fgrzadkowski/limit_tracing
Improve tracing information in apiserver
2015-05-29 01:29:34 -07:00
Chao Xu 0798ea9ff7 remove ReplicationControllerSpec.TemplateRef from v1beta3/types.go and v1/types.go for now 2015-05-28 17:41:47 -07:00
Chao Xu 2f6e5e2e08 Update ContainerState.Termination to ContainerState.Terminated in pkg/api/types.go and pkg/api/v1/types.go 2015-05-28 17:18:24 -07:00
Clayton Coleman 2b8e918ed9 TTL is not preserved automatically during edit
Change the signature of GuaranteedUpdate so that TTL can
be more easily preserved. Allow a simpler (no ttl) and
more complex (response and node directly available, set ttl)
path for GuaranteedUpdate.  Add some tests to ensure this
doesn't blow up again.
2015-05-28 19:58:17 -04:00
Tim Hockin 9e486be743 Merge pull request #8795 from a-robinson/latency
Remove the clientID field from the apiserver request latency metric
2015-05-28 16:55:11 -07:00
Tim Hockin bade36c7dd Merge pull request #8826 from markturansky/b2d_fix
Fixed setNodeStatus to allow running on pods on OS X
2015-05-28 16:54:42 -07:00
Tim Hockin da78ab6b63 Merge pull request #8740 from thockin/nix-portal
Rename "portalIP" to "clusterIP"
2015-05-28 16:52:02 -07:00
Kris Rousey 22b2c68c02 Update go-restful to get stable sorting in spec
This reverts commit 4a7071e7f7.
2015-05-28 16:43:13 -07:00
Tim Hockin 9a49e8155f Update generated code 2015-05-28 16:28:18 -07:00
Tim Hockin ac3cc3c518 Rename PORTAL_NET all over 2015-05-28 16:10:44 -07:00
Tim Hockin 4318ca5a8b Rename 'portal IP' to 'cluster IP' most everywhere
This covers obvious transforms, but not --portal_net, $PORTAL_NET and
similar.
2015-05-28 16:10:44 -07:00
Tim Hockin 4a7071e7f7 Revert "Update go-restful to get stable sorting in spec" 2015-05-28 16:04:11 -07:00
Tim Hockin d355154181 Merge pull request #8556 from kargakis/label-parsing-fix
label: Invalidate empty or invalid value labels
2015-05-28 15:54:14 -07:00
Tim Hockin 32bb3ae8f1 Merge pull request #7775 from simon3z/cloud-provider-id
api: add the ProviderID attribute to NodeSpec
2015-05-28 15:54:00 -07:00
Tim Hockin 081ab3abac Merge pull request #8853 from caesarxuchao/HostToNodeName
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -07:00
Tim Hockin 2cadd4c86e Merge pull request #8906 from justinsb/aws_volume_fixes
Fix AWS volumes
2015-05-28 15:30:33 -07:00
Tim Hockin 72c2e3b8a1 Merge pull request #8944 from krousey/go-restful_update
Update go-restful to get stable sorting in spec
2015-05-28 15:29:43 -07:00
Tim Hockin 0dab399b6a Merge pull request #8948 from jlowdermilk/proxy-help
update/fix kubectl proxy example in help string
2015-05-28 15:29:11 -07:00
Tim Hockin 1087c12e63 Merge pull request #8909 from wojtek-t/fix_example_selflinks
Fix selfLinks in test examples to v1beta3
2015-05-28 15:01:02 -07:00
Tim Hockin 6fbaefdced Merge pull request #8897 from pweil-/reduce-merge-logging
reduce merge logging
2015-05-28 15:00:45 -07:00
Tim Hockin 3830c068b9 Merge pull request #8883 from yujuhong/kubelet_unittest2
Kubelet: clean up more unit tests
2015-05-28 15:00:02 -07:00
Tim Hockin 32859c3954 Merge pull request #8778 from kargakis/show-pod-number
Show pods number when describing services
2015-05-28 14:59:02 -07:00
Tim Hockin 6d5ccf75dd Merge pull request #8939 from bcbroussard/describe-nodeport
Update NodePort in kubectl describe service
2015-05-28 14:52:47 -07:00
Eric Tune a271b306b0 Add event about Node when cannot assign CIDR. 2015-05-28 14:51:48 -07:00
Tim Hockin 8da79e1dd5 Merge pull request #8612 from bcbroussard/v1beta3-rc
Update replication controller pages to v1beta3 in web ui
2015-05-28 14:51:31 -07:00
Tim Hockin f53b4a1104 Merge pull request #8611 from bcbroussard/v1beta3-services
Update service pages to v1beta3 in web ui
2015-05-28 14:50:57 -07:00
Chao Xu 9c1153322e update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go 2015-05-28 14:10:06 -07:00
Jeff Lowdermilk 75314718eb update/fix kubectl proxy example in help string 2015-05-28 13:59:39 -07:00
Brendan Burns 9ccd349a7d Add event generation when create/delete of balancers fails. 2015-05-28 13:51:39 -07:00
Kris Rousey 05eaaa99e1 Update go-restful to get stable sorting in spec 2015-05-28 13:40:23 -07:00
BC Broussard 581f4613c8 Fix NodePort in kubectl describe service 2015-05-28 12:09:31 -07:00
Tim Hockin b69fad211e Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones" 2015-05-28 10:23:55 -07:00
BC Broussard f8762ccd12 Update replication controllers for v1beta3 api 2015-05-28 10:18:03 -07:00
BC Broussard 1fd4050450 Update services for v1beta3 api 2015-05-28 10:03:01 -07:00
Federico Simoncelli 1a41082ca8 cloudprovider: vagrant InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 13:02:11 -04:00
Federico Simoncelli 154eccefe2 cloudprovider: openstack InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 13:02:11 -04:00
Federico Simoncelli afcda70190 cloudprovider: gce InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 13:02:11 -04:00
Federico Simoncelli 185d0e19d5 cloudprovider: aws InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 13:02:11 -04:00
Federico Simoncelli 466a7daaa8 cloudprovider: ovirt InstanceID implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 13:02:11 -04:00
Federico Simoncelli 2a89428d44 api: add the ProviderID attribute to NodeSpec
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 13:01:58 -04:00
Federico Simoncelli faba12951a cloudprovider: add support for InstanceID method
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 12:47:50 -04:00
Federico Simoncelli 194343267d cloudprovider: add the ProviderName method
This patch adds the ProviderName method used to identify the cloud
provider.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-28 12:47:47 -04:00
Quinton Hoole 9b67435cf3 Merge pull request #8899 from roberthbailey/ip-from-metadata
For GCE, compute the external IP by using the local metadata server
2015-05-28 08:29:38 -07:00
markturansky 8aa3cb22b5 added pod capacity to node.Status when cadvisor unavailable. defaults to kubelet's pod list length 2015-05-28 10:53:08 -04:00
Wojciech Tyczynski 22f7f05135 Fix selfLinks in examples 2015-05-28 16:47:53 +02:00
Filip Grzadkowski eb14b68a9c Improve tracing information by deleting traces from etcd cache and adding information to traces from generic registry. 2015-05-28 16:34:35 +02:00
Justin Santa Barbara 97a312f72c Fix AWS volume detach 2015-05-28 06:48:19 -04:00
kargakis 93669a6bb5 Show pods number when describing services 2015-05-28 11:24:47 +02:00
kargakis 6c85040cef expose: Use separate parameters for default and custom name 2015-05-28 11:03:16 +02:00
Wojciech Tyczynski 6ffe46a9e0 Merge pull request #8822 from bprashanth/fifo_rc
Wake up rcs when pods get DeletionFinalStateUnknown tombstones
2015-05-28 10:50:28 +02:00
kargakis fb63ab63bb label: Invalidate empty or invalid value labels 2015-05-28 10:47:36 +02:00
Wojciech Tyczynski 33318f0162 Use generated DeepCopy methods. 2015-05-28 09:03:27 +02:00
Cesar Wong 684dcd4307 Fix proxying of URLs that end in "/" in the pod proxy subresource
Also handles proxying of URLs that have an empty path and don't end in a slash "/" by redirecting to the same location with a slash appended.
2015-05-27 22:12:55 -04:00
Robert Bailey 1dfaa93ccd For GCE, compute the external IP by using the local metadata
server. This is in many ways a revert of #7530 but after auditing
the code I found that this function is now only used to determine
an address of the node where it is currently running.
2015-05-27 17:41:41 -07:00
Brendan Burns a51747f941 Move SSH code into a common util package. Add support for SSH tunnels. 2015-05-27 16:58:52 -07:00
Prashanth Balasubramanian 8fa66bd962 Delta fifo includes objects in DeleteFinalStateUnknow, rcs stop faster 2015-05-27 16:45:51 -07:00
Tim Hockin eab1ceccd4 Merge pull request #8628 from jlowdermilk/delete-not-found
Delete fails on notfound errors.
2015-05-27 16:26:41 -07:00
Tim Hockin 78621f93aa Merge pull request #8600 from bcbroussard/v1beta3-pods
Update pod pages to v1beta3 in web ui
2015-05-27 16:26:00 -07:00
Tim Hockin c40dd59130 Merge pull request #8885 from lavalamp/no-ro-kubelettest
remove RO port from kubelet test
2015-05-27 16:25:33 -07:00
Tim Hockin ffabf17ed4 Merge pull request #8604 from brendandburns/kubectl
Make exec more consistent with the rest of the kubectl commands.
2015-05-27 16:23:59 -07:00
BC Broussard 040a4cfa8c Update pods for v1beta3 api 2015-05-27 16:23:57 -07:00
Paul Weil ae981b73a3 reduce merge logging 2015-05-27 19:12:04 -04:00
Jeff Lowdermilk 3cf4d9b2e6 Delete fails on notfound errors.
If deleting multiple resources, command will continue on error and
report not found resources at the end.
2015-05-27 16:02:54 -07:00
BC Broussard b4ab5eddf0 Update events for v1beta3 api 2015-05-27 15:58:15 -07:00
Tim Hockin 0bea034edb Merge pull request #8614 from bcbroussard/v1beta3-nodes
Update node pages to v1beta3 in web ui
2015-05-27 15:55:44 -07:00
Brendan Burns 2ec4b409e1 Make exec more consistent with the rest of the kubectl commands. 2015-05-27 15:47:32 -07:00
Tim Hockin d88444cace Merge pull request #8846 from thockin/session-affinity
Fix session affinity in kube-proxy
2015-05-27 15:40:11 -07:00
BC Broussard 69160f3464 Update nodes for v1beta3 api 2015-05-27 15:39:48 -07:00
Tim Hockin fc8aa104ae Merge pull request #8670 from jbdalido/nilparameters
Quick fix for listPods with nil parameters
2015-05-27 15:39:23 -07:00
Tim Hockin 0721377646 Merge pull request #8596 from andronat/fix_8319
Kubectl command renaming (run-container to run and resize to scale)
2015-05-27 15:37:54 -07:00
Tim Hockin 06ed1f8480 Merge pull request #8788 from markturansky/volume_types_recon
Fixed json tags for volumes
2015-05-27 15:36:28 -07:00
Tim Hockin 19c6347920 Merge pull request #8616 from bcbroussard/v1beta3-groups
Update groups page to v1beta3 in web ui
2015-05-27 15:34:52 -07:00
Daniel Smith ddcd2c89de remove RO port from kubelet test 2015-05-27 13:46:32 -07:00
Yu-Ju Hong d9339fedbe Modify more tests to use FakeRuntime in kubelet_test.go 2015-05-27 13:01:45 -07:00
Tim Hockin 7b9dbbf29f Merge pull request #8224 from cjcullen/nodenames
Remove /Validate endpoint
2015-05-27 12:43:33 -07:00
Yu-Ju Hong 697312bcd7 Migrate more docker-specific tests to dockertools/manager_test.go 2015-05-27 12:42:59 -07:00
Tim Hockin f69eb0af67 Merge pull request #8831 from a-robinson/tp
Adjust the sleep time before tearing down e2e clusters and add a rough formula
2015-05-27 12:42:49 -07:00
Tim Hockin b74786c1b6 Merge pull request #8865 from derekwaynecarr/fix_kube_push
Fix Vagrant node registration and kube-push
2015-05-27 12:42:13 -07:00
markturansky 60b9652500 added generated deep copy funcs 2015-05-27 13:58:29 -04:00
BC Broussard 5f53f34931 Update groups for v1beta3 api 2015-05-27 10:27:31 -07:00
markturansky d338a7eaea rebased and added 'omitempty' to new volumes 2015-05-27 13:21:48 -04:00
markturansky e15fd2b0e7 normalized omitempty across volumes for all versions 2015-05-27 13:13:19 -04:00
markturansky f7ede60045 normalized json tags across volumes 2015-05-27 13:12:40 -04:00
Anastasis Andronidis 9e3a540940 rename resize to scale 2015-05-27 19:08:06 +02:00
Anastasis Andronidis d4a47bdb9e rename run-container to run in kubectl 2015-05-27 19:07:17 +02:00
markturansky ce840a3dd8 generated deepy copy funcs 2015-05-27 13:05:24 -04:00
Yu-Ju Hong 044894665d Delete TestSyncPodsDeletes in kubelet_test.go
This test verifies that kubelet doesn't kill non-kubelet-managed containers.
This is obsolete now since container runtime provides only the KillPod
function, and has no support for killing a container.
2015-05-27 10:02:52 -07:00
Yu-Ju Hong ef5bef914f Kubelet: switch cadvisor-related unit tests to use FakeRuntime 2015-05-27 09:58:50 -07:00
Tim Hockin b8a808b1ae Merge pull request #8592 from RichieEscarez/5057_restartpolicy_default
5057 restartpolicy default
2015-05-27 09:40:34 -07:00
Tim Hockin b9bfce432c Merge pull request #8026 from andronat/fix_7478
Warns the user for deprecated flags that use _ separators
2015-05-27 09:30:18 -07:00
Tim Hockin 0bbba1c3d1 Merge pull request #8732 from markturansky/missing_pv_support
Fixed CanSupport func across all volumes (for PV)
2015-05-27 08:45:47 -07:00
Tim Hockin a15c69798b Merge pull request #8582 from deads2k/add-pull-secrets-to-service-account
add pull secrets to service accounts
2015-05-27 08:40:46 -07:00
Tim Hockin d10e1ab474 Merge pull request #8548 from bcbroussard/web-ui-menu
Added Hover to Views Menu in Web UI
2015-05-27 08:39:09 -07:00
Tim Hockin 57df04ed72 Merge pull request #8149 from pmorie/container-env-resolution
Expand variables in containers' env, cmd, args
2015-05-27 08:37:02 -07:00
Tim Hockin d0249aac75 Merge pull request #8133 from markturansky/iscsi_pv2
added ISCSI volume plugin to PersistentVolumeSource
2015-05-27 08:36:37 -07:00
derekwaynecarr 2f1dd9228f Fix Vagrant node registration and kube-push 2015-05-27 10:50:57 -04:00
Piotr Szczesniak cd2c7e16d7 Merge pull request #8320 from wojtek-t/generated_deep_copy
Code to automatically generate functions for DeepCopy
2015-05-27 13:14:07 +02:00
Anastasis Andronidis 5eae2378d6 Warn for every _ flag user or cmd defined
also renames all global _ flags to -
2015-05-27 11:23:52 +02:00
Paul Morie 8b338860aa Make kubelet expand var refs in cmd, args, env 2015-05-27 00:13:57 -04:00
Victor Marmol 9a2630ac6e Make system container name configurable. 2015-05-26 20:49:55 -07:00
Victor Marmol ddec34a000 Have the ContainerManager create a system container.
The system container is a resource-only container which contains all
non-kernel processes that are not already part of a container. This will
allow monitoring of their resource usage and limiting it (eventually).
2015-05-26 20:49:55 -07:00
Saad Ali ee82d469c6 Merge pull request #8679 from jlowdermilk/rolling-update-stdin
Make rolling-update actually parse filenames from stdin
2015-05-26 18:55:12 -07:00
Saad Ali 8e25670c07 Merge pull request #8688 from markturansky/nfs_missing_pv
Fixed NFS CanSupport func for PVs
2015-05-26 18:48:31 -07:00
Saad Ali 9ca4fb40dc Merge pull request #8844 from yujuhong/kubelet_unittest
Kubelet: clean up unit tests
2015-05-26 18:29:48 -07:00
Tim Hockin bd2314fa78 Fix session affinity in kube-proxy 2015-05-26 17:19:29 -07:00
Yu-Ju Hong 9a71fb9373 Kubelet: clean up kubelet_test.go
* Start using FakeRuntime to replace FakeDockerClient in unit tests.
 * Move and adapt docker-specific tests (e.g. creating/deleting infra
   containers) to manager_test.go in dockertools.
2015-05-26 17:11:24 -07:00
Yu-Ju Hong 8ea88d58d4 Kubelet: make FakeRuntime implement Runtime
We should start using FakeRuntime in kubelet_test.go. First, make it implement
Runtime correctly.
2015-05-26 16:49:46 -07:00
Saad Ali c8d2026fa4 Merge pull request #8737 from pmorie/volume-doc
Add doc.go files for all volume plugins
2015-05-26 14:53:35 -07:00
Alex Robinson 9d61a95464 Adjust the sleep time before tearing down e2e clusters and add a rough formula
for determining how long the sleep should be.
2015-05-26 21:09:05 +00:00
BC Broussard edc6c02960 Add hover state to views dropdown in web ui 2015-05-26 13:47:24 -07:00
Wojciech Tyczynski e7dbac53cb Generate DeepCopy methods 2015-05-26 21:17:11 +02:00
Wojciech Tyczynski b2280db724 Deep-copy functions autogeneration. 2015-05-26 21:16:26 +02:00
Saad Ali caf5b5f059 Merge pull request #8819 from cjcullen/notready
Report node.Ready == false until cbr0 is configured correctly
2015-05-26 11:44:39 -07:00
Saad Ali c8b7fe33c6 Merge pull request #8787 from BenTheElder/fix_proxysocket_year
Correct copyright in proxysocket.go
2015-05-26 11:05:26 -07:00
CJ Cullen 36d54b2094 Remove /Validate endpoint 2015-05-26 10:49:18 -07:00
CJ Cullen 197115853e Report node.Ready == false until cbr0 is configured correctly 2015-05-26 10:48:29 -07:00
Saad Ali 7493ed0fca Merge pull request #8786 from pmorie/secret-tests
Add tests for secret volume plugin reboot/idempotency
2015-05-26 09:57:31 -07:00
Saad Ali b7e0cc4105 Merge pull request #8634 from csrwng/rename_pod_log
Rename 'kubectl log' to 'kubectl logs'
2015-05-26 09:55:42 -07:00
Saad Ali c5525ecfdc Merge pull request #8704 from roberthbailey/dead-flags
Deprecate flags for nodecontroller
2015-05-26 09:54:01 -07:00
Filip Grzadkowski 967b1b95ba Add very simple tracing mechanism for easier debugging of slow requests. 2015-05-26 16:17:18 +02:00
Cesar Wong cb872e9243 Rename 'kubectl log' to 'kubectl logs' 2015-05-26 08:28:16 -04:00
Filip Grzadkowski 39483ffa90 Merge pull request #8779 from wojtek-t/failing_rc_delete
Increase timeout for deleting RC in e2e tests.
2015-05-26 01:43:34 -07:00
Alex Robinson 0339f68273 Remove the clientID field from the apiserver request latency metric. 2015-05-25 20:31:25 -07:00
Paul Morie feb0880b1e Add tests for secret volume plugin reboot/idempotency 2015-05-25 13:34:07 -04:00
BenTheElder d223b795f3 Correct copyright in proxysocket.go
I created this file earlier this year. It should say 2015 not 2014.
2015-05-25 12:00:50 -04:00
Wojciech Tyczynski ff8c772fe0 Increase timeout for deleting RC in e2e tests. 2015-05-25 11:51:11 +02:00
Marek Grabowski f5a3f7d17f Merge pull request #8721 from smarterclayton/incorrect_description
Description of ImagePullPolicy wrong in v1(beta3)
2015-05-25 10:50:44 +02:00
Paul Morie 38c96725c0 Add doc.go files for all volume plugins 2015-05-23 16:59:12 -04:00
Justin Santa Barbara 4b9b7ec2f9 Continue to support (deprecated) publicIPs
Not doing so breaks e2e tests and people that may be using them,
even though we will eventually want to stop supporting this now
that we have better alternatives for typical use cases (NodePort)
2015-05-23 16:37:27 -04:00
markturansky 3ad583cf2d Fixed spotty CanSupport for PV and added more unit tests for same 2015-05-23 09:59:05 -04:00
Dawn Chen 8d6d03b4a4 Merge pull request #8707 from justinsb/nodeport
WIP: ServiceType & NodePort work
2015-05-22 16:46:59 -07:00
Clayton Coleman 3db9f0528a Description of ImagePullPolicy wrong in v1(beta3) 2015-05-22 19:35:26 -04:00
Justin Santa Barbara ada6882373 Add conversions for CreateExternalLoadBalancer for v1beta1 and v1beta2 2015-05-22 19:26:54 -04:00
Justin Santa Barbara 19c0d82edc Include the actual failing value in a validation error message 2015-05-22 19:14:28 -04:00
Justin Santa Barbara bb697cee7e Clear LoadBalancerStatus both on LB delete and on update in the API
Although it takes some time to destroy a load balancer, we hide this complexity
from the user.
2015-05-22 19:14:28 -04:00
Justin Santa Barbara 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