Commit Graph

6617 Commits

Author SHA1 Message Date
Yifan Gu
b30e77c1b3 apiservier: avoid stacktracing for StatusUnauthorized and StatusForbidden. 2015-07-01 14:41:52 -07:00
nikhiljindal
274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Tim St. Clair
78609986b9 Remove dashboard ui from apiserver & point /ui at kube-ui 2015-07-01 14:21:51 -07:00
Tim St. Clair
b6b2d6df42 Add kube-ui cluster addon for serving k8s dashboard UI.
Changes include:
- Add kube-ui binary for serving static dashboard UI
- Add kube-ui docker image, replication controller, and service
- Make the kube-ui a cluster-addon (enabled by default)
- Split the compiled pkg/ui/datafile.go into separate dashboard and swagger packages
- Update docs to reflect changes
2015-07-01 14:21:47 -07:00
Yu-Ju Hong
d6ff297a1f Kubelet: stop logging "Error on reading termination-log..." messages
If a pod was deleted and the associated volumes/directory were removed, there
could be a window where the pod worker is still active. If the pod worker tries
to inspect the logs, such an error would be logged. Since the pod has been
deleted, such error messages are meaningless.

This change stops logging this error, but stores the error string in the pod
status. The pod status will be updated for pods that are still alive, and will
be discarded eventually for deleted pods.
2015-07-01 14:20:42 -07:00
Zach Loafman
9363285b4a Merge pull request #10320 from yujuhong/kubelet_logging
Kubelet: add and modify some logging messsages
2015-07-01 14:16:23 -07:00
Eric Paris
7a29af4d2c Add Subject Alt Names to self signed apiserver certs
A cert from GCE shows:
- IP Address:23.236.49.122
- IP Address:10.0.0.1
- DNS:kubernetes,
- DNS:kubernetes.default
- DNS:kubernetes.default.svc
- DNS:kubernetes.default.svc.cluster.local
- DNS:e2e-test-zml-master

A similarly configured self signed cert shows:
- IP Address:23.236.49.122
- IP Address:10.0.0.1
- DNS:kubernetes
- DNS:kubernetes.default
- DNS:kubernetes.default.svc

So we are missing the fqdn kubernetes.default.svc.cluster.local. The
apiserver does not even know the fqdn! it's defined entirely by the
kubelet! We also do not have the cluster name certificate. This may be
--cluster-name= argument to the apiserver but will take a bit more
research.
2015-07-01 17:05:17 -04:00
Clayton Coleman
4e7526fc18 The bearer token client transport should not override Authorization
If an authorization header is already set via the client or request,
the bearer transport for the client should not override the
Authorization header.

