Commit Graph

6617 Commits

Author SHA1 Message Date
Wojciech Tyczynski
7ce51db40d Rename StorageInterface methods 2015-07-29 08:02:13 +02:00
Wojciech Tyczynski
db5f6eae6c Factor out etcdWatcher to a separate file 2015-07-29 08:02:13 +02:00
Brendan Burns
a546a2979c Merge pull request #11726 from caesarxuchao/fix-types-link
Auto commit by PR queue bot
2015-07-28 13:24:11 -07:00
deads2k
2c06f11052 make kubelet prefer ipv4 address if available 2015-07-28 15:45:57 -04:00
Zach Loafman
4363f14e77 Enacting versioning.md
This PR changes how we version going forward in the following ways:

* mark-new-version.sh is changed to a new policy of just splitting
branches, rather than the old backmerge policy, as discussed in
vX.Y.0, and a tag for vX.(Y+1).0-alpha.0 back to master.

* I eliminated PRs back to master by making the version/base.go
gitVersion and gitCommit just be `export-subst`. I testing that this
works with GitHub's source export tarballs. There's no reason to
bother with forcing the version into `base.go` (especially twice). The
tarball versions outside a git tree aren't perfect (master looks like
"v0.0.0+hash", and the release branches look more accurate), but our
build contract has never allowed that version is perfect in this
situation, so I think we can relax this.

* That master tag gets picked up by "git describe" on master, so e.g.
master would have immediately become v1.1.0-alpha.0

* In order to be more semVer compatible, the gitVersion field for the
master branch now looks something like 1.1.0-alpha.0.6+84c76d1142ea4d.
This is a tiny translation of the "git describe". I did this because
there are a ton of consumers out there of the "gitVersion" field
expecting it to be the full version, but it would be nice if this
field were actually semver compliant. (1.1.0-alpha.0-6-84c76d1142ea4d
is, but it's not *usefully* so.)

Fixes #11495
2015-07-28 11:58:44 -07:00
Cesar Wong
a84fa79a01 Use versioned objects for GET and CONNECT operations 2015-07-28 13:43:23 -04:00
Justin Santa Barbara
edd21d1e7a Cleanup #11029 to use go autocast-after-type-switch
(thanks to brendandburns for the suggestion)
2015-07-28 12:10:31 -04:00
Wojciech Tyczynski
b69ef7b5ca Remove shell services test 2015-07-28 17:14:18 +02:00
Chi Vinh Le
d91932f0b7 SSH tunnels fallback to LegacyHostIP 2015-07-28 10:10:48 +02:00
Brendan Burns
64be76c14d Add support for Attach to the kubelet.
This is a pre-cursor to supporting 'kubectl attach ...' and 'kubectl run -it ...'
2015-07-27 21:48:55 -07:00
Dai Zuozhuo
949704af2c jsonpath template 2015-07-28 10:17:56 +08:00
Daniel Smith
c5bffaaf31 Merge pull request #11903 from mikedanese/renamers
rename StoreToControllerLister -> StoreToReplicationControllerLister
2015-07-27 17:33:05 -07:00
Muhammed Uluyol
ab83ad2e4b Update documentation for deep copy functions 2015-07-27 16:47:41 -07:00
Daniel Smith
226c950bda Merge pull request #11409 from pmorie/secrets-bc-type
Refactor secrets volume plugin to separate builder and cleaner types
2015-07-27 16:22:58 -07:00
Daniel Smith
8d5a6b063c Merge pull request #11029 from justinsb/fix_aws_security_group_races
AWS: Fix security group races
2015-07-27 16:15:43 -07:00
Daniel Smith
6c36f0dfa4 Merge pull request #11891 from a-robinson/lb
Add a resync period for services in the service controller
2015-07-27 16:15:03 -07:00
Daniel Smith
b1e6b87a5f Merge pull request #11829 from markturansky/validate_access_modes
Add validation for AccessModes
2015-07-27 16:14:38 -07:00
Mike Danese
d167fa27e0 rename StoreToControllerLister -> StoreToReplicationControllerLister to make room for more controllers 2015-07-27 16:13:47 -07:00
Daniel Smith
11899c3080 Merge pull request #11465 from pmorie/git-bc-type
Refactor git repo volume to separate builder and cleaner
2015-07-27 16:11:01 -07:00
Paul Morie
918925e09d Refactor git repo volume to separate builder and cleaner 2015-07-27 18:18:41 -04:00
Paul Morie
20ba173913 Refactor secrets volume plugin to separate builder and cleaner types 2015-07-27 18:13:39 -04:00
Daniel Smith
2bd53119b1 Merge pull request #10524 from bprashanth/delete_overlapping_error
Add clarity around overlapping controllers
2015-07-27 14:31:49 -07:00
Daniel Smith
3900272c1a Merge pull request #10813 from jlowdermilk/kubectl-e2e
`kubectl proxy` supports picking random unused port, add e2e test
2015-07-27 14:23:37 -07:00
Janet Kuo
0e42d0699a Add '-o name' to mutations 2015-07-27 14:06:53 -07:00
Alex Robinson
60611c253e Add a resync period for services in the service controller.
This should ensure all load balancers get deleted even if a reordering of
watch events causes us to strand one after its service has been deleted,
because the sync will notice that the service controller's cache has a
service in it that no longer exists in the apiserver.

It could still leak in the case that the controller manager is killed
between when it leaks something and the sync runs, but this should
improve things.
2015-07-27 18:03:13 +00:00
markturansky
e380242b16 Changed pdManager to ebsManager 2015-07-27 13:52:04 -04:00
markturansky
98ec116f3f Improved internal naming from 'pd' to 'ebs' to match the volume 2015-07-27 13:52:04 -04:00
deads2k
d73faa8272 expose common name validation methods 2015-07-27 13:12:28 -04:00
Daniel Smith
d63e35247f Merge pull request #11855 from davidopp/doc2
Fix link to node selector documentation.
2015-07-27 10:05:31 -07:00
markturansky
0a0af48e51 added validation for AccessModes 2015-07-27 13:02:16 -04:00
Jeff Lowdermilk
f71a662dc6 Make kubectl proxy support picking a random port 2015-07-27 09:56:33 -07:00
Marek Grabowski
177a06af61 Merge pull request #11859 from jiangyaoguo/new-builder-cleaner-for-rbd-volume
Refector rbd volume to seperate builder and cleaner
2015-07-27 14:12:44 +02:00
Marek Grabowski
7b9e2ac63b Merge pull request #11734 from thockin/cleanup-deprecated-rest-alias
Remove deprecated 'se' resource alias
2015-07-27 12:56:43 +02:00
Marek Grabowski
7cc1855c27 Merge pull request #11806 from wojtek-t/private_etcd_helper
Make EtcdHelper private - expose only StorageInterface
2015-07-27 11:21:28 +02:00
Marek Grabowski
00cd52dd68 Merge pull request #10656 from krousey/timeouts
Adding proper timeouts.
2015-07-27 10:56:58 +02:00
Wojciech Tyczynski
9d943df397 Private EtcdHelper 2015-07-27 09:20:13 +02:00
Justin Santa Barbara
23a190cd97 Fixes per review
Primarily go style issues; also a TODO that really exponential backoff
is the correct policy for API call retries.
2015-07-26 18:30:02 -04:00
Justin Santa Barbara
092d407a48 AWS: Fix race in security-group read/create
We need to find the ID for a named security group, or create a new one.

We do this by listing the security groups, and then doing a create if we
cannot find one.  This is a race though; against another thread if the
AWS API were consistent, but generally because the AWS API is actually
eventually consistent.

We wrap it in a retry loop.
2015-07-26 18:16:05 -04:00
Justin Santa Barbara
d7bace23ff AWS: Fix race-condition in tagging of security group
When we create a security-group in the AWS API, there is sometimes
a delay before we can tag it (the AWS API is eventually consistent).

So we wrap CreateTags in a simple retry loop.
2015-07-26 18:16:05 -04:00
jiangyaoguo
72e899e1b5 refector rbd volume to seperate builder and cleaner 2015-07-26 01:11:25 +08:00
David Oppenheimer
2236fee028 Fix link to node selector documentation. 2015-07-24 23:04:59 -07:00
Chao Xu
aa758e64f7 update the links in pkg/api/types.go 2015-07-24 18:08:05 -07:00
Chao Xu
cbeed829b7 update the links in v1/types.go 2015-07-24 18:08:05 -07:00
Mike Danese
eb3d6822d0 Merge pull request #10673 from stefwalter/proxy-split-hostport-without-port
kubectl: Handle splitting host:port when no port is present
2015-07-24 17:23:05 -07:00
Mike Danese
c0acfbcd4b Merge pull request #11421 from nikhiljindal/exposeServcPort
Updating kubectl expose to extract ports from the service being cloned
2015-07-24 17:16:31 -07:00
Mike Danese
cfe41dc061 Merge pull request #11729 from smarterclayton/make_exec_flexible
Exec should be easier to reuse as a command
2015-07-24 17:15:52 -07:00
Mike Danese
2c8f055ed8 Merge pull request #10631 from liggitt/service_account_describer
Fix service account describer
2015-07-24 15:24:24 -07:00
Mike Danese
fd4a4ba990 Merge pull request #11252 from nikhiljindal/verDocs
Stop allowing unnamespaced POST for namespaced objects
2015-07-24 15:23:56 -07:00
nikhiljindal
242910e57c kubectl expose should extract ports from service 2015-07-24 15:17:48 -07:00
Clayton Coleman
0b5410f30f Exec should be easier to reuse as a command
We have a few use cases where we want to have shortcut commands
for common behavior. In these cases, we want to default commands
with a simpler syntax, so being able to reuse Exec from code but
not share the same arguments is useful.

In this case, we're introducing 'rsh' which tries to run exec -itp --
bash.
2015-07-24 18:14:28 -04:00
Mike Danese
4c52257be3 Merge pull request #11571 from kargakis/handle-aliases-in-comma-sep-args
Handle aliases in comma-separated args
2015-07-24 13:08:28 -07:00
Mike Danese
39a7fc3706 Merge pull request #11552 from jiangyaoguo/new-builder-cleaner-for-gce-pd
Refactor gec-pd to seperate builder and cleaner
2015-07-24 12:18:21 -07:00
Prashanth Balasubramanian
f4fe40e2d1 Delete overlapping controllers, add clarity to docs 2015-07-24 12:13:26 -07:00
nikhiljindal
2f946b7aee Stop allowing unnamespaced POST for namespaced objects 2015-07-24 12:03:19 -07:00
Mike Danese
a4a48f5849 Merge pull request #11802 from jiangyaoguo/new-builder-cleaner-for-iscis
Refector iscsi volume to seperate builder and cleaner
2015-07-24 11:27:36 -07:00
Mike Danese
52282b1a36 Merge pull request #11300 from mwielgus/kubectl_replace_tempfile
Dump stdin to a temporary file in kubectl replace --force
2015-07-24 11:23:25 -07:00
Mike Danese
15fcb84e0d Merge pull request #10743 from hurf/get_help_fix
Fix hits in help strings of kubectl get command
2015-07-24 11:09:48 -07:00
Mike Danese
b51b4e740f Merge pull request #10639 from caseydavenport/master
Allow specification of a network plugins directory when starting kubelet
2015-07-24 11:09:11 -07:00
Mike Danese
859f440f74 Merge pull request #11666 from wojtek-t/refactor_etcd_helper
Extract EtcdHelper interface
2015-07-24 11:07:46 -07:00
Mike Danese
ae1c8e55ef Merge pull request #11737 from thockin/cleanup-remove-v1beta3
Remove v1beta3
2015-07-24 10:25:56 -07:00
Mike Danese
5c6f4f5906 Merge pull request #10024 from deads2k/name-reflectors
add originator to reflector logging
2015-07-24 10:23:34 -07:00
Mike Danese
8b990263e9 Merge pull request #11057 from liggitt/close_body
Close resp.Body before returning error
2015-07-24 09:57:23 -07:00
Mike Danese
18466bfc4f Merge pull request #10563 from rootfs/rbd-fencing
rbd mount fencing
2015-07-24 09:53:31 -07:00
Mike Danese
81b3329c82 Merge pull request #10753 from samsabed/envvars
Print env vars in kubectl describe pod
2015-07-24 09:52:51 -07:00
Mike Danese
d6796ecd38 Merge pull request #11333 from deads2k/passthrough-errors
pass along status errors for upgrades
2015-07-24 09:49:34 -07:00
Mike Danese
823e5d45c3 Merge pull request #10841 from liggitt/delete_all
Default --ignore-not-found to true for delete --all
2015-07-24 09:26:35 -07:00
Huamin Chen
fa8a2ef81d fencing off multiple rbd mount
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-07-24 11:49:32 -04:00
Mike Danese
fab2c80281 Merge pull request #10062 from ironcladlou/update-acceptor
Rolling updater configurability enhancements
2015-07-24 08:48:48 -07:00
Mike Danese
db179e4cf4 Merge pull request #10346 from jhadvig/comment_fix
Fix NewNotFound method name in comments
2015-07-24 08:08:57 -07:00
Mike Danese
816586bcef Merge pull request #10866 from jlowdermilk/kubectl-create-f
kubectl resource builder: don't check extension for single files
2015-07-24 08:03:43 -07:00
Mike Danese
7a60a7c264 Merge pull request #11773 from jayunit100/etc-comment
Update comments to remove etcd specificity and minion term
2015-07-24 08:00:21 -07:00
Jordan Liggitt
5893f1c5b6 Use self-signed cert as CA for local-up-cluster.sh 2015-07-24 07:16:07 -07:00
Dan Mace
d044208b38 Rolling updater enhancements
Add an UpdateAcceptor interface to the rolling updater which supports
injecting code to validate the first replica during scale-up. If the
replica is not accepted, the deployment fails. This facilitates canary
checking so that many broken replicas aren't rolled out during an update.

Make the rolling update scale amount configurable as a percent of the replica
count; a negative value changes the scale direction to down/up to support
in-place deployments.
2015-07-24 08:53:50 -04:00
Jerzy Szczepkowski
291acd1a09 Merge pull request #10708 from soltysh/notin_operator
Fixed notin operator in labels' selectors comments.
2015-07-24 12:28:33 +02:00
jiangyaoguo
ce52ae782d refector iscsi volume to seperate builder and cleaner 2015-07-24 16:55:56 +08:00
jiangyaoguo
27524d6b36 refector gec-pd to seperate builder and cleaner 2015-07-24 16:15:37 +08:00
Wojciech Tyczynski
98d598693b Order methods in EtcdHelper 2015-07-24 09:28:02 +02:00
Wojciech Tyczynski
fdb3f45077 Extract EtcdHelper interface 2015-07-24 09:28:02 +02:00
Sam Abed
2fe650dcee print env vars in kubectl describe pod
Signed-off-by: Sam Abed <samabed@gmail.com>
2015-07-24 14:31:17 +10:00
Vish Kannan
b4626a1635 Merge pull request #11303 from liggitt/token_ca
Add CA data to service account token secrets if missing or different
2015-07-23 18:10:35 -07:00
Jordan Liggitt
85fd52126d Default --ignore-not-found to true for delete --all 2015-07-23 18:08:15 -07:00
Vish Kannan
1a908a272e Merge pull request #11076 from nikhiljindal/apiError
Updating apiserver to not return 500 when a service without pods is proxied
2015-07-23 18:03:07 -07:00
Vish Kannan
0a715a72f1 Merge pull request #10464 from jiangyaoguo/reflector-in-proxy
replace Reflector in kube-proxy
2015-07-23 18:01:29 -07:00
Vish Kannan
3d1e40bca2 Merge pull request #11171 from markturansky/list_index_keys
Added ability to list index keys
2015-07-23 17:52:11 -07:00
Vish Kannan
2a5a6b99cb Merge pull request #10635 from smarterclayton/cloud_provider_should_err
Cloud provider should return an error
2015-07-23 17:50:45 -07:00
Prashanth B
90a2b7d91e Merge pull request #9413 from lavalamp/serviceFix
Don't allow services to get stuck on an intermediate bad state
2015-07-23 17:46:41 -07:00
Tim Hockin
1c3233a1d4 Remove v1beta3 2015-07-23 17:21:27 -07:00
Vish Kannan
7017f5dc85 Merge pull request #11759 from bprashanth/flushing_proxy
Periodically flush the reverse proxy
2015-07-23 17:09:03 -07:00
Vish Kannan
dba914268c Merge pull request #10901 from nikhiljindal/swagger-ui
Updating swagger-ui to the latest version
2015-07-23 17:06:59 -07:00
Vish Kannan
136d53466a Merge pull request #10892 from nikhiljindal/beta1
Removing references to pre v1beta3 apis in code
2015-07-23 17:05:43 -07:00
Daniel Smith
15d50f4211 Fix part of #9382 2015-07-23 15:48:45 -07:00
Prashanth Balasubramanian
8c27609382 Periodically flush the reverse proxy. 2015-07-23 15:41:58 -07:00
Vish Kannan
cc326c714b Merge pull request #11561 from saad-ali/issue11231
Fix GCE PD attach/detach issues
2015-07-23 14:53:45 -07:00
jayunit100
6ca376fd12 Update comments to remove etcd specificity and minion / list term. 2015-07-23 17:41:44 -04:00
saadali
234f3ed814 Make GCE PD attach block on pending detach. Retry on detach/attach errors. 2015-07-23 14:03:50 -07:00
Vish Kannan
d09d121b6c Merge pull request #11572 from jiangyaoguo/new-builder-cleaner-for-nfs
Refactor nfs volume to seperate builder and cleaner
2015-07-23 13:54:46 -07:00
Andy Goldstein
9e97e4d38b Deflake remote command execution test 2015-07-23 16:54:10 -04:00
Vish Kannan
94bed5a426 Merge pull request #11739 from jiangyaoguo/new-builder-cleaner-for-glusterfs
Refector glusterfs volume to seperate builder and cleaner
2015-07-23 13:17:22 -07:00
Tim Hockin
c4b707192d Remove deprecated 'se' resource alias 2015-07-23 12:04:01 -07:00
Casey D
aeb7dc6b30 Allow specification of network plugins directory when starting kubelet 2015-07-23 11:21:39 -07:00
Vish Kannan
ce62d35e20 Merge pull request #11735 from thockin/cleanup-volumes-legacy-mode
Remove volumes legacy mode
2015-07-23 10:53:44 -07:00
Jordan Liggitt
c0bbdeda22 Add CA data to service account tokens if missing or different 2015-07-23 10:46:13 -07:00
Jordan Liggitt
39a5e1b929 Close resp.Body before returning error 2015-07-23 10:45:55 -07:00
Vish Kannan
b9e974b2cf Merge pull request #11313 from thockin/rest-shortcut-for-ns
Add an 'ns' shortcut, tidy capital letters
2015-07-23 10:14:33 -07:00
Wojciech Tyczynski
bff2e01994 Merge pull request #11731 from smarterclayton/better_error
Update the error message to be idiomatic
2015-07-23 16:09:24 +02:00
markturansky
e5a4b75421 Added ability to get generated values of an index func 2015-07-23 10:00:04 -04:00
Wojciech Tyczynski
2a5dce1b1b Merge pull request #11112 from markturansky/label_fix
Added formatLabel to pvclaims
2015-07-23 15:33:31 +02:00
Marcin Wielgus
866bd7b4e5 Dump stdin to a temporary file in kubectl replace --force 2015-07-23 15:22:23 +02:00
Wojciech Tyczynski
6524cd5e2a Merge pull request #11562 from MikaelCluseau/master
realContainerGC reports warning when err is nil
2015-07-23 13:39:24 +02:00
Wojciech Tyczynski
4799d169bc Merge pull request #11705 from mikedanese/test-fix
fix unit test breakage by adding seed method to util/rand
2015-07-23 12:58:56 +02:00
Wojciech Tyczynski
6580464ff1 Merge pull request #11577 from wojtek-t/etcd_helper_interface
Prepare for extracting EtcdHelper interface
2015-07-23 10:33:33 +02:00
Wojciech Tyczynski
fbed3492bf Merge pull request #11553 from pkern/patch-1
pkg/client/doc.go: update example to make it compile
2015-07-23 10:01:32 +02:00
Wojciech Tyczynski
ee92aa3897 Prepare for extracting EtcdHelper interface 2015-07-23 09:37:39 +02:00
kargakis
4fcb4b7f8d Handle aliases in comma-separated args 2015-07-23 09:32:33 +02:00
jiangyaoguo
8bb0ae9f89 refector glusterfs volume to seperate builder and cleaner 2015-07-23 15:07:40 +08:00
Tim Hockin
6eda8f47df Remove volumes legacy mode 2015-07-22 21:53:35 -07:00
Clayton Coleman
f5d040ec31 Update the error message to be idiomatic
Trim trailing newline (since this is likely to show up in a CLI)
2015-07-22 22:38:24 -04:00
Vish Kannan
5f79267b97 Merge pull request #10484 from markturansky/vol_iscsi_export
Changed ISCSI plugin name from exported to private
2015-07-22 17:07:15 -07:00
Vish Kannan
2e3841efc5 Merge pull request #10485 from markturansky/volume_rbd_export
Changed RBD Volume plugin name from exported to private
2015-07-22 17:02:55 -07:00
Vish Kannan
4421b3dfdd Merge pull request #10821 from jimmidyson/gc-container-volumes
Fixes #10803: Delete Docker container volumes on GC
2015-07-22 16:02:03 -07:00
Mike Danese
fdb5cefae7 fix unit test breakage by adding seed method to util/rand 2015-07-22 15:01:51 -07:00
Mike Danese
a558edf036 Revert "Revert "Move rand string func to util for reuse""
This reverts commit acebe24bf3.
2015-07-22 15:01:28 -07:00
Paul Morie
1df80e3a6a Make copy_test.go failures easier to debug 2015-07-22 13:11:10 -04:00
Philipp Kern
fbbc49df30 pkg/client/doc.go: update example to make it compile
The client example does not compile (double pointer to config, missing
import, List() returning two values); fix it.
2015-07-20 23:27:08 +02:00
jiangyaoguo
612f68f820 reflector nfs volume to seperate builder and cleaner 2015-07-20 19:16:48 +08:00
jiangyaoguo
63560f385c refector host_path volume to seperate builder and cleaner 2015-07-20 17:23:04 +08:00
Mikaël Cluseau
aff10f57bb realContainerGC reports warning when err is nil 2015-07-20 14:11:52 +11:00
Alex Robinson
b0351ff266 Detect if UpdateTCPLoadBalancer left its GCE target pool in an incorrect state. 2015-07-17 19:01:21 +00:00
nikhiljindal
c849730116 Fixing the error message 2015-07-16 23:33:16 -07:00
Brian Grant
5540917094 Merge pull request #11366 from davidopp/doc1
Move docs/services-firewalls.md into docs/user-guide/ and make small
2015-07-16 22:48:13 -07:00
Brian Grant
cb58e8e43b Merge pull request #11350 from thockin/munge-check-kubectl-dash-f
Add munger to verify kubectl -f targets
2015-07-16 22:46:37 -07:00
Brian Grant
5978d50a3e Merge pull request #11397 from nikhiljindal/kubectlExpose
Updating kubectl expose to leave service port unnamed
2015-07-16 22:41:38 -07:00
nikhiljindal
496f30a92f Introduce a new service generator that leaves service port unnamed 2015-07-16 20:40:40 -07:00
Max Forbes
7a3891e5f8 Add ServiceAccount as an alias for ServiceAccountName 2015-07-16 15:48:49 -07:00
Tim Hockin
f7512d007b Add munger to verify kubectl -f targets, fix docs 2015-07-16 15:39:45 -07:00
David Oppenheimer
fd2c3695e3 Move docs/services-firewalls.md into docs/user-guide/ and make small
wording changes to api.md
2015-07-16 13:21:14 -07:00
nikhiljindal
1517b66001 Updating an error to apierror 2015-07-15 16:43:59 -07:00
Eric Tune
d7a0bb4020 Merge pull request #11258 from nikhiljindal/dupNickname
Add namespace to swagger nicknames to prevent duplicate nicknames
2015-07-15 16:42:59 -07:00
Eric Tune
ef0b68da52 Merge pull request #11250 from brendandburns/monitor
Add monitoring and healthz based on tunnel health.
2015-07-15 15:00:17 -07:00
Eric Tune
2e848ed707 Merge pull request #10585 from caesarxuchao/fix-alias
Add boundary check before accessing os.Args[1]
2015-07-15 15:00:09 -07:00
Alex Robinson
e943c47e68 Fix issue of comparing instance URLs with different project ID representations
in GCE target pools.
2015-07-15 21:24:45 +00:00
deads2k
98d6b454f3 pass along status errors for upgrades 2015-07-15 15:53:29 -04:00
Tim Hockin
30697aeef2 Add an 'ns' shortcut, tidy capital letters 2015-07-15 11:31:29 -07:00
Tim Hockin
fe89298c09 Fix load-balancer firewall messages 2015-07-14 21:07:46 -07:00
hurf
4f9c486308 Fix hits in help strings of kubectl get command
Removed duplicated 'nodes (no)', added 'secret' for resource type.
Use actual long resource name to avoid confusion.
2015-07-15 09:43:51 +08:00
Brendan Burns
25d3834b74 Add monitoring and healthz based on tunnel health. 2015-07-14 14:37:38 -07:00
nikhiljindal
dda71bdc7b Add namespace to nickname to prevent dup swagger nicknames 2015-07-14 13:41:13 -07:00
Eric Tune
0b597aaf66 Merge pull request #11239 from mikedanese/user-docs-move
Move user docs to docs/user-guide/
2015-07-14 12:40:23 -07:00
Mike Danese
2476d78ac2 point tests to new doc location 2015-07-14 12:23:16 -07:00
hurf
6dd8a1dfa4 Add a better help message for kubectl describe
When resource type isn't given in the command, print the possible
resource types. Also added the resource type description in help
strings.
2015-07-14 16:22:42 +08:00
Tim Hockin
2d8c9d6c5e Merge pull request #10913 from feihujiang/fixSmallNitsForPortForwardCommand
Fix small nits for kubectl port-forward command
2015-07-13 12:55:34 -07:00
Brendan Burns
7620041ed4 Fix a small typo. 2015-07-13 09:38:40 -07:00
Zach Loafman
ca21fca74a Fix TestRunExposeService
No longer emits "you will also need to explicitly open a firewall"
after #10974.

Fixes #11105
2015-07-13 06:48:58 -07:00
markturansky
4b601a80fe added formatLabel to pvclaims 2015-07-11 09:47:03 -04:00
Brendan Burns
9c84d0118f Revert "Versioning docs and examples for 1.0.0"
This reverts commit efe72fd580.
2015-07-10 21:03:27 -07:00
Brendan Burns
fcb7c8c15d Kubernetes version v1.0.0-dev 2015-07-10 21:02:31 -07:00
Brendan Burns
cd821444dc Kubernetes version v1.0.0 2015-07-10 21:01:34 -07:00
Brendan Burns
efe72fd580 Versioning docs and examples for 1.0.0 2015-07-10 21:00:33 -07:00
Rohit Jnagal
d61d272beb Merge pull request #10974 from brendandburns/lakesong
Automatically open a firewall when creating a GCE load balancer.
2015-07-10 19:21:06 -07:00
Zach Loafman
9aeb96c21e Merge pull request #11097 from zmerlynn/v0.21.2-merge-to-master
V0.21.2 merge to master
2015-07-10 19:16:33 -07:00
Zach Loafman
27449ab1f7 0.21.2 merge to master 2015-07-10 18:55:54 -07:00
Zach Loafman
196ed7dc5b Merge pull request #11084 from brendandburns/fix
add spec.host as a synonym for spec.nodeName in v1
2015-07-10 18:50:23 -07:00
Zach Loafman
6ea0c2b3b7 Fix gofmt from #11084
(cherry picked from commit 63c73a58a5)
2015-07-10 17:14:12 -07:00
Zach Loafman
c85f20021b Revert "Versioning docs and examples for 0.21.2"
This reverts commit baf92e62a0.
2015-07-10 17:06:22 -07:00
Zach Loafman
bc4e751093 Kubernetes version v0.21.2-dev 2015-07-10 17:06:22 -07:00
Zach Loafman
4e89f2e667 Kubernetes version v0.21.2 2015-07-10 17:06:22 -07:00
Zach Loafman
baf92e62a0 Versioning docs and examples for 0.21.2 2015-07-10 17:06:22 -07:00
Zach Loafman
63c73a58a5 Fix gofmt from #11084 2015-07-10 17:01:28 -07:00
Brendan Burns
a93d33d961 add spec.host as a synonym for spec.nodeName in v1 2015-07-10 15:51:35 -07:00
Brendan Burns
2f47b3ed11 add spec.host as a synonym for spec.nodeName in v1 2015-07-10 15:16:48 -07:00
Kris Rousey
1d033b9912 Adding proper timeouts. 2015-07-10 14:42:59 -07:00
Brendan Burns
a8f02e5472 Automatically open a firewall when creating a GCE load balancer. 2015-07-10 14:35:29 -07:00
Rohit Jnagal
b465f7a860 Merge pull request #11024 from a-robinson/throttle
Increase the rate limiting of GCE's token source
2015-07-10 12:22:34 -07:00
Rohit Jnagal
affba42a05 Merge pull request #10958 from cjcullen/racefix
Remove race in setting/reading kubelet.podCIDR
2015-07-10 10:09:44 -07:00
Rohit Jnagal
ebc11e11ad Merge pull request #9782 from andronat/9578_TestCreateCleanWithPrefix
TestCreateCleanWithPrefix was failing if env variables existed
2015-07-10 10:04:20 -07:00
deads2k
f203b16cd9 add originator to reflector logging 2015-07-10 11:34:49 -04:00
Stef Walter
3db0bfdf65 kubectl: Handle splitting host:port when no port is present
In the proxy filter, if listening on port 80 or 443 there will
be no port present in the Host: HTTP header. Just use the entire
thing in these cases, and don't reject requests when no port
is present in the Host: HTTP header.
2015-07-10 09:35:22 +02:00
Chao Xu
48679d21d2 add boundary check before access os.Args 2015-07-09 16:15:42 -07:00
Alex Robinson
b52c6f673e Increase the rate limiting of GCE's token source. The burst being at 3
means transient errors won't incur such long waits, but repeating
failures shouldn't be retrying every second.
2015-07-09 22:51:23 +00:00
Joe Beda
31de03c18a Fix up #10851 to be golang 1.3 compatible.
See also #11016
2015-07-09 14:53:57 -07:00
Joe Beda
0426ab3290 Update list of resources for 'kubectl get' help output. 2015-07-09 08:59:32 -07:00
Joe Beda
c15953662e Fix up alignment of columns w/ namespaces.
Fixes #10842

All issues for types that use "extra lines" for extended information.  Two issues fixed: (1) When namespaces are listed an extra column isn't inserted for extra lines and (2) trailing tabs aren't inserted when label columns are specified.

This code should probably move to a more explicit model of putting data into "cells".

The test for this hits https://github.com/golang/go/issues/6416 and so I introduced a "LineDelimiter" writer filter to make white space more visible.
2015-07-09 08:59:32 -07:00
Victor Marmol
edaa1a69e5 Merge pull request #10525 from nikhiljindal/delbeta3
Stop exposing v1beta3 by default
2015-07-09 08:38:32 -07:00
Zach Loafman
3910893d37 0.21.1 merge to master 2015-07-08 18:52:51 -07:00
Zach Loafman
9d2691d48b Kubernetes version v0.21.1-dev 2015-07-08 18:52:51 -07:00
Zach Loafman
906122a279 Kubernetes version v0.21.1 2015-07-08 18:52:51 -07:00
Victor Marmol
7bb9cdf660 Merge pull request #10830 from jimmidyson/gc-log-symlinks
Fixes #8945: Cleanup log symlinks on remove & dead log symlinks
2015-07-08 17:22:21 -07:00
Victor Marmol
f427b997ca Merge pull request #10889 from cjcullen/tokenMetrics
Add prometheus metrics for altTokenSource.
2015-07-08 16:13:38 -07:00
nikhiljindal
c465a50891 Stop exposing v1beta3 by default 2015-07-08 15:27:41 -07:00
CJ Cullen
da0bc5f690 Remove race in setting/reading kubelet.podCIDR 2015-07-08 14:58:14 -07:00
nikhiljindal
fc4da6844e removing references to pre v1beta3 apis 2015-07-08 13:51:43 -07:00
Janet Kuo
524e70d501 Make "age" of pod print example static 2015-07-08 11:26:13 -07:00
Victor Marmol
127fe8d4a5 Merge pull request #10854 from JanetKuo/swag-doc-url
Embed doc URLs in swagger document
2015-07-08 10:01:10 -07:00
Victor Marmol
d90cd98d7b Merge pull request #10894 from jlowdermilk/describe-docs
Update kubectl describe help to document prefix matching behavior
2015-07-08 09:59:57 -07:00
feihujiang
eca0ae08c5 Fix small nits for kubectl port-forward command 2015-07-08 15:53:53 +08:00
Jimmi Dyson
8e482462fb Fixes #8945: Cleanup log symlinks on remove & dead log symlinks 2015-07-08 08:43:59 +01:00
nikhiljindal
5c2cd0045a Updating swagger-ui to the latest version 2015-07-07 17:48:22 -07:00
Jeff Lowdermilk
229cbd472d Update kubectl describe help to document prefix matching behavior 2015-07-07 16:57:37 -07:00
CJ Cullen
53c9f324c2 Add prometheus metrics for altTokenSource. 2015-07-07 15:25:23 -07:00
Zach Loafman
75fb18a354 Revert "Versioning docs and examples for 0.21.0"
This reverts commit aa9d423e78.
2015-07-07 14:56:56 -07:00
Zach Loafman
708f3a9b55 Kubernetes version v0.21.0-dev 2015-07-07 14:56:55 -07:00
Zach Loafman
39b013a5d5 Kubernetes version v0.21.0 2015-07-07 14:56:55 -07:00
Zach Loafman
aa9d423e78 Versioning docs and examples for 0.21.0 2015-07-07 14:56:55 -07:00
Janet Kuo
9c3c23686f Embed doc URLs in swagger document 2015-07-07 14:23:52 -07:00
Jeff Lowdermilk
8d4167e7f6 kubectl resource builder: don't check extension for single files
`kubectl create -f filename` doesn't need to check the extension
of filename. This fixes that behavior.
2015-07-07 13:48:29 -07:00
Yu-Ju Hong
e29b76d46e Merge pull request #10849 from bgrant0607/bugfix1
Update UI redirect to kube-system.
2015-07-07 13:18:04 -07:00
Brian Grant
ee06479a66 Update UI redirect to kube-system. 2015-07-07 18:21:07 +00:00
Yu-Ju Hong
530bff315f Merge pull request #10719 from justinsb/aws_mountpoints
AWS: Some images require volume mounts on /dev/xvdX
2015-07-07 10:48:19 -07:00
Jimmi Dyson
159c3c87de Fixes #10803: Delete Docker container volumes on GC 2015-07-07 13:11:28 +01:00
MarkDv
ab40fca77c align example with code implementation 2015-07-07 02:05:15 -07:00
Yu-Ju Hong
d675cbfc71 Merge pull request #10690 from thockin/version-api-descriptions
Version API descriptions
2015-07-06 17:41:10 -07:00
Brendan Burns
988aa6fdf6 Move things into a 'kube-system' namespace. 2015-07-06 15:08:23 -07:00
Yu-Ju Hong
7b55cbb0bd Merge pull request #10569 from yifan-gu/authn
apiservier: avoid stacktracing when http.StatusUnauthorized.
2015-07-06 15:05:12 -07:00
Yu-Ju Hong
ad88cf9a99 Merge pull request #10557 from smarterclayton/override_auth
The bearer token client transport should not override Authorization
2015-07-06 15:04:45 -07:00
Yu-Ju Hong
a802ac29a9 Merge pull request #10625 from bcbroussard/table-updates
Update Web UI table formatting
2015-07-06 12:56:55 -07:00
Yu-Ju Hong
b9cc548799 Merge pull request #10763 from bprashanth/timer_leak
Don't leak tickers during an exec probe
2015-07-06 11:59:24 -07:00
Yu-Ju Hong
97baadab46 Merge pull request #10711 from eparis/self-sign-cert-san
Do not create subject alt dns names for kubelet self signed certs
2015-07-06 11:40:34 -07:00
Yu-Ju Hong
4d86127098 Merge pull request #10644 from erictune/noslash
NAMESPACE in own column: kubectl --all-namespaces
2015-07-06 11:40:02 -07:00
Yu-Ju Hong
736b3cb050 Merge pull request #10181 from swagiaal/aws-ebs-name
Use instance availability zone for AWS EBS
2015-07-06 11:39:33 -07:00
Yu-Ju Hong
04018f9ca2 Merge pull request #10619 from andronat/rename_REASON
Rename REASON column to STATUS for kubectl get
2015-07-06 11:39:16 -07:00
Yu-Ju Hong
b58e7c8c2d Merge pull request #10655 from dchen1107/cadvisor
Set minimal shares for containers with no cpu specified
2015-07-06 11:38:54 -07:00
Yu-Ju Hong
d5ae8192fc Merge pull request #10654 from nikhiljindal/getToPostClient
Updating kubectl to use POST instead of GET for port-forward and exec
2015-07-06 10:54:27 -07:00
Yu-Ju Hong
9b9fd43973 Merge pull request #10717 from justinsb/aws_instance_not_found
AWS: Return InstanceNotFound from ExternalID when not found
2015-07-06 09:59:38 -07:00
Yu-Ju Hong
056ed89706 Merge pull request #10665 from thockin/ep-shortcut
Add 'ep' as a shortcut for 'endpoints'
2015-07-06 09:55:06 -07:00
Prashanth Balasubramanian
33e2f7cb8b Don't leak tickers in the exec probe 2015-07-05 17:52:52 -07:00
Eric Paris
cde68d294b Do not create subject alt dns names for kubelet self signed certs
PR #10643 Started adding the dns names for the kubernetes master to self
sign certs which were created. The kubelet uses this same code, and thus
the kubelet cert started saying it was valid for these name as well.
While hardless, the kubelet cert shouldn't claim to be these things. So
make the caller explicitly list both their ip and dns subject alt names.
2015-07-04 23:01:01 -04:00
Tim Hockin
3caf3ccad2 make API descriptions use releases.k8s.io 2015-07-04 13:32:22 -07:00
Justin Santa Barbara
f33df03d50 AWS: Some images require volume mounts on /dev/xvdX
It seems impossible to determine from outside.  Thankfully we're running
the attachment from inside the instance, so can check for /dev/sdX or
/dev/xvdX.

More modern images seem to be moving to /dev/xvdX
2015-07-04 10:45:06 -04:00
Justin Santa Barbara
591a113406 AWS: Return InstanceNotFound from ExternalID when not found
Despite finding and documenting the importance of this, I was still doing it
wrong!
2015-07-04 10:41:38 -04:00
Justin Santa Barbara
fca7822800 Misc (non-code) spelling fixes 2015-07-04 10:39:37 -04:00
Maciej Szulik
a11911d20d Fixed notin operator in labels' selectors comments. 2015-07-03 17:33:46 +02:00
Eric Tune
88fa471d06 NAMESPACE in own column: kubectl --all-namespaces 2015-07-02 22:23:52 -07:00
Justin Santa Barbara
5ae7c13ad3 AWS: Use private dns name for node name again
This is a partial reversion of #9728, and should fix #10612.

9728 used the AWS instance id as the node name.  But proxy, logs
and exec all used the node name as the host name for contacting the minion.

It is possible to resolve a host to the IP, and this fixes logs.  But
exec and proxy also require an SSL certificate match on the hostname,
and this is harder to fix.

So the sensible fix seems to be a minimal reversion of the changes in #9728,
and we can revisit this post 1.0.
2015-07-03 01:23:51 -04:00
Nikhil Jindal
91fc591e5e Merge pull request #10598 from feihujiang/nameInsteadOfID
Using NAME to replace ID in help string
2015-07-02 15:26:24 -07:00
Nikhil Jindal
05ce0472e9 Merge pull request #10643 from eparis/self-sign-cert-san
Add Subject Alt Names to self signed apiserver certs
2015-07-02 12:21:22 -07:00
Nikhil Jindal
09a57fadfb Merge pull request #10532 from feihujiang/outputErrorWhenUsingDescribeForNonexist
Output error when using kubectl describe for a nonexisting resource
2015-07-02 11:07:19 -07:00
Dawn Chen
9ce11545c0 Explicitly configure master component containers and nginx with 200m each. 2015-07-02 10:46:39 -07:00
Nikhil Jindal
204b90e697 Merge pull request #10593 from lavalamp/kubeletRegister
Fix node not rejoining cluster on reboot
2015-07-02 10:39:17 -07:00
BC Broussard
288c1df4e4 Update Web UI tables
- Condense table styling
- Default table size to 50
- Make all columns sortable
- Rename service portalIP to clusterIP
- Allow default descending table ordering
2015-07-02 08:43:37 -07:00
jhadvig
7df1d33204 Fix NewNotFound method name in comments 2015-07-02 12:41:12 +02:00
Wojciech Tyczynski
ef41ceb3e4 Merge pull request #10646 from yujuhong/reduce_noise
Kubelet: stop logging "Error on reading termination-log..." messages
2015-07-02 09:32:27 +02:00
Wojciech Tyczynski
2f4574167d Merge pull request #10561 from smarterclayton/make_empty_public
Make util.empty public for conversions
2015-07-02 09:31:25 +02:00
Tim Hockin
3c2359384c Add 'ep' as a shortcut for 'endpoints' 2015-07-01 23:02:46 -07:00
Dawn Chen
4b85e02504 Set minimal shares for containers with no cpu specified 2015-07-01 21:17:07 -07:00
Zach Loafman
5dbe90f0ba Merge pull request #10493 from krousey/namespace
Unify command line namespace resolution
2015-07-01 19:33:44 -07:00
nikhiljindal
b38d8b18a5 Updating kubectl to use POST instead of GET 2015-07-01 17:07:24 -07:00
Zach Loafman
700a6441de Merge pull request #10313 from yujuhong/kubelet_delete
Add an e2e test to verify that pods are deleted on nodes
2015-07-01 16:47:30 -07:00
Eric Tune
21bbde46d4 Error: kubectl --all-namespaces get {node|ev|cs}
Report an error if someone asks for --all-namespaces
when getting a thing that is not namespaced.

This is in preparation for a subsequent commit which prints namespace
as its own column.

Restructured test to expect an error for non-namespaced things.
Dropped the part where it was trying to test that not printing
namespace didn't contain namespace.  Some other test can cover that.
2015-07-01 16:35:55 -07:00
Zach Loafman
b60c8e567f Merge pull request #10077 from timstclair/ui-server
Move dashboard UI out of the apiserver to a separate pod
2015-07-01 15:56:33 -07:00
Zach Loafman
e5670c104d Merge pull request #10604 from nikhiljindal/v1
Updating scripts to use v1 instead of v1beta3
2015-07-01 15:54:17 -07:00