Allows one client to be used for multiple users when acting as a
proxy or gateway.
2015-07-01 16:14:25 -04:00
Clayton Coleman
8d189245fb Make util.empty public for conversions
Some downstream components want to use a StringSet in their internal
objects, but leaving util.empty private means that generated conversions
cannot create constructors generically for those objects.  This makes
Empty public until such a time as the generator supports private types.
2015-07-01 16:12:15 -04:00
Zach Loafman
9db58ff2b2 Merge pull request #10632 from nikhiljindal/revert-etcderrors
Revert "Merge pull request #10246 from nikhiljindal"
2015-07-01 13:06:18 -07:00
Kris Rousey
ffa764d60b Unify command line namespace resolution
This change allows the namespace in kubeconfig to be overridden by
specifying the namespace in the spec file. If namespace is explicitly
provided in the command line flags and the spec file has a different
namespace, this will cause an error.
2015-07-01 12:59:17 -07:00
Zach Loafman
62aca7e762 Merge pull request #9791 from hurf/ns_describe
Display namespace while describing resources.
2015-07-01 12:01:50 -07:00
Zach Loafman
9e23ad7102 Merge pull request #10510 from mikedanese/kubectl-context-err
make use-context return error when context does not exist
2015-07-01 12:01:24 -07:00
Zach Loafman
00193bf1ac Merge pull request #10529 from jlowdermilk/upgrade-aware-proxy-ssh
Make UpgradeAwareProxyHandler use transport.Dial if provided
2015-07-01 12:01:01 -07:00
Zach Loafman
0edd827c1c Merge pull request #10566 from markturansky/pvspec_desc
Removed extraneous json descriptions from internal types
2015-07-01 12:00:31 -07:00
Clayton Coleman
d8bb4552de Cloud provider should return an error
Not fatal - makes cloud provider useful in methods that
can return error.
2015-07-01 14:41:49 -04:00
Jordan Liggitt
b4802b7cee Fix service account describer 2015-07-01 14:15:30 -04:00
Zach Loafman
7689391c68 Merge pull request #10504 from bcbroussard/explore-updates
Update Web UI Explore page
2015-07-01 11:09:49 -07:00
nikhiljindal
d82d5d11a7 Revert "Merge pull request #10246 from nikhiljindal"
This reverts commit a902a2f014, reversing
changes made to 7df8d76a93.
2015-07-01 11:07:18 -07:00
Jeff Lowdermilk
f0a36b0afd Make UpgradeAwareProxyHandler use transport.Dial if provided
This change is required for the handler to work with sshtunnels.
Without it, `kubectl exec` and `kubectl port-forward` are broken
when an ssh proxy is used (see #9292). I manually verified this
fixes that issue, e2e test coming shortly.
2015-07-01 10:56:05 -07:00
Daniel Smith
5911a12b14 Fix node not rejoining cluster on reboot
Also improve logging. Fixes #10368.

GCE's external ID apparently can change after a reboot.
2015-07-01 10:21:24 -07:00
Anastasis Andronidis
7480077f2b Rename REASON column to STATUS for kubectl get
Fixes #10560
2015-07-01 17:38:27 +02:00
Zach Loafman
b42cac69cb Merge pull request #10519 from JanetKuo/kubectl-c
Enable -c for kubectl logs container arg
2015-07-01 08:36:38 -07:00
Zach Loafman
03be2f3f0b Merge pull request #10545 from liggitt/rate_limit
Switch to token bucket rate limiter with better performance
2015-07-01 08:36:19 -07:00
Zach Loafman
502103cdc6 Merge pull request #10453 from satnam6502/fix-es
Change port names to avoid validation failure
2015-07-01 08:30:28 -07:00
Zach Loafman
add08cb9c3 Merge pull request #10491 from JanetKuo/kubectl
Implement 'kubectl get ... -o wide'
2015-07-01 06:41:44 -07:00
Zach Loafman
513bf2ceba Merge pull request #10583 from cjcullen/lockfix
Don't hold lock while opening new sshTunnels.
2015-07-01 06:41:04 -07:00
Wojciech Tyczynski
5965e82a3a Merge pull request #10500 from lavalamp/etcdChanFix
Fix logging.
2015-07-01 11:47:22 +02:00
feihujiang
70036069ee Using NAME to replace ID in help string 2015-07-01 15:35:08 +08:00
nikhiljindal
2e9e46dd08 Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
Zach Loafman
1715505d6b Merge pull request #10538 from marekbiskup/typo-hypen
correct typo
2015-06-30 23:11:11 -07:00
Mike Danese
aea3403734 make use-context return error when context does not exist 2015-06-30 19:08:55 -07:00
CJ Cullen
0e2be0d320 Fix record tests 2015-06-30 17:08:27 -07:00
CJ Cullen
2a803769fc Fix gofmt in replication_controller_test.go 2015-06-30 17:01:15 -07:00
CJ Cullen
12553c9b91 Fix errors test 2015-06-30 16:43:33 -07:00
Zach Loafman
9a5891dc89 Merge pull request #10391 from wojtek-t/longer_metrics
Increase the length of sliding window for latency metrics
2015-06-30 16:04:53 -07:00
Zach Loafman
2884446c50 Merge pull request #10443 from bprashanth/sort_rc
Handle overlapping controllers semi-deterministically
2015-06-30 15:56:54 -07:00
Zach Loafman
df753b74ed Merge pull request #10509 from nikhiljindal/getToPost
Support both GET and POST methods in api server for /exec and /portforward
2015-06-30 15:56:31 -07:00
Zach Loafman
a902a2f014 Merge pull request #10246 from nikhiljindal/minionPrefix
Return api/errors instead of raw etcd errors
2015-06-30 15:47:58 -07:00
Zach Loafman
7df8d76a93 Merge pull request #10169 from saad-ali/fixPDIssue2
Work around for PDs stop mounting after a few hours issue
2015-06-30 15:47:21 -07:00
Zach Loafman
a80cbe6069 Merge pull request #10567 from alex-mohr/merge-release-0.20-to-master
Merge release 0.20.2 to master
2015-06-30 15:10:21 -07:00
Alex Mohr
63913da73e Update version to 0.20.2+ 2015-06-30 14:24:14 -07:00
Janet Kuo
682734bcc7 Implement 'kubectl get ... -o wide' 2015-06-30 14:06:47 -07:00
Zach Loafman
5529f11eb9 Merge pull request #10533 from thockin/better-errors
Don't repeat field name in errors
2015-06-30 14:01:39 -07:00
Zach Loafman
686f5a3084 Merge pull request #10556 from smarterclayton/remove_hardcoded_version
Do not hardcode version
2015-06-30 13:53:35 -07:00
saadali
c952ee23a7 Work around for PDs stop mounting after a few hours issue 2015-06-30 13:31:03 -07:00
Janet Kuo
62b488359f Enable -c for kubectl logs container arg 2015-06-30 13:25:54 -07:00
markturansky
c39be4bc74 Removed extraneous json desc 2015-06-30 15:28:12 -04:00
Tim Hockin
15766bfbbc Don't repeat field name in errors 2015-06-30 11:58:21 -07:00
Satnam Singh
4e58e001da Change port names to avoid validation failure 2015-06-30 10:56:20 -07:00
Daniel Smith
eabc344eed Fix logging; extend queue length to 100 2015-06-30 10:27:24 -07:00
Jordan Liggitt
f265d5c5ee Switch token bucket rate limiter to github.com/juju/ratelimit 2015-06-30 10:34:41 -04:00
Clayton Coleman
873fa1067e Do not hardcode version
The version is inferred automatically by client.New in
SetKubernetesDefaults(), and also negotiated.
2015-06-30 10:30:58 -04:00
Marek Biskup
88c70d2ae0 correct typo 2015-06-30 11:23:48 +02:00
feihujiang
55db7ec369 Output error when using kubectl describe for a nonexisting resource 2015-06-30 14:12:58 +08:00
Alex Robinson
835eded294 Merge pull request #10526 from mikedanese/nil-deref-test
bug: fix possible nil pointer derefrence in test
2015-06-29 21:01:37 -07:00
Mike Danese
5a48eee611 bug: fix possible nil pointer derefrence in test 2015-06-29 20:34:26 -07:00
BC Broussard
d1893bc366 Update Web UI Explore
Hide blank label dropdowns
Escape characters in group descriptions and label selectors
Update label selectors
2015-06-29 16:51:48 -07:00
Chao Xu
7f89a29aad add "kubectl patch". It will replace "kubectl udpate --patch" in the future 2015-06-29 16:36:45 -07:00
nikhiljindal
4b7f7ce535 Dont return raw etcd errors 2015-06-29 16:18:46 -07:00
CJ Cullen
ea2d617944 Don't hold lock while opening new sshTunnels. 2015-06-29 16:16:25 -07:00
Alex Robinson
764d34d363 Merge pull request #10468 from caesarxuchao/add-cmd-replace
Add command "kubectl replace"
2015-06-29 16:06:33 -07:00
nikhiljindal
e0d48d4983 Support both GET and POST methods for /exec and /portforward 2015-06-29 16:01:01 -07:00
Prashanth Balasubramanian
90ebc1ad29 Sort overlapping rcs 2015-06-29 15:30:19 -07:00
Alex Robinson
68bbf6c129 Merge pull request #10447 from feihujiang/helpfulErrorForUnsupportedVersion
Provide more helpful error when using unsupported api version
2015-06-29 15:00:58 -07:00
Alex Robinson
5d13e78572 Merge pull request #9781 from andronat/5840_yaml_2
Fixes ignored objects in one YAML file
2015-06-29 14:29:59 -07:00
Anastasis Andronidis
530369cc01 TestCreateCleanWithPrefix was failing if env variables existed 2015-06-29 23:14:36 +02:00
Alex Robinson
b758be0daf Merge pull request #9047 from kazegusuri/allocator_test
add unit test for allocator
2015-06-29 14:11:48 -07:00
Anastasis Andronidis
697e07f864 Correctly parse multiple resources from files
Refactored how files, directories and stdin are handled. Every file must pass
through the FileVisitor and then streamed through StreamVisitor. FileVisitor
takes care of opening/closing files and StreamVisitor is parsing multiple
resources.
2015-06-29 23:11:46 +02:00
Alex Robinson
b3aad24d40 Merge pull request #10414 from swagiaal/iscsi-print-error
iscsi plugin: print error messages not just exit status.
2015-06-29 14:06:09 -07:00
Alex Robinson
10a0dc9aae Merge pull request #9928 from jlowdermilk/version-negotiate-tests
Unittest for #9762
2015-06-29 13:34:13 -07:00
Alex Robinson
83f0bd668c Merge pull request #10427 from lavalamp/etcdChanFix
Don't block etcd client
2015-06-29 13:28:48 -07:00
Chao Xu
9b3d42c090 Add command "kubectl replace". "kubectl update" is still supported as an alias.
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
Yu-Ju Hong
de75a42cb2 Add a kubelet /runningpods endpoint
/runningpods returns a list of pods currently running on the kubelet. The list
is composed by examining the container runtime, and may be different from the
desired pods to run known by kubelet.

This is useful for tests to verify that pods are indeed deleted on nodes.
2015-06-29 11:29:23 -07:00
Alex Robinson
21f750fdc3 Merge pull request #10287 from wojtek-t/changes_to_registry
Remove some dead code
2015-06-29 11:02:41 -07:00
Alex Robinson
143bfeb40e Merge pull request #10471 from bprashanth/master_list
Kubelet doesn't fight apiserver for cputime on the master.
2015-06-29 10:22:00 -07:00
markturansky
fe6399a689 Changed plugin name from exported to private 2015-06-29 13:07:22 -04:00
markturansky
7e1eb15434 Changed plugin name from exported to private 2015-06-29 13:04:09 -04:00
Alex Robinson
fa1d0e59e8 Merge pull request #10422 from bcbroussard/gauge-colors
Update Web UI Bar Gauge Graphs
2015-06-29 09:25:47 -07:00
Sami Wagiaalla
a317b5ffc8 iscsi plugin: print error messages not just exit status.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-29 11:28:56 -04:00
feihujiang
878a72228f Provide more helpful error when using unsupported api version 2015-06-29 15:32:54 +08:00
Tim Hockin
025f728e50 Fix 'a' vs 'an' 2015-06-28 20:51:36 -07:00
jiangyaoguo
79ed954ec2 replace Reflector with client.cache.Reflector in kube-proxy 2015-06-29 11:21:50 +08:00
Prashanth Balasubramanian
029e0ad350 Kubelet doesn't fight apiserver for cputime on the master. 2015-06-28 19:53:35 -07:00
hurf
b13d29fbe8 Display namespace while describing resources.
Display namespace while describing pod, rc, secret, service,
serviceAccount, limitRange, resourceQuota and pvc.

For containers and events are always displayed with other
resources, it's not necessary to show namespace for them.
2015-06-29 09:17:12 +08:00
Tim Hockin
08f66f04d6 Fix error message 2015-06-28 14:49:38 -07:00
Robert Bailey
6b97ac0880 Merge pull request #10131 from thockin/svc-docs
Hopefully make NodePort docs clearer
2015-06-26 21:50:46 -07:00
Robert Bailey
ed03973ae0 Merge pull request #10269 from nikhiljindal/eventsErrors
Returning api/errors from event/rest.go
2015-06-26 17:12:09 -07:00
Robert Bailey
8ee63307e4 Merge pull request #9958 from smarterclayton/use_copier
Use runtime.Copier instead of hardcoding api.Scheme
2015-06-26 17:11:48 -07:00
Daniel Smith
45ac0cf25e Don't block etcd client 2015-06-26 14:27:13 -07:00
BC Broussard
2f43fc72db Update Web UI Bar Gauge Graphs
- Changed file system abbreviation from 'FS' to Filesystem
- Made chart height dynamic and incorporated legend height change into the master code/datafile.go binary
- Updated the max colors for the graph
- Realigned graph numbers
2015-06-26 13:52:08 -07:00
nikhiljindal
7b56d89e80 Returning api/errors from event 2015-06-26 13:51:55 -07:00
Robert Bailey
f9db614f95 Merge pull request #10234 from mikedanese/rolling-update-weird
Detect if replicas have been defaulted in rolling-update and use old replica count
2015-06-26 12:54:35 -07:00
Clayton Coleman
6970dda54e Use runtime.Copier instead of hardcoding api.Scheme
Allow other schemes to be supported by etcd_helper.go

runtime.Scheme.Copy() should be using the built in DeepCopy()
2015-06-26 14:50:33 -04:00
Clayton Coleman
93b14b9ede Search the parent FS for the proper binaries 2015-06-26 14:48:22 -04:00
Robert Bailey
8ebd896351 Merge pull request #10274 from brendandburns/release-0.20
Release 0.20
2015-06-26 11:34:10 -07:00
Clayton Coleman
fa7000a5bc Use nsenter on PATH in container, and separate args
nsenter needs '--' to separate calls
2015-06-26 14:28:08 -04:00
Robert Bailey
508f7f1697 Merge pull request #10358 from caesarxuchao/add-force-update
Add --force to `kubectl update`
2015-06-26 10:49:04 -07:00
Robert Bailey
54a3ebef3c Merge pull request #10315 from nikhiljindal/invalidValue
Updating the "invalid value" error message to include the list of valid values
2015-06-26 10:46:59 -07:00
Robert Bailey
0048eae8eb Merge pull request #9965 from stevekuznetsov/skuznets/allow-https
Allowing for HTTPS Probes
2015-06-26 10:43:37 -07:00
Wojciech Tyczynski
4c4d59a236 Increase the length of sliding window for latency metrics 2015-06-26 13:08:21 +02:00
Brendan Burns
8972a4865b Kubernetes version v0.20.0-dev 2015-06-25 20:10:17 -07:00
Brendan Burns
c17a15a0cb Kubernetes version v0.20.0 2015-06-25 20:08:58 -07:00
Maxwell Forbes
712f303350 Merge pull request #9736 from sdminonne/bug_fix2
To add validation for service ports when defined as string
2015-06-25 19:37:04 -07:00
Chao Xu
ef5de91fd7 add "--force" flag to "kubectl update";
update relevant tests
2015-06-25 17:16:20 -07:00
Maxwell Forbes
03121c2536 Merge pull request #10252 from akramer/patch-1
Fixing spacing in documentation comments
2015-06-25 15:09:41 -07:00
Steve Kuznetsov
3008ff6150 Changed HTTPGetAction to allow user-defined schemes 2015-06-25 16:59:12 -04:00
Maxwell Forbes
5e748c1d47 Merge pull request #10070 from lavalamp/e2eProxyFix
proxy e2e test improvements
2015-06-25 13:15:03 -07:00
nikhiljindal
3b3ee0ed77 Improving an error message 2015-06-25 13:08:09 -07:00
Sami Wagiaalla
4a6a492281 Use instance availability zone for AWS EBS
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-25 16:00:30 -04:00
Mike Danese
0c8f71aa0b make rolling update check if the replication controller has been defaulted 2015-06-25 12:29:21 -07:00
Mike Danese
f79736d767 make replicas a pointer in v1beta3 api 2015-06-25 11:53:18 -07:00
Mike Danese
2906f85227 allow conversions.Scheme to expose intermidiate versioned api object 2015-06-25 11:53:17 -07:00
Maxwell Forbes
a526e6ddb4 Merge pull request #10332 from dchen1107/cleanup
Include PodStatus.Message and PodStatus.Reason when kubectl describe …
2015-06-25 10:57:31 -07:00
Maxwell Forbes
d90895adfd Merge pull request #10221 from feihujiang/addSourceForErrorFromServerMessage
Add source in “error from server” message when using kubectl
2015-06-25 10:56:46 -07:00
Tim Hockin
ff91fef26b Hopefully make NodePort docs clearer 2015-06-25 10:46:15 -07:00
Maxwell Forbes
1904d4e1ce Merge pull request #10330 from brendandburns/addon
Use the namespace of the pod when creating the mirror.
2015-06-25 10:04:25 -07:00
Maxwell Forbes
655179dcfb Merge pull request #10264 from mikedanese/ca-token
add ca cert to token controller and all service accounts
2015-06-25 09:56:35 -07:00
Maxwell Forbes
fc349fdd47 Merge pull request #10060 from nikhiljindal/scopeParamPath
Updating the path param name to "namespace" instead of "namespaces"
2015-06-25 09:56:15 -07:00
Maxwell Forbes
2bb4cf3f8f Merge pull request #10266 from ArtfulCoder/kubelet_resolv
update docker's resolv.conf file with options ndots:5
2015-06-25 09:54:36 -07:00
Abhishek Shah
23caf446ae update docker's resolv.conf file with options ndots:5 2015-06-24 23:33:58 -07:00
feihujiang
b41b53122a Add source in “error from server” message when using kubectl 2015-06-25 14:20:09 +08:00
Dawn Chen
0a369fead6 Include PodStatus.Message and PodStatus.Reason when kubectl describe pods 2015-06-24 23:07:20 -07:00
Brendan Burns
c669fe300c Use the namespace of the pod when creating the mirror. 2015-06-24 21:49:40 -07:00
Maxwell Forbes
3afda5d566 Merge pull request #10312 from dchen1107/cleanup
Take 2: Fix the race between configuring cbr0 and restarting static pods
2015-06-24 17:59:50 -07:00
Maxwell Forbes
28946766a3 Merge pull request #9807 from krousey/container_manifest
Removing ContainerManifest
2015-06-24 17:55:29 -07:00
Dawn Chen
710fb4e413 add iptables rule for MASQUERADE for egress 2015-06-24 17:19:57 -07:00
Maxwell Forbes
e44f61993b Merge pull request #9304 from jsdir/master
Show resource limits with describe
2015-06-24 16:44:53 -07:00
Yu-Ju Hong
f7fd7e9687 Kubelet: add and modify some logging messsages
This helps debug #6651
2015-06-24 16:29:19 -07:00
Justin Santa Barbara
4461daa218 AWS: Enabling resize tests 2015-06-24 19:01:42 -04:00
Mike Danese
5760fe1957 use ca.crt as client certificate authority for inClusterConfig 2015-06-24 15:10:20 -07:00
Mike Danese
56bde3342a add ca to token controller and all service accounts 2015-06-24 15:10:20 -07:00
Maxwell Forbes
befe545033 Merge pull request #10253 from yifan-gu/log
kubelet/status_manager: Small logging fix.
2015-06-24 15:01:40 -07:00
Daniel Smith
689a3ee7a2 Make UI work through kubectl proxy (again)
Fixes #10115.
2015-06-24 13:54:14 -07:00
Daniel Smith
ddbe4c914f Fix proxy rewriting 2015-06-24 13:54:14 -07:00
akramer
5f44175dc4 Fixing spacing in documentation comments
There was some ugly spacing in the 'kubectl exec' documentation comments, I've fixed it and wrapped it to 80 chars.
2015-06-24 13:50:30 -07:00
nikhiljindal
6c6398edaa Update the path param name to namespace instead of namespaces 2015-06-24 13:45:49 -07:00
Maxwell Forbes
060cb43785 Merge pull request #10134 from brendandburns/gongysh2004-nodeport
Fix the warning when you create an externalized service
2015-06-24 13:21:27 -07:00
Maxwell Forbes
461fc2b01b Merge pull request #10277 from brendandburns/health
Switch to using the official etcd health check.
2015-06-24 11:45:51 -07:00
Kris Rousey
d13421e084 Removing ContainerManifest 2015-06-24 11:31:34 -07:00
Dawn Chen
6ddfa512de Revert "Revert "Fix the race between configuring cbr0 and restarting static pods""
This reverts commit fd0a95dd12.
2015-06-24 11:10:10 -07:00
Maxwell Forbes
11f9fd1dcd Merge pull request #10074 from nikhiljindal/retryUpdate
Allow update without resource version
2015-06-24 10:55:41 -07:00
Brendan Burns
f4e97be78e Switch to using the official etcd health check. 2015-06-24 10:18:39 -07:00
Wojciech Tyczynski
f6153445f1 Remove dead code 2015-06-24 15:14:33 +02:00
Piotr Szczesniak
fd0a95dd12 Revert "Fix the race between configuring cbr0 and restarting static pods" 2015-06-24 09:56:49 +02:00
Daniel Smith
bee68e48cd Have client store status code in Result 2015-06-23 18:48:01 -07:00
Jeff Lowdermilk
f4e7b5480d Merge pull request #10249 from mikedanese/unlink-test-libs
unlink testlibs from kube-apiserver and kubelet, remove test flags
2015-06-23 17:16:31 -07:00
Jeff Lowdermilk
838ddba1d9 Merge pull request #10188 from fabianofranz/fix_kubectl_set_credentials_example
Fixes wrong "kubectl config set-credentials" examples
2015-06-23 17:11:40 -07:00
Jeff Lowdermilk
50d50a3cb8 Merge pull request #10211 from dchen1107/cleanup
Fix the race between configuring cbr0 and restarting static pods
2015-06-23 17:09:01 -07:00
Dawn Chen
9dbe6fe4e4 Added more comments. 2015-06-23 16:28:41 -07:00
Jeff Lowdermilk
50e67d4034 Merge pull request #10216 from wojtek-t/reset_metrics
Expose /resetMetrics handle in apiserver
2015-06-23 16:07:41 -07:00
Jeff Lowdermilk
6dc6992023 Merge pull request #10192 from nikhiljindal/etcdError
Updating the error message to say node instead of minion
2015-06-23 15:48:53 -07:00
Jeff Lowdermilk
d212ea17cd Merge pull request #10182 from bprashanth/kubelet_status
Fix kubelet deadlock
2015-06-23 15:40:49 -07:00
Jeff Lowdermilk
141eba39e9 Merge pull request #9975 from derekwaynecarr/admission_name
Admission control attributes has access to resource name
2015-06-23 14:30:45 -07:00
Jeff Lowdermilk
9b1b72ea49 Merge pull request #10147 from bprashanth/sync_rc
Prevent restarts of kube-controller from overshooting and correcting replicas
2015-06-23 14:17:56 -07:00
Yifan Gu
384f022681 kubelet/status_manager: small logging fix. 2015-06-23 13:49:34 -07:00
Dawn Chen
23200d303f Fix several issues on running syncPods until network is configured.
Also fixed unittests and compiling.
2015-06-23 12:11:19 -07:00
Mike Danese
06c35a177c unlink testlibs from kube-apiserver and kubelet 2015-06-23 12:04:05 -07:00
derekwaynecarr
f6fb72ec51 Admission control attributes has access to resource name 2015-06-23 13:54:55 -04:00
Jeff Lowdermilk
5e25827919 Merge pull request #10204 from caesarxuchao/pr/9754/head
Continue on #9754, Improvements to the guestbook README, switch to .yaml files
2015-06-23 09:44:06 -07:00
Wojciech Tyczynski
23d405ad86 Expose /resetMetrics handle in apiserver 2015-06-23 11:12:45 +02:00
nikhiljindal
221ae4d63b Allow update without resource version 2015-06-23 00:16:08 -07:00
Brendan Burns
192ffdfb25 Fix the container bridge so that it can create cbr0
Fix the kubelet so that it tries to sync status, even if Docker is down
2015-06-22 23:18:01 -07:00
Chao Xu
59b654c996 fix tests for 22f1b07858 2015-06-22 17:10:09 -07:00
Jeff Lowdermilk
19991d5315 Merge pull request #10193 from zmerlynn/merge-release-0.19-to-master
Merge release 0.19.3 to master
2015-06-22 13:58:56 -07:00
Prashanth Balasubramanian
af175cc00b Add a pod status equality method to the status manager. 2015-06-22 13:49:49 -07:00
fabianofranz
fae27669aa Fixes kubectl config set-credentials examples 2015-06-22 17:34:04 -03:00
Zach Loafman
4274fccbc5 Merge remote-tracking branch 'upstream/release-0.19' into merge-release-0.19-to-master 2015-06-22 13:32:37 -07:00
Jeff Lowdermilk
7002ce2336 Merge pull request #10148 from mikedanese/log-service-account
log a message when we fall back to service account
2015-06-22 13:20:43 -07:00
Jeff Lowdermilk
cbf0a4f2db Merge pull request #10152 from markturansky/pv_recycler_precision_fix
Fixed PV recycler ActiveDeadlineSeconds precision
2015-06-22 13:17:03 -07:00
Jeff Lowdermilk
0c7fbacfb1 Merge pull request #10052 from derekwaynecarr/admission_subresources
Admission control exposes subresource
2015-06-22 13:11:58 -07:00
Jeff Lowdermilk
1874599c00 Merge pull request #8947 from bcbroussard/services-nodeport
Update the services web ui for nodeport and loadbalancer
2015-06-22 13:11:34 -07:00
nikhiljindal
4e02aef87d Updating the error message to say node instead of minion 2015-06-22 12:52:14 -07:00
Jeff Lowdermilk
b7583b799f Merge pull request #10151 from brendandburns/explore
Remove some dead code.
2015-06-22 12:02:05 -07:00
Jeff Lowdermilk
d0fc0d884d Merge pull request #9876 from andronat/9631_labelcolumn
Printing resource labels as columns
2015-06-22 11:55:26 -07:00
Zach Loafman
5534a8ca81 Revert "Release 0.19.3" 2015-06-22 10:56:38 -07:00
Robert Bailey
8a73b13859 Merge pull request #10184 from zmerlynn/release-0.19
Release 0.19.3
2015-06-22 10:56:18 -07:00
Jeff Lowdermilk
85770295c2 Merge pull request #10004 from ArtfulCoder/kubelet_health
Augmented kubelet healthz with syncLoop check.
2015-06-22 10:53:05 -07:00
Zach Loafman
82ae56a918 Kubernetes version v0.19.3-dev 2015-06-22 10:46:14 -07:00
Zach Loafman
3103c8ca0f Kubernetes version v0.19.3 2015-06-22 10:46:14 -07:00
Zach Loafman
0e30307512 Kubernetes version v0.19.2-dev 2015-06-22 10:43:26 -07:00
Zach Loafman
c3331c4f34 Kubernetes version v0.19.2 2015-06-22 10:43:25 -07:00
Jeff Lowdermilk
0f59847cc5 Merge pull request #9905 from justinsb/aws_ssh_user
Don't assume we always SSH as the current user
2015-06-22 10:37:07 -07:00
Jeff Lowdermilk
2418173784 Merge pull request #9963 from smarterclayton/add_options_to_proxy
OPTIONS should be passed through the proxy
2015-06-22 10:36:25 -07:00
Prashanth Balasubramanian
5f61392e6f Add logging to debug container runtime failures 2015-06-22 10:22:35 -07:00
Prashanth Balasubramanian
64ad3e17ad Fix deadlock 2015-06-22 10:22:35 -07:00
Prashanth Balasubramanian
4b990d128a Don't flood the status manager with updates from multi-container pods 2015-06-22 10:22:28 -07:00
Salvatore Dario Minonne
4b13faa346 To add validation for service ports when defined as string (fixing issue #9734) 2015-06-22 17:21:51 +02:00
Anastasis Andronidis
b06ef70057 Print resource labels as columns 2015-06-22 00:44:51 +02:00
Anastasis Andronidis
101739a6be Added Reason in PodStatus 2015-06-21 17:05:34 +02:00
Justin Santa Barbara
c5f9085398 Mark realSSHDialer as implementing sshDialer 2015-06-20 18:18:38 -04:00
Justin Santa Barbara
efdd03a6a9 Don't assume we always SSH as the current user
This works on gcloud (where the user is dynamically created by the tool),
but doesn't hold on other clouds (e.g. AWS).

The function in pkg/util now takes a user arg, and it is called only
from the e2e tests, which now check for env-var KUBE_SSH_USER, and then
fall back to the existing behaviour of env-var USER.

I am using this from Jenkins by directly setting the env-var:

export KUBE_SSH_USER=jenkins
...
hack/jenkins/e2e.sh
2015-06-20 18:18:38 -04:00
markturansky
39c5152e2c fixed pv recycler timeout precision 2015-06-20 00:34:29 -04:00
Brendan Burns
26b682d6a0 Remove some dead code. 2015-06-19 21:32:13 -07:00
Prashanth Balasubramanian
35950c04ff Avoid syncing rcs till the pods controller has synced. 2015-06-19 18:20:28 -07:00
Abhishek Shah
3556993179 Augmented kubelet healthz with syncLoop check.
Monit uses read-only port for health monitoring.
2015-06-19 18:14:01 -07:00
Mike Danese
0da17683f0 log a message when we fall back to service account 2015-06-19 17:52:38 -07:00
Satnam Singh
29ffee51a8 Merge pull request #10102 from mikedanese/kubeconfig-bug-fix
make clientcmd use inClusterConfig only if no other configs are available
2015-06-19 16:45:33 -07:00
Satnam Singh
b964f3c911 Merge pull request #9739 from bprashanth/sno
Fix kubectl stop rc with sequence numbers
2015-06-19 15:30:26 -07:00
Satnam Singh
2012238204 Merge pull request #9457 from yujuhong/seen
Kubelet: record the initial pod processing latency
2015-06-19 15:24:16 -07:00
Satnam Singh
3591a543d1 Merge pull request #9919 from liggitt/port_protocol_validation
Validate port protocol case strictly
2015-06-19 15:18:03 -07:00
Satnam Singh
b05bd0c59f Merge pull request #10105 from caesarxuchao/fix-9287
exclude the port number when checking a request in "kubectl proxy"
2015-06-19 15:16:38 -07:00
Brendan Burns
f0ff1927f1 Fixup port printing. 2015-06-19 15:10:22 -07:00
Satnam Singh
90a7d41dcf Merge pull request #10113 from eparis/bash-comp-logs
kubectl log->logs in bash completions
2015-06-19 14:55:47 -07:00
gong yong sheng
3a598eba0e Use NodePort instead Port, firewalls install firewall. 2015-06-19 14:48:43 -07:00
Prashanth Balasubramanian
9ed9bd1c4f Add a generation number to the object meta of all objects, and status of rcs 2015-06-19 14:32:08 -07:00
Satnam Singh
d96a9a1c0a Merge pull request #9862 from fgrzadkowski/bump_ectd_client
Bump ectd client and fix initializing IP/Port allocators when etcd is not reachable
2015-06-19 14:22:47 -07:00
Eric Paris
f40fce4598 kubectl log->logs in bash completions
The kubectl log command switched to logs. But the bash completions code
was still looking for a singular
2015-06-19 16:00:58 -04:00
Jordan Liggitt
1ee5578146 Ensure service account does not exist before deleting added/updated tokens 2015-06-19 15:43:19 -04:00
Jordan Liggitt
e563727338 Add logging for invalid JWT tokens 2015-06-19 15:43:19 -04:00
Mike Danese
c93a7d644c make clientcmd use inClusterConfig only if no other configs are available 2015-06-19 12:41:10 -07:00
Filip Grzadkowski
4c0c7dd879 Fix intializing IP/Port allocators when etcd is not reachable. 2015-06-19 21:20:52 +02:00
Yu-Ju Hong
f96a8d0935 Kubelet: record the initial pod processing latency
Add a new latency metric for the time from seeing the pod for the first time
to starting a pod worker for it.

Also, change PodStartLatency to include this initial processing latency.
2015-06-19 12:07:55 -07:00
Satnam Singh
078e85cfdb Merge pull request #10076 from caesarxuchao/pr/9966/head
based on #9966: fix annoying 'please check...' messages; remove v1beta1&2 ref
2015-06-19 11:56:47 -07:00
Satnam Singh
f02c685532 Merge pull request #10007 from feihujiang/improveCreateSchemaValidate
improve kubectl create --validate, aggregate errors and handle requir…
2015-06-19 11:43:44 -07:00
Satnam Singh
0f55103512 Merge pull request #9346 from yifan-gu/cleanup_kubelet_tests
kubelet: clean up tests
2015-06-19 11:42:53 -07:00
Clayton Coleman
83f84a9821 OPTIONS should be passed through the proxy 2015-06-19 14:30:27 -04:00
Chao Xu
9449a61b1a exclude the port number when checking a request in "kubectl proxy" 2015-06-19 11:00:01 -07:00
Robert Bailey
abac8c86c7 Merge pull request #10096 from brendandburns/merge-release-0.19-to-master
Merge release 0.19.1 to master
2015-06-19 10:36:09 -07:00
Yifan Gu
40e46bbb37 kubelet: Remove newTestKubeletWithFakeRuntime() and other depreciated functions.
This cleans up the kubelet tests. Almost no docker specified tests now.
2015-06-19 10:28:27 -07:00
Yifan Gu
91e198cb70 kubelet: Move TestSyncPodWithTerminationLog() to dockertools package.
Update the fakeOptionGenerator to create the pod container directory,
so that fake docker client can see and record the termination log path.
2015-06-19 10:28:27 -07:00
Yifan Gu
6ddffdd736 kubelet: Move TestPortForwardNoSuchContainer() to dockertools package.
Also refactor TestPortForward() to be neutral to container runtime.
2015-06-19 10:28:27 -07:00
Satnam Singh
f83d5356d7 Merge pull request #9987 from mbforbes/livingUpgrade
Node upgrade test
2015-06-19 10:02:52 -07:00
Brendan Burns
3907ed5104 Merge remote-tracking branch 'upstream/release-0.19' into merge-release-0.19-to-master 2015-06-19 09:24:39 -07:00
markturansky
450002a52e Fixed formatting of error message 2015-06-19 11:21:57 -04:00
Satnam Singh
e584629272 Merge pull request #10048 from rajatchopra/master
Assign host's IPAddress to podIP when pod shares the host's network
2015-06-19 08:16:24 -07:00
Satnam Singh
d06a460007 Merge pull request #10066 from dchen1107/clean
Make kubelet first acknowledge time of a pod as Pod.Status.StartTime.
2015-06-19 08:05:15 -07:00
Satnam Singh
a3ffb05004 Merge pull request #9972 from smarterclayton/split_versioned_object
Split AsVersionedObjects so it can be reused
2015-06-19 08:04:23 -07:00
Satnam Singh
341e5f9899 Merge pull request #10081 from liggitt/service_account_name
Rename pod.spec.serviceAccount -> pod.spec.serviceAccountName for v1
2015-06-19 08:03:09 -07:00
Satnam Singh
9f4b504e84 Merge pull request #9921 from justinsb/aws_asg
AWS: Run minions in Auto Scaling Group
2015-06-19 07:47:28 -07:00
Satnam Singh
0f70095fff Revert "Revert "Validate service account name in pod spec"" 2015-06-19 07:31:19 -07:00
Justin Santa Barbara
2a5ed2f086 AWS: Use auto-scaling group to run minions
This uses the dynamic CIDR work, and we set source-dest-check to false
when we configure the route (which kind-of makes sense)
2015-06-19 10:22:15 -04:00
Satnam Singh
90a1aea42a Revert "Validate service account name in pod spec" 2015-06-18 23:37:14 -07:00
Brendan Burns
f291074866 Kubernetes version v0.19.1-dev 2015-06-18 23:07:53 -07:00
Brendan Burns
bb63f031d4 Kubernetes version v0.19.1 2015-06-18 23:06:41 -07:00
Jordan Liggitt
68a8a25494 Rename pod.spec.serviceAccount -> pod.spec.serviceAccountName for v1 2015-06-18 22:38:00 -04:00
Chao Xu
5673f73378 fix the left pre V1 field names in 290c4618c331f4f30a278af520121ff35 2015-06-18 18:44:55 -07:00
Satnam Singh
d8e5225144 Merge pull request #10069 from lavalamp/sshLockingFix
fix locking around ssh tunnels
2015-06-18 17:50:06 -07:00
Satnam Singh
59a96f1028 Merge pull request #9688 from liggitt/validate_pod_spec
Validate service account name in pod spec
2015-06-18 17:18:09 -07:00
Satnam Singh
9f32599bee Merge pull request #9720 from justinsb/aws_routes
Refactor Routes, and dynamically configure minion CIDRs on AWS
2015-06-18 17:16:29 -07:00
Justin Santa Barbara
0ad16a187d Refactor findRouteTable to be less verbose
Thanks for the suggestion @cjcullen
2015-06-18 17:08:32 -07:00
Daniel Smith
4126622388 fix locking around ssh tunnels 2015-06-18 16:52:10 -07:00
Chao Xu
5d89dda9a8 respect --api-version in the output of "kubectl cluster-info" 2015-06-18 16:51:10 -07:00
Satnam Singh
3e7799d9a8 Merge pull request #9845 from liggitt/kubernetes_service_uid
Apply BeforeCreate logic to kubernetes service
2015-06-18 16:28:49 -07:00
Satnam Singh
42fd7b4b68 Merge pull request #9806 from manansaraf/patch_error
Fixed pointers bug in PATCH verb in the API
2015-06-18 16:13:38 -07:00
Max Forbes
2803fbe343 Node upgrade tests. 2015-06-18 15:59:51 -07:00
Dawn Chen
1145e4b80a Make kubelet first acknowledge time of a pod as Pod.Status.StartTime. 2015-06-18 15:54:48 -07:00
Satnam Singh
0f81a65f74 Merge pull request #10019 from feihujiang/deleteTodoNotes
Delete TODO notes
2015-06-18 15:53:10 -07:00
Satnam Singh
28197e07d6 Merge pull request #9841 from smarterclayton/fix_apiserver_abstractions
Cleaning up apiserver method signatures
2015-06-18 15:36:52 -07:00
Satnam Singh
11d8f8f600 Merge pull request #9855 from liggitt/servicaccount_system_prefix
Add system: prefix to service account usernames
2015-06-18 15:35:26 -07:00
Satnam Singh
1d7f70a531 Merge pull request #9991 from nikhiljindal/dupPost
Do not register cross namespace actions with subresources in path
2015-06-18 15:33:37 -07:00
Satnam Singh
98e1aef259 Merge pull request #9910 from justinsb/instanceid_contract
Document assumption made by node-controller, and fix AWS to match
2015-06-18 15:21:07 -07:00
Satnam Singh
b48aa0b693 Merge pull request #9957 from rootfs/fix-9952
check IsNotExist error when validating mountpoint
2015-06-18 15:18:06 -07:00
Justin Santa Barbara
a4e15cdf3e AWS: Configure minion routes dynamically
We need to implement the Routes interface, and then enable the functionality in the cluster scripts.
2015-06-18 14:59:37 -07:00
Justin Santa Barbara
a3b43a36fd Refactor cloud route interface, to avoid assumption that routes are named 2015-06-18 14:59:37 -07:00
Justin Santa Barbara
a77bc9cfc4 Document assumption made by node-controller, and fix AWS to match
ExternalID must return "", cloudprovider.InstanceNotFound if the instance
is not found, for nodecontroller to remove nodes corresponding to deleted instances.
2015-06-18 14:55:10 -07:00
Satnam Singh
424d09fb97 Merge pull request #9907 from RichieEscarez/9404_controller
Changed "controller" to "replication controller"
2015-06-18 14:33:49 -07:00
Satnam Singh
de457c3e49 Merge pull request #9962 from smarterclayton/type_patch
Give PATCH operations a better output in Swagger
2015-06-18 14:31:49 -07:00
Satnam Singh
59876df736 Merge pull request #9927 from liggitt/fix_ecdsa_key
Re-enable ECDSA private server key use
2015-06-18 14:30:27 -07:00
Satnam Singh
1d44d06190 Merge pull request #10032 from deads2k/client-debugging
add debugging transport for client
2015-06-18 14:24:03 -07:00
Satnam Singh
d2c2f7e35e Merge pull request #9993 from mikedanese/re-patch
reenable patch serverside using strategic-merge-patch
2015-06-18 14:13:10 -07:00
Satnam Singh
4c13f8957d Merge pull request #10057 from justinsb/aws_id_as_name_2
Fix of reverted #9728
2015-06-18 14:07:21 -07:00
nikhiljindal
d3d579f59d Do not register cross namespace actions with subresources in path 2015-06-18 13:50:38 -07:00
CJ Cullen
3c754a6ec5 Pass through an explicit PROXY_SSH_USER.
Use user@user instead of user@hostname in case hostname is too long.

(cherry picked from commit abf1e768dc)
2015-06-18 13:27:09 -07:00
Brendan Burns
156d315ceb Truncate SSH usernames to 32 chars.
(cherry picked from commit 2330760d34)
2015-06-18 13:26:46 -07:00
Brendan Burns
311a58f1ad Update the kubelet to ignore syncing Pods until the container runtime is up.
(cherry picked from commit 51fb753e11)
2015-06-18 13:26:29 -07:00
Satnam Singh
838bb75183 Merge pull request #9970 from nikhiljindal/validSwagger
Fix path parameter swagger validation errors
2015-06-18 13:21:07 -07:00
Brendan Burns
5021dbc1a0 Merge pull request #10046 from cjcullen/fwfix
Allow passing through an explicit PROXY_SSH_USER.
2015-06-18 13:13:19 -07:00
Justin Santa Barbara
27b02d0913 Fix kubelet unit test; populate NodeName
When we build a Kubelet directly we need to populate NodeName
as well as hostname, because we bypass the functions that normally
do this for us.
2015-06-18 12:40:55 -07:00
Justin Santa Barbara
bd512ae06d AWS: Use the instance id as the node name
The EC2 instance id is the canonical node name on EC2.
2015-06-18 12:40:10 -07:00
Justin Santa Barbara
df87470ecf Allow cloud providers to return a node identifier different from the hostname 2015-06-18 12:40:05 -07:00
Justin Santa Barbara
dee8d4b90b For kubelet, differentiate between the nodeName and the hostname
This will allow us to use a nodeName that is not the hostname,
for example on clouds where the hostname is not the natural identifier
for a node.
2015-06-18 12:40:01 -07:00
Clayton Coleman
debd42a07d Cleaning up apiserver method signatures
A lot of the changes in apiserver could have been represented more
cleanly - this returns the signatures to their older behavior (and
unbreaks OpenShift).
2015-06-18 15:13:41 -04:00
Mike Danese
3de11e2fa8 reenable patch serverside using strategic-merge-patch 2015-06-18 12:06:46 -07:00
derekwaynecarr
fce7adf3e7 Admission control exposes subresource 2015-06-18 15:00:46 -04:00
deads2k
bab0a61ef1 add debugging transport for client 2015-06-18 14:51:00 -04:00
Satnam Singh
798739f013 Merge pull request #10006 from brendandburns/ssh
Truncate SSH usernames to 32 chars.
2015-06-18 11:44:26 -07:00
Rajat Chopra
a6a57de646 Assign host's IPAddress to podIP when pod shares the host's network 2015-06-18 11:30:59 -07:00
Satnam Singh
e4f5529a2d Revert "Allow nodename to be != hostname, use AWS instance ID on AWS" 2015-06-18 11:27:55 -07:00
Satnam Singh
b86ed2356c Merge pull request #10028 from andronat/small_wrong_printing_in_tests
Changed printing in a test file
2015-06-18 11:04:07 -07:00
nikhiljindal
b527b00d7b Fix path parameter swagger validation errors 2015-06-18 10:43:13 -07:00
CJ Cullen
abf1e768dc Pass through an explicit PROXY_SSH_USER.
Use user@user instead of user@hostname in case hostname is too long.
2015-06-18 10:35:02 -07:00
Satnam Singh
3505fb48a3 Merge pull request #9803 from satnam6502/execessive
Improve error output of kubectl update
2015-06-18 10:29:27 -07:00
Brendan Burns
2330760d34 Truncate SSH usernames to 32 chars. 2015-06-18 10:27:24 -07:00
Brendan Burns
51fb753e11 Update the kubelet to ignore syncing Pods until the container runtime is up. 2015-06-18 10:27:04 -07:00
Satnam Singh
790ca2344f Merge pull request #9728 from justinsb/aws_id_as_name
Allow nodename to be != hostname, use AWS instance ID on AWS
2015-06-18 10:17:39 -07:00
Clayton Coleman
93f921b677 Swagger output for PATCH can be more strongly typed 2015-06-18 13:04:20 -04:00
Anastasis Andronidis
64d984ae2e changed printing in a test file 2015-06-18 18:34:07 +02:00
feihujiang
a7b22e3773 Delete TODO notes (The syntax here is the reverse of the (old, new) pattern in most other validation. Fix this.) 2015-06-18 20:13:17 +08:00
Piotr Szczesniak
1ba909098e Merge pull request #9936 from piosz/kubectl_v1
Migrated kubectl cluster-info to v1.
2015-06-18 11:19:29 +02:00
feihujiang
d5fcd9f153 improve kubectl create --validate, aggregate errors and handle require fields 2015-06-18 16:22:09 +08:00
Brendan Burns
075c075b9e Truncate SSH usernames to 32 chars. 2015-06-17 23:10:32 -07:00
Brendan Burns
f660940dce Merge pull request #9990 from cjcullen/fwfix
Make AddSSHKeys a controller loop. Make sure master's always initializes m.tunnels.
2015-06-17 21:32:34 -07:00
Saad Ali
47436683d4 Merge pull request #9954 from caesarxuchao/listwatch_test
remove references to v1beta1/2 in listwatch_test.go
2015-06-17 18:09:49 -07:00
Saad Ali
c759ef2be0 Merge pull request #9926 from bprashanth/kubelet_race
Fix benign data race in pod workers
2015-06-17 18:09:28 -07:00
Saad Ali
9ca9e43625 Merge pull request #9600 from liggitt/remove_namespace_param
Remove ?namespace= param handling/defaulting
2015-06-17 18:07:13 -07:00
CJ Cullen
15596ede41 Make AddSSHKeys a controller loop. Make sure master's always initializes m.tunnels. 2015-06-17 17:46:27 -07:00
Chao Xu
1be9789795 remove references to v1beta1/2 in listwatch_test.go 2015-06-17 17:23:33 -07:00
Saad Ali
9da215e085 Merge pull request #9897 from derekwaynecarr/limit_range_validation
Add LimitRange range validation
2015-06-17 17:20:18 -07:00
Saad Ali
8af4fbfd1b Merge pull request #9982 from markturansky/pv_typo
Fixed typo in error string
2015-06-17 17:02:12 -07:00
Satnam Singh
d69e0b5eb6 Improve error output of kubectl update 2015-06-17 15:55:03 -07:00
Saad Ali
2a228bf45e Merge pull request #9898 from nikhiljindal/trace
Stop supporting TRACE proxy requests
2015-06-17 15:55:03 -07:00
Prashanth Balasubramanian
de1f246e89 Fix benign data race in pod workers. 2015-06-17 14:52:03 -07:00
markturansky
88a4ff02f5 Fixed typo in error string 2015-06-17 17:51:42 -04:00
Saad Ali
b2cc21c2b6 Merge pull request #9608 from markturansky/pv_naming
Changed PVClaimVolumeSource name to match other volume names
2015-06-17 14:22:57 -07:00
Saad Ali
544b16d873 Merge pull request #9750 from rjnagal/ux
Update cadvisor dependency.
2015-06-17 14:22:38 -07:00
Saad Ali
6f0c48479f Merge pull request #9961 from dchen1107/master
Configured resource-only container /docker-daemon with 70% of node me…
2015-06-17 14:18:54 -07:00
Clayton Coleman
f3aa8f4196 Pod IP should be described with Pods 2015-06-17 16:45:11 -04:00
Clayton Coleman
1707c5d28c Split AsVersionedObjects so it can be reused 2015-06-17 16:33:53 -04:00
markturansky
0a6b7b61ec Changed PVClaimVolumeSource name to match other volume names 2015-06-17 16:17:49 -04:00
Dawn Chen
32d5f463d2 Add a sanity check to memory limit for /docker-daemon, and allocate
at least 150Mi at least.
2015-06-17 12:51:11 -07:00
Huamin Chen
0280dac6b1 check IsNotExist error when validating mountpoint
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-06-17 15:25:15 -04:00
Dawn Chen
ca95eb75e9 Configured resource-only container /docker-daemon with 70% of node memory
capacity. This is a workaround to docker memory leakage issue.
2015-06-17 11:40:30 -07:00
Saad Ali
641f8d47d3 Merge pull request #9828 from caesarxuchao/remove-testdata-v1beta1
remove pkg/api/validation/testdata/v1beta1/*
2015-06-17 11:36:03 -07:00
Saad Ali
f8e58f7efe Merge pull request #9827 from timstclair/html-rewrite
Html rewrite
2015-06-17 11:35:30 -07:00
Saad Ali
b25de6e273 Merge pull request #9916 from caesarxuchao/streamer
remove string "v1beta1" from streamer_test.go
2015-06-17 11:33:34 -07:00
Saad Ali
64731986dd Merge pull request #9774 from liggitt/admission_error
Make admission errors clearer
2015-06-17 11:31:47 -07:00
Saad Ali
d5e00d3990 Merge pull request #9523 from bprashanth/kl_stats
Scrape /metrics of kubelets from e2e tests
2015-06-17 11:30:28 -07:00
Saad Ali
609406d00a Merge pull request #9186 from gmarek/latency
Add startup latency e2e "test"
2015-06-17 11:29:37 -07:00
RichieEscarez
eb44b3c830 Qualified all references to "controller" so that references to "replication controller" are clear. fixes #9404
Also ran hacks/run-gendocs.sh
2015-06-17 08:48:59 -07:00
gmarek
c2c1045e09 Add startup latency e2e "test" 2015-06-17 17:40:07 +02:00
derekwaynecarr
2518d8c0fc Add LimitRange range validation 2015-06-17 10:24:31 -04:00
Piotr Szczesniak
2b19c002cb Migrated kubectl cluster-info to v1.
Addresses #7018

Also fixed the case when kubernetes.io/name label is not defined
(another fix for #9875)
2015-06-17 15:21:05 +02:00
Justin Santa Barbara
c89b0cd807 AWS: Use the instance id as the node name
The EC2 instance id is the canonical node name on EC2.
2015-06-17 00:40:43 -04:00
Justin Santa Barbara
efaead81dc Allow cloud providers to return a node identifier different from the hostname 2015-06-17 00:40:43 -04:00
Justin Santa Barbara
c28cdfbd43 For kubelet, differentiate between the nodeName and the hostname
This will allow us to use a nodeName that is not the hostname,
for example on clouds where the hostname is not the natural identifier
for a node.
2015-06-17 00:40:43 -04:00
Justin Santa Barbara
bf7946c326 AWS: Define new m4 instance types 2015-06-17 00:04:05 -04:00
Jeff Lowdermilk
57a6355807 Unittest for #9762
Started looking at refactoring of the kubectl Factory, which
caused me to experience all 5 stages of grief. There are some options
for improving, but it probably warrants a proposal with some discussion/
feedback. In the meantime this tests `NegotiateVersion` in isolation.
2015-06-16 20:04:51 -07:00
Jordan Liggitt
64d61185eb Re-enable ECDSA private server key use 2015-06-16 23:03:29 -04:00
Jordan Liggitt
a341b8f44f Remove ?namespace= param handling/defaulting 2015-06-16 22:40:01 -04:00
Saad Ali
43889c612c Merge pull request #9918 from caesarxuchao/common_test
remove references to v1beta1 in common_test.go
2015-06-16 18:59:19 -07:00
Saad Ali
fa389a68b5 Merge pull request #9829 from caesarxuchao/remove-config_test
remove pkg/config/config_test.json
2015-06-16 18:53:18 -07:00
Saad Ali
cc5756b2fc Merge pull request #9809 from bprashanth/stats_cache
Use runtime cache to serve container /stats requests
2015-06-16 18:51:53 -07:00
Saad Ali
185eb5e26a Merge pull request #9912 from justinsb/loadbalancer_logic
servicecontroller: last state applied to LB vs last state seen
2015-06-16 18:32:56 -07:00
Jordan Liggitt
2b840279d9 Validate service account name in pod spec 2015-06-16 21:09:01 -04:00
Jordan Liggitt
87f84974d3 Make admission errors clearer 2015-06-16 21:08:51 -04:00
Jordan Liggitt
e869d5c6fc Apply BeforeCreate logic to kubernetes service 2015-06-16 21:08:42 -04:00
Jordan Liggitt
dae4e82dca Add system: prefix to service account usernames 2015-06-16 21:08:18 -04:00
Jordan Liggitt
ee4cd972e0 Validate port protocol case strictly 2015-06-16 20:28:11 -04:00
Chao Xu
b093af57ba cleanse common_test.go of v1beta1 2015-06-16 17:22:35 -07:00
Chao Xu
271a63f486 remove string "v1beta1" from streamer_test.go 2015-06-16 17:10:58 -07:00
Daniel Smith
f990899290 fix annoying 'please check...' messages; remove v1beta1&2 ref 2015-06-16 16:21:54 -07:00
Chao Xu
5371d8215d remove pkg/config/ 2015-06-16 16:12:31 -07:00
Justin Santa Barbara
1561fce81c servicecontroller: last state applied to LB vs last state seen
We need the last state seen for interpreting the change-stream,
separately we need to track the last state we successfully applied to the
load balancer.
2015-06-16 18:59:03 -04:00
Saad Ali
6ada940e7f Merge pull request #9706 from hurf/shorten_id
Shorten container ID in events
2015-06-16 15:58:30 -07:00
Saad Ali
f82accda25 Merge pull request #9582 from mnagy/fix_quoting
Quote integers correctly
2015-06-16 15:55:58 -07:00
Saad Ali
a1e3e536c3 Merge pull request #9820 from thockin/dead-code
Remove dead code
2015-06-16 15:49:53 -07:00
Jeff Lowdermilk
e2f4472d71 kubectl negotiates apiversion to use based on client,server supported
(cherry picked from commit f31191224b)
2015-06-16 15:08:37 -07:00
CJ Cullen
4cd4d363c5 Change SSHTunnelList to struct to make Open() semantics better.
(cherry picked from commit 48f672af92)
2015-06-16 15:07:21 -07:00
CJ Cullen
e98f79e4bc Fix mislooping in ssh.go. Add retries to AddSSHKeys.
(cherry picked from commit 4d5d0457ef)
2015-06-16 15:07:06 -07:00
Saad Ali
f7cb6e9844 Merge pull request #9890 from ncdc/fix-exec-infinite-loop
Eliminate possible infinite loop in exec
2015-06-16 15:03:25 -07:00
Saad Ali
0aae358d2d Merge pull request #9835 from caesarxuchao/remove-testapi-nsQuery
Update pkg/api/testapi because namespace is always in the path now
2015-06-16 14:54:36 -07:00
Saad Ali
5e597c5f0d Merge pull request #9826 from brendandburns/redirect
Remove the redirect verb.
2015-06-16 14:51:24 -07:00
Saad Ali
369a1e7761 Merge pull request #9894 from markturansky/image_change
Changed busybox image to gcr.io image for PV Recyclers
2015-06-16 14:42:19 -07:00
Tim St. Clair
49b8c975d8 Update the URL-rewriting logic to make minimal modifications.
The new approach avoids building a complete parse tree, instead using the lower level token stream. Doing so removes the need for creating "missing" HTML elements, reducing the collateral changes to the rewritten HTML.

Resolves: #9766
2015-06-16 14:15:11 -07:00
Chao Xu
a309d3e652 Update pkg/api/testapi because namespace is always in the path since we remove v1beta1/2 2015-06-16 14:12:03 -07:00
nikhiljindal
34a0bccd2e Stop supporting TRACE proxy requests 2015-06-16 14:07:40 -07:00
Saad Ali
d6b50d5602 Merge pull request #9823 from caesarxuchao/remove-PodContainerInfo
remove PodContainerInfo from api/types.go
2015-06-16 13:38:53 -07:00
Manan Saraf
86025129fb Fixed pointers bug in PATCH verb in the API 2015-06-16 13:31:49 -07:00
markturansky
cfc08c4fdf Changed busybox img to official gcr.io image 2015-06-16 16:15:19 -04:00
Andy Goldstein
7748a02e37 Eliminate possible infinite loop in exec
If a user starts an exec session with a shell and leaves it idle long
enough, they will eventually hit the Kubelet's HTTP server's read/write
timeout of 5 minutes. At this time, the StartExec call to Docker exits,
but if the user requested a TTY, the exec'd process does not exit.
After StartExec finishes, we try to determine the exit code of the
exec'd process, but in this case, we'll never get it. This change exits
the loop after 5 tries if the process is still running.
2015-06-16 15:44:09 -04:00
Brendan Burns
1dd18673ec Merge pull request #9762 from jlowdermilk/negotiate-api-version
kubectl negotiates api version to use based on client,server supported versions
2015-06-16 11:18:08 -07:00
Brendan Burns
96c244eacf Merge pull request #9848 from cjcullen/fwfix
Fix mislooping in ssh.go. Add retries to AddSSHKeys.
2015-06-16 11:10:30 -07:00
Saad Ali
5596e6f789 Merge pull request #9493 from marekbiskup/testAddonUpdate
e2e test for addon upgrade
2015-06-16 10:50:15 -07:00
CJ Cullen
48f672af92 Change SSHTunnelList to struct to make Open() semantics better. 2015-06-16 10:36:38 -07:00
Jeff Lowdermilk
f31191224b kubectl negotiates apiversion to use based on client,server supported 2015-06-16 10:12:39 -07:00
Prashanth Balasubramanian
831d7a36d0 Scrape /metrics of kubelets from e2e tests 2015-06-16 09:50:40 -07:00
CJ Cullen
4d5d0457ef Fix mislooping in ssh.go. Add retries to AddSSHKeys. 2015-06-16 00:08:37 -07:00
Fabio Yeon
a8269e38c9 Merge pull request #9716 from derekwaynecarr/stable_quota_controller
Its bad to spawn a gofunc per quota with large number of quotas
2015-06-15 21:49:10 -07:00
Fabio Yeon
3ad3b2962a Merge pull request #9825 from nikhiljindal/newBranch
Removing legacyBehavior param from pkg/client
2015-06-15 21:03:22 -07:00
CJ Cullen
db645dd31a Add ssh tunnel-open metrics
(cherry picked from commit 66fb8ccb02)
2015-06-15 20:35:12 -07:00
CJ Cullen
c453282f72 Fix several potential crashes in sshtunnel open/close code.
(cherry picked from commit faa9313eea)
2015-06-15 20:34:59 -07:00
Dawn Chen
c1dd527dd1 Fix the unittests cause by applying oom_score_adj (0) to the user containers. 2015-06-15 20:34:03 -07:00
Dawn Chen
85bb2911a3 Apply oom_score_adj (0) to PID of user containers by default.
(cherry picked from commit f6f9372d1a)
2015-06-15 20:33:45 -07:00
Brendan Burns
6eda9c4976 Fix a bug where the network container could be torn down before other pods.
This can break PreStop that hits localhost in the pod.

(cherry picked from commit aac696d44c)
2015-06-15 20:32:31 -07:00
Brendan Burns
a6652a0e98 Merge pull request #9834 from cjcullen/fwfix
Fix crashes in ssh-tunnel code.
2015-06-15 20:25:32 -07:00
Fabio Yeon
bcf5cffa1a Merge pull request #9768 from timstclair/proxy-rel
Don't rewrite relative URLs when proxying HTTP content.
2015-06-15 19:54:18 -07:00
Fabio Yeon
72082624e5 Merge pull request #9522 from brendandburns/friction
Add a better message if the user doesn't specify a resource type.
2015-06-15 19:53:54 -07:00
Fabio Yeon
0453f9ea9d Merge pull request #9705 from hurf/label4describe
Add label support for kubectl describe
2015-06-15 19:33:09 -07:00
CJ Cullen
66fb8ccb02 Add ssh tunnel-open metrics 2015-06-15 17:28:54 -07:00
Dawn Chen
80c48aedb2 Merge pull request #9824 from dchen1107/clean
explicitly applying oom_score_adj(0) to processes of user containers
2015-06-15 17:06:48 -07:00
nikhiljindal
3d63c71cbc Removing legacyBehavior param from pkg/client 2015-06-15 16:49:11 -07:00
Chao Xu
d9e8939ae4 remove pkg/api/validation/testdata/v1beta1/* 2015-06-15 16:20:14 -07:00
Dawn Chen
14f78b74cc Fix the unittests cause by applying oom_score_adj (0) to the user containers. 2015-06-15 16:16:34 -07:00
Dawn Chen
f6f9372d1a Apply oom_score_adj (0) to PID of user containers by default. 2015-06-15 16:16:34 -07:00
BC Broussard
90b0b5c895 Add NodePort and Loadbalancer to services web ui
Remove PublicIPs
2015-06-15 16:09:10 -07:00
Brendan Burns
07b5930a70 Remove the redirect verb. 2015-06-15 15:39:06 -07:00
Fabio Yeon
4fdcbc3096 Merge pull request #9799 from jhadvig/err_msg
Making error msg for updating resource version more clear
2015-06-15 15:20:00 -07:00
Fabio Yeon
bb5d2101a1 Merge pull request #9765 from brendandburns/fix-kubelet
Fix a bug where the network container could be torn down before other pods
2015-06-15 15:09:01 -07:00
Chao Xu
3815b4c985 remove PodContainerInfo from api/types.go 2015-06-15 15:04:37 -07:00
Tim Hockin
29d4d7a16d Remove dead code 2015-06-15 14:40:36 -07:00
CJ Cullen
faa9313eea Fix several potential crashes in sshtunnel open/close code. 2015-06-15 14:38:37 -07:00
Fabio Yeon
5f361c17af Merge pull request #9759 from mikedanese/actually-fix-logging
Fix excessively verbose logging in master's kubelet
2015-06-15 13:35:33 -07:00
Fabio Yeon
4e6bd63256 Merge pull request #9597 from mikedanese/fix-swagger-validate-panic
fix panic in kubectl --validate when no apiVersion is passed
2015-06-15 13:05:11 -07:00
Fabio Yeon
86815516ba Merge pull request #9584 from smarterclayton/rest_client_metrics_unbounded
Memory leak: REST client metrics capture grows unbounded
2015-06-15 13:03:36 -07:00
Prashanth Balasubramanian
d761b1d4d7 Use runtime cache to serve container /stats requests 2015-06-15 12:39:25 -07:00
Rohit Jnagal
6849b381dc Update cadvisor dependency.
Godep also decided to remove unused appengine dependency.
2015-06-15 19:11:55 +00:00
Fabio Yeon
b65c321a87 Merge pull request #9772 from feihujiang/noKindErrorMessage
make the kind not registered in versions  error message more precise
2015-06-15 10:26:58 -07:00
Fabio Yeon
26e7d8b60c Merge pull request #9679 from BenTheElder/export_iptables_getversion
Export GetIptablesVersion utility in pkg/util/iptables
2015-06-15 10:05:08 -07:00
Fabio Yeon
18a3932585 Merge pull request #9265 from mesosphere/upstream-k8sm-cm-and-km
Upstream Kubernetes Mesos controller manager and km binary
2015-06-15 09:28:12 -07:00
Marek Biskup
dcc4034d57 e2e test for addon update 2015-06-15 17:37:24 +02:00
jhadvig
ad36f5d2f1 Making error msg for updating resource version more clear 2015-06-15 17:05:08 +02:00
Clayton Coleman
bdbf477207 REST Client metrics capture grows unbounded
The URLs were unique by namespace and query parameter value, which means
an infinite number of metrics counters could be created.
2015-06-15 11:03:20 -04:00
Filip Grzadkowski
cdc5034ce4 Fix error message for missing imagePullPolicy 2015-06-15 16:02:32 +02:00
hurf
d58768b351 Shorten container ID in events
Log only first 12 characters of container ID in events.
2015-06-15 17:01:27 +08:00
feihujiang
ad4f22bf6a improve kubectl error message when an object with kind not registered in versions 2015-06-15 09:18:28 +08:00
Tim St. Clair
fd7d46e9da Don't rewrite relative URLs when proxying HTTP content. 2015-06-12 21:30:29 -07:00
Brendan Burns
aac696d44c Fix a bug where the network container could be torn down before other pods.
This can break PreStop that hits localhost in the pod.
2015-06-12 21:18:40 -07:00
Quinton Hoole
85ade1db0a Merge pull request #9592 from lavalamp/logSpam
Restore service latency test & fix bugs
2015-06-12 19:20:17 -07:00
Mike Danese
64482907ab cover more codepaths that hit GetNode in standalone, as well as create better error message when we actually do hit GetNode() which is likely a programmer/config error 2015-06-12 17:45:17 -07:00
Abhi Shah
cdef8ae844 Merge pull request #9749 from dchen1107/podstatus
Add logging at RunInContainer for future debugging docker exec issues.
2015-06-12 17:10:12 -07:00
Abhi Shah
3e8690c28b Merge pull request #9515 from markturansky/scrub_thread_leak
Fixes thread leak from discarded watch
2015-06-12 16:52:21 -07:00
Dawn Chen
c1d1a01087 Add logging at RunInContainer for future debugging docker exec issues. 2015-06-12 16:38:24 -07:00
Dawn Chen
b1bbf653ab Merge pull request #9680 from mikedanese/fix-readiness-probe
Fix ReadinessProbe: seperate readiness and liveness in the code
2015-06-12 16:10:21 -07:00
Brendan Burns
c6a910c0b8 Merge pull request #9650 from hurf/podns_describe_node
display pod namespace while describe node
2015-06-12 15:59:46 -07:00
Abhi Shah
3ce7fe8310 Merge pull request #9722 from mikedanese/host-ip-spam
Fix spammy GetHostIP error log in kubelet
2015-06-12 15:26:54 -07:00
BenTheElder
c5baf1f284 Export GetIptablesVersion utility in util/iptables
For kube-proxy to determine whether to use pure iptables as in
https://github.com/GoogleCloudPlatform/kubernetes/issues/3760
Related WIP PR:
https://github.com/GoogleCloudPlatform/kubernetes/pull/9210
2015-06-12 17:13:40 -04:00
Daniel Smith
9423f80d20 fix test bug & conversion bug 2015-06-12 13:55:10 -07:00
Abhi Shah
86b6150fb0 Merge pull request #9287 from brendandburns/kubectl
Add some XSRF protection to kubectl proxy.
2015-06-12 13:51:08 -07:00
Abhi Shah
928971cea4 Merge pull request #9710 from mesosphere/public-get-phase
export kubelet.GetPhase
2015-06-12 13:46:35 -07:00
Mike Danese
5896ac9e07 skip GetHostIP call on standalone mode kubelet to fix spammy log statement 2015-06-12 11:37:53 -07:00
derekwaynecarr
d40ff87bdc Its bad to spawn a gofunc per quota with large number of quotas 2015-06-12 11:40:14 -04:00
James DeFelice
022ff5196d fix broken file refs 2015-06-12 14:03:01 +00:00
James DeFelice
1820114a2d Upstream controller manager and km binary
Closes mesosphere/kubernetes-mesos#310
Depends on GoogleCloudPlatform/kubernetes#8882

- fix https://github.com/mesosphere/kubernetes-mesos/issues/336
- Fix comment typo
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11559038
- Add warning to k8s modules to also update mesos copies
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11558864
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11558855
- Add comments and TODO that hypercube and controllermanager need refactoring
2015-06-12 14:03:00 +00:00
Abhi Shah
52db576617 Merge pull request #8882 from mesosphere/upstream_k8sm
Upstream Kubernetes-Mesos framework
2015-06-12 06:36:20 -07:00
James DeFelice
3cf7739b42 export kubelet.GetPhase 2015-06-12 11:11:53 +00:00
Jerzy Szczepkowski
cd3299307d Merge pull request #9549 from bprashanth/generate_fix
Avoid trying to generate the pod status of a new pod
2015-06-12 10:54:13 +02:00
Victor HU
eb473676ce display pod namespace while describe node 2015-06-12 15:30:11 +08:00
hurf
fa0efe3927 Add label support for kubectl describe
Add -l option to kubectl describe command, allow it return
multiple results filtered by label selector.
2015-06-12 15:08:28 +08:00
Daniel Smith
47294dd326 Revert "Revert "Test Service creation -> endpoint generation latency""
This reverts commit 654857114e.
2015-06-11 18:34:31 -07:00
Prashanth Balasubramanian
b5ed0e9b13 Dont generatePodStatus twice for new pods 2015-06-11 17:18:16 -07:00
Mike Danese
35771acdfa seperate readiness and liveness in the code 2015-06-11 15:09:27 -07:00
markturansky
4210a5dfd8 Scrub pod closes watch channel 2015-06-11 14:25:44 -04:00
Abhi Shah
87d0208d83 Merge pull request #9504 from derekwaynecarr/describe_ns
Add namespace describer
2015-06-11 10:26:03 -07:00
Brendan Burns
4aeee94603 Add some XSRF protection to kubectl proxy. 2015-06-10 20:55:33 -07:00
Abhi Shah
b556285661 Merge pull request #9550 from feihujiang/validationFailure
remove useless glog.Infof
2015-06-10 14:45:10 -07:00
Abhi Shah
07f8d58010 Merge pull request #9500 from andronat/make_CheckErr_testable
Make check err testable
2015-06-10 14:42:56 -07:00
James DeFelice
7d66559725 added comments at the top of native k8s files which, if changed, might affect some of the k8sm code 2015-06-10 20:31:22 +00:00
Abhi Shah
f5b6597492 Revert "Make error msg for updating resource version more clear" 2015-06-10 12:54:52 -07:00
Abhi Shah
d477fe6b1c Merge pull request #9569 from jhadvig/unclear_error
Make error msg for updating resource version more clear
2015-06-10 12:51:57 -07:00
Mike Danese
2bbb78d50a actually return validation errors instead of just creating them 2015-06-10 12:45:10 -07:00
Brendan Burns
0cb58606b7 Kubernetes version v0.19.0-dev 2015-06-10 09:26:55 -07:00
Brendan Burns
6b0d4ffed3 Kubernetes version v0.19.0 2015-06-10 09:25:31 -07:00
Martin Nagy
ff2b5b78fa Quote integers correctly 2015-06-10 17:50:58 +02:00
Anastasis Andronidis
62c766d58d Add tests 2015-06-10 16:09:43 +02:00
Anastasis Andronidis
b7c485ee9a make CheckErr testable 2015-06-10 16:09:42 +02:00
Jakub Hadvig
90dcd347ac Make error msg for updating resource version more clear 2015-06-10 14:03:06 +02:00
Brendan Burns
99bf48dc2f Merge pull request #9542 from brendandburns/validate
Change the way we test if a disk is already attached.
2015-06-09 22:00:06 -07:00
Brendan Burns
654857114e Revert "Test Service creation -> endpoint generation latency" 2015-06-09 21:24:00 -07:00
feihujiang
5867b5ce6b remove useless glog.Infof 2015-06-10 11:02:28 +08:00
Brendan Burns
3350eecedf Change the way we test if a disk is already attached.
Validated by manual introspection on a running GCE cluster.
2015-06-09 17:50:52 -07:00
krousey
f62a2a1bb6 Merge pull request #9451 from cjcullen/mig
Use Node IP Address instead of Node.Name in minion.ResourceLocation.
2015-06-09 15:52:12 -07:00
krousey
1c58d2a766 Merge pull request #9354 from lavalamp/logSpam
Test Service creation -> endpoint generation latency
2015-06-09 15:51:26 -07:00
krousey
e36aa77018 Merge pull request #9505 from mikedanese/remove-flags
remove kubectl flags from usage examples that no longer exist
2015-06-09 15:15:59 -07:00
Brendan Burns
b259c873b7 Add a better message if the user doesn't specify a resource type. 2015-06-09 15:04:56 -07:00
krousey
f413f30bea Merge pull request #9424 from mesosphere/export-generate-pod-status
add GetRuntime() to Kubelet for easier integration with 3rd party kubele…
2015-06-09 14:17:30 -07:00
krousey
934a5382ec Merge pull request #9496 from caesarxuchao/event_test-v1
update fieldPath in event_test.go to v1
2015-06-09 13:41:36 -07:00
krousey
3e7bcd1ecc Merge pull request #9182 from jdef/abspath_drops_config_prefix
ServerAPIVersions incorrectly squashes config.Prefix
2015-06-09 13:00:58 -07:00
Mike Danese
401d3c43fd remove removed flags from usage examples 2015-06-09 12:56:58 -07:00
derekwaynecarr
5b005fa30b Add namespace describer 2015-06-09 15:52:44 -04:00
krousey
43a423f6fc Merge pull request #9440 from brendandburns/ssh
Add an initial test for SSH.
2015-06-09 12:08:26 -07:00
krousey
dd1f4f392f Merge pull request #9425 from mesosphere/update-testify-dep
Update github.com/stretchr/testify rev to 7e4a149
2015-06-09 11:59:00 -07:00
krousey
687e866d80 Merge pull request #9418 from mikedanese/kubectl-version-err
kubectl should error if versionless yaml is passed to resource builder
2015-06-09 11:55:48 -07:00
krousey
3d803ab7b2 Merge pull request #9410 from cjcullen/ratelimit
Add a RateLimiter for the gce altTokenSource.
2015-06-09 11:11:48 -07:00
krousey
044d4868ca Merge pull request #9408 from bcbroussard/v1api
Update web ui to v1 api
2015-06-09 11:00:06 -07:00
krousey
0487c65fab Merge pull request #9389 from nikhiljindal/swaggerDup
Adding subresource to swagger route docs
2015-06-09 10:51:38 -07:00
Chao Xu
030099a5bd update fieldPath in event_test.go to v1 2015-06-09 10:45:55 -07:00
krousey
9740105a99 Merge pull request #8837 from mbforbes/rollingTest
E2E test node upgrade (to same version)
2015-06-09 10:42:17 -07:00
krousey
fa94d88599 Merge pull request #9370 from justinsb/fix_9318
Actually pass down ServiceNodePortRange so it is used
2015-06-09 10:39:45 -07:00
James DeFelice
b5583db1d2 add UnversionedPath() to fix ServerAPIVersions() 2015-06-09 17:30:48 +00:00
nikhiljindal
784e408ab4 Adding subresource to swagger route docs 2015-06-09 10:20:45 -07:00
krousey
d7f7d84a5e Merge pull request #9387 from jsdir/9340-signature
Improve signature consistency for ValidateObjectMetaUpdate
2015-06-09 10:20:18 -07:00
krousey
ff474e5d7e Merge pull request #9376 from feihujiang/createValidateCrash
kubetcl create --validate crashes when no apiVersion or kind is provided
2015-06-09 09:59:42 -07:00
James DeFelice
257bc9b1a3 add GetRuntime() to simplify integration with 3rd party kubelet extensions like kubernetes-mesos 2015-06-09 13:27:34 +00:00
Brendan Burns
b68ddbaf75 Don't pretty-print by default. Saves an allocation (or more) and a copy. 2015-06-08 21:31:58 -07:00
Brendan Burns
2240486110 Add an initial test for SSH. 2015-06-08 20:53:05 -07:00
feihujiang
37abe11f8a kubetcl create --validate crashes when no apiVersion or kind is provided 2015-06-09 10:38:43 +08:00
CJ Cullen
2d85e4a094 Use Node IP Address instead of Node.Name in minion.ResourceLocation.
Refactor GetNodeHostIP into pkg/util/node (instead of pkg/util to break import cycle).

Include internalIP in gce NodeAddresses.
2015-06-08 16:58:00 -07:00
krousey
afb9a7e362 Merge pull request #9373 from justinsb/aws_lb_cleanup
Make deletion of an AWS load balancer clean
2015-06-08 16:49:21 -07:00
Daniel Smith
aa9bdcbc4a add missing endpoints field label conversion function 2015-06-08 16:23:21 -07:00
krousey
ab4c725975 Merge pull request #9328 from liggitt/token_controller_process_new
Generate tokens for service accounts with no secrets
2015-06-08 15:15:44 -07:00
Jason Sommer
aa892b7143 Replace meta with new 2015-06-08 17:06:56 -05:00
Justin Santa Barbara
6f3879e3bb Actually pass down ServiceNodePortRange so it is used
Also fix default range to match what we've documented (off-by-one)

Fix #9318
2015-06-08 18:03:42 -04:00
krousey
5aa0219ada Merge pull request #9292 from cjcullen/test_pull_8946
Add an ssh tunnel option to the /proxy endpoint
2015-06-08 14:30:12 -07:00
Brendan Burns
4546cbbb56 Revert "Cut release 0.18.2 with the fix for Docker + memory limits" 2015-06-08 13:49:48 -07:00
Brendan Burns
cfcc6553a5 Merge pull request #9426 from brendandburns/release-0.18
Cut release 0.18.2 with the fix for Docker + memory limits
2015-06-08 13:40:07 -07:00
Brendan Burns
56134d57e4 Kubernetes version v0.18.2-dev 2015-06-08 13:08:53 -07:00
Brendan Burns
1f12b89387 Kubernetes version v0.18.2 2015-06-08 13:08:10 -07:00
Dawn Chen
a90d47da60 Passing memory swap limit -1 by default. Docker remote API never check if memory
swap is enabled by kernel or not, instead by default to set the limit to
memory * 2, and return API error 500 if swap is not enabled.

(cherry picked from commit f714020a7a)
2015-06-08 13:06:32 -07:00
Tomás Senart
2a3ffe4038 kubelet: Use assert.EqualValues instead of assert.Equal
The last update to github.com/stretchr/testify makes `assert.Equal`
consider the type of its arguments. This commit makes this test pass
again by only testing for value equality using `assert.EqualValues`.
2015-06-08 22:01:48 +02:00
Mike Danese
627b2f9a24 kubectl should use UnstructuredJSONScheme to decode version and kind, as it throws errors if either are missing] 2015-06-08 11:51:37 -07:00
krousey
8ce921ed33 Merge pull request #9357 from mikedanese/kubectl-kind-err
improve kubectl error message when an object with no kind is passed to the resource builder
2015-06-08 11:34:43 -07:00
CJ Cullen
be0d24824d Add a RateLimiter for the gce altTokenSource. 2015-06-08 11:16:52 -07:00
BC Broussard
4efa564c7b Update web ui to v1 api 2015-06-08 10:49:29 -07:00
krousey
66d2e1cb92 Merge pull request #9358 from dchen1107/podstatus
Passing memory swap limit -1 by default. Docker remote API never chec…
2015-06-08 10:19:28 -07:00
krousey
49a6b629f8 Merge pull request #9171 from jdef/parse_prefix_from_server
parse apiserver prefix from client config host spec
2015-06-08 10:17:41 -07:00
krousey
a7edbedcb9 Merge pull request #9262 from bprashanth/minion_proxy
Apiserver can proxy to nodes
2015-06-08 10:17:06 -07:00
Anastasis Andronidis
bf87f0ec68 Print multiple validation errors 2015-06-08 14:06:20 +02:00
Jason Sommer
d59a8ff7f8 Improve signature consistency for ValidateObjectMetaUpdate
Fixes #9340

Signed-off-by: Jason Sommer <jsdirv@gmail.com>
2015-06-08 02:56:38 -05:00
Masahiro Sano
34849b4476 add unit test for allocator 2015-06-07 15:59:51 +09:00