Commit Graph

1915 Commits

Author SHA1 Message Date
Clayton Coleman
64c7348a19 Expand api ResourceVersioner test 2014-09-02 09:52:37 -04:00
Carlos Sanchez
588a428175 [GCE] detect-master and detect-minions api calls should specify the zone
Otherwise KUBE_MASTER_IP and KUBE_MINION_IP_ADDRESSES may contain 'external-ip'

    $ detect-master
    Using master: kubernetes-master (external IP: external-ip)'
2014-09-02 13:47:26 +02:00
Vojtech Vitek (V-Teq)
42c656501c Add several missing pkg Godoc files
Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
2014-09-02 13:41:11 +02:00
Vojtech Vitek (V-Teq)
59f58cd043 Unify Godoc formatting, fix various typos
Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
2014-09-02 13:41:03 +02:00
Tim Hockin
7b44f88c2b Merge pull request #1127 from ddysher/pod-list
Fix pod status error with List method.
2014-09-01 21:29:48 -07:00
Tim Hockin
a762fb855a Merge pull request #617 from johnwilkes/master
Add initial resources.md for discussion
2014-09-01 20:37:08 -07:00
Tim Hockin
7c67de2f25 Merge pull request #1126 from 7oku/master
Fixed annoying typo
2014-09-01 20:14:27 -07:00
john wilkes
783836de87 Initial version of a resource model.
Tweaks to reflect comments from thockin
2014-09-01 19:48:00 -07:00
Deyuan Deng
d528949547 Fix pod status error with List method. 2014-09-01 21:23:50 -04:00
7oku
28eb96f2aa Fixed anoying typo
Anoying typo fixed
2014-09-01 11:40:07 +02:00
keisuke oohashi
2d1149061f Fix a wrong explaining text about running command to create replication controller. 2014-09-01 13:24:38 +09:00
Filipe Brandenburger
1d8067450c Rename pkg/version/flag to pkg/version/verflag
This avoids some conflict with the built-in `flag` module in Go. The
module was already being renamed to `verflag` on import anyways, so we
might as well just call it that.

Tested:
- hack/build-go.sh and ran the resulting binaries with -version args.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-29 23:19:32 -07:00
Filipe Brandenburger
2421c738a6 Add support for -version=raw to print the Go version.Info
This can be helpful to print the internal fields of the version
information that will contain more details about the git tree than the
short -version output will.

Tested:
- Tested getting the raw version:
  $ _output/go/bin/kubecfg -version=raw
  version.Info{Major:"0", Minor:"1+", GitVersion:"v2.2.1-33-gdc4becd9765393", GitCommit:"dc4becd9765393fa05a3eb06f6af9e00068fe0c5", GitTreeState:"dirty"}

- Tested getting the simple version:
  $ _output/go/bin/kubecfg -version
  Kubernetes version 0.1+, build dc4becd976

- Tested getting the help output:
  $ _output/go/bin/kubecfg 2>&1 | grep -- -version
    -version=false: Print version information and quit

- Made sure -version=true and -version=false works, that -version with
  an invalid argument works as expected (prints usage help) and that
  -version followed by space will not try to use the next word as its
  argument (i.e. `-version raw` prints the version but not the raw one.)

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-29 23:15:24 -07:00
Filipe Brandenburger
54b2ed0078 Suppress non-error output of systemctl enable
The `systemctl enable` command ordinarily prints the `ln` command used
to enable the unit to stderr, but that's not ideal in the vagrant setup
because it gets printed in red, which should be reserved for errors, but
it's not a real error.

Set an environment variable to raise the log level to prevent `info`
messages from being printed to stderr (as they are not actually errors.)

I looked into the `systemctl` calls happening from the Salt setup script
to understand why they were not going to stderr, and it turns out the
Salt script will redirect all messages to stdout so they will all be
green regardless...

Tested:
- Started a fresh Vagrant cluster, confirmed no red messages in output
  when creating the cluster successfully. Successfully started nginx
  through Kubernetes using cluster/kubecfg.sh.
- Confirmed that the salt-api service was up after `vagrant up`:
  $ vagrant ssh master -c 'systemctl status salt-api.service'
  salt-api.service - The Salt API
     Loaded: loaded (/usr/lib/systemd/system/salt-api.service; enabled)
     Active: active (running) since Fri 2014-08-29 23:19:47 UTC; 11min ago
   Main PID: 2090 (salt-api)
     CGroup: /system.slice/salt-api.service
             +-2090 /usr/bin/python /usr/bin/salt-api
             +-2110 /usr/bin/python /usr/bin/salt-api

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-29 16:44:05 -07:00
Joe Beda
dc4becd976 Merge pull request #1093 from thockin/Makefile2
Add a Makefile
2014-08-29 15:03:54 -07:00
Joe Beda
2d8e160775 Merge pull request #1117 from lavalamp/fixApi
Invert api and api/v1beta1 dependencies
2014-08-29 14:59:15 -07:00
Tim Hockin
51fd21c9e7 Add a Makefile
This is a very simple Makefile that just passes through to the current hack/*
scripts.  Only "make", "make test", and "make clean" are supported for now.
2014-08-29 14:56:27 -07:00
Daniel Smith
54412b35da Merge pull request #1119 from jbeda/rename_output
Make `godep go build ./...` work
2014-08-29 14:49:15 -07:00
Joe Beda
90a9cb3aa1 Only build pause.go under linux.
This makes `godep go build ./...` work.
2014-08-29 14:44:59 -07:00
Joe Beda
ed500cfacb Remove dead code now that we are using godep. 2014-08-29 14:44:59 -07:00
Joe Beda
843ae1fbe2 Rename output/ directory to _output/
go build ./... will ignore any directory starting with an underscore.
2014-08-29 14:44:55 -07:00
bgrant0607
9073d9b163 Merge pull request #1106 from smarterclayton/describe_ecosystem_projects
Describe some ecosystem projects around Kube
2014-08-29 13:47:48 -07:00
Daniel Smith
9928c40ea6 Merge pull request #1099 from smarterclayton/return_resource_version_on_list
Add the resource version to api.*List items from etcd
2014-08-29 13:41:46 -07:00
Daniel Smith
aa9b9b9fa8 Invert api and api/v1beta1 dependencies
This is some cleanup that has been needed for a while.
There's still one more step that could usefully be done, which is to
split up our api package into the part that provides the helper
functions and the part that provides the internal types. That can come
later.

The v1beta1 package is now a good example of what an api plugin should
do to version its types.
2014-08-29 12:15:30 -07:00
Joe Beda
d13e59c8d9 Merge pull request #1113 from filbranden/vagrant_salt_master3
Remove workaround for salt-minion startup in vagrant/provision-minion.sh
2014-08-29 09:08:38 -07:00
Filipe Brandenburger
c5520dd39d Remove workaround for salt-minion startup in vagrant/provision-minion.sh
The workaround was not needed, as salt-minion was always correctly
started in the Vagrant minion setup.

The issue reported in #270 was clearly specific do System V style init
scripts and will not affect systemd.

Also remove the inaccurate comment from provision-master.sh, since -X
was not even really in use there.

Tested:
- Performed 3 full `vagrant up` and `vagrant destroy -f` cycles with at
  least 3 minions and up to 6 minions in one case. Checked that
  salt-minion was up in each of the minions using a `systemctl status
  salt-minion` command.
- Started nginx on the cluster using cluster/kubecfg.sh, confirmed it
  was up with `list /pods` and confirmed it was reachable using wget on
  port 8080 of the minions.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-29 08:50:10 -07:00
Clayton Coleman
821f9bd5e7 Merge pull request #1102 from lavalamp/fixApi
Fix incorrect tag in MinionList
2014-08-29 10:54:15 -04:00
Clayton Coleman
ab0d88667c Merge pull request #1104 from lavalamp/fix
Fix flaky scheduler factory test.
2014-08-29 09:18:19 -04:00
Filipe Brandenburger
9d6bbb7a64 Merge pull request #1108 from thockin/build_cleanups
Build tweaks
2014-08-28 23:31:55 -07:00
Tim Hockin
f0c3896281 Build tweaks
Wrap long lines.
Add GOFLAGS support to build and test.
Comments.
2014-08-28 22:56:00 -07:00
Clayton Coleman
6c43c8f935 Describe some ecosystem projects around Kube 2014-08-28 23:38:58 -04:00
Daniel Smith
dd862a7c53 Fix flaky scheduler factory test. 2014-08-28 20:32:20 -07:00
Clayton Coleman
bafc422ac0 Add the resource version to api.*List items from etcd
Allows clients to watch more easily (can invoke Get, then
Watch).
2014-08-28 23:17:00 -04:00
Daniel Smith
a2b03ea93b Fix incorrect tag in MinionList 2014-08-28 20:06:17 -07:00
Daniel Smith
c380dd0426 Merge pull request #1100 from ddysher/local-start-scheduler
Start scheduler locally.
2014-08-28 19:42:34 -07:00
Deyuan Deng
c63205b0a7 Add quotes for variable; change shell redirection. 2014-08-28 22:31:53 -04:00
Deyuan Deng
9fed990da6 Start scheduler locally. 2014-08-28 20:48:36 -04:00
Daniel Smith
e30d229a34 Merge pull request #1097 from bcwaldon/remove-code
Remove unnecessary parameter from NewRegistry
2014-08-28 17:37:05 -07:00
bgrant0607
892459ce27 Merge pull request #1084 from thockin/roadmap
Roadmap Updates
2014-08-28 17:31:56 -07:00
Daniel Smith
93818a9ce0 Merge pull request #1095 from dchen1107/cleanup
Fixed kubelet /healthz by using healthz package
2014-08-28 17:25:56 -07:00
Joe Beda
788b23cb5c Merge pull request #1096 from jbeda/fix-jinja-map
Make salt configs work with Jinja 2.6.
2014-08-28 17:05:43 -07:00
Joe Beda
2ac0770694 Make salt configs work with Jinja 2.6.
Fixes #1089
2014-08-28 16:54:14 -07:00
Brian Waldon
816c4a3c76 Remove unnecessary parameter from NewRegistry 2014-08-28 16:52:45 -07:00
Dawn Chen
223fb6e610 Fixed kubelet /healthz by using healthz package
Fixed #1094
2014-08-28 15:34:39 -07:00
Daniel Smith
3c49aa96fe Merge pull request #1026 from lavalamp/redirect
Add simple service redirection
2014-08-28 14:54:10 -07:00
Tim Hockin
ee2df8683c Update roadmap
We took a hard look at 1.0 and what things ae really REQUIRED to get to a
stable release that is "useful".  This required moving some things we thought
were really important but not CRITICAL down the list.

For now they are stricken from this doc, but I expect this doc to start
growing a "post 1.0" list soon.

Things stricken and why:

Using the host network: This is primarily a performance optimization, but it
causes potential problems with other uses of HostPorts.  We'd rather focus on
fixing perf problems than dodging them.  We can revisit later if there is a
strong case for it.

Representation of Ports in the Manifest structure: We discussed and decided
that, since HostPort semantics have changed, this matters less than before.

Scenarios where IP-per-pod is hard or impossible: We're still game to help
people figure out how to make it work, but we don't see a case for making k8s
1.0 work in a fundamentally different mode.  Too much churn and risk.  We can
revisit later, if needed.

Auto-scaling controller: We really want this, but it's not critical to making
k8s "useful".

Pluggable authentication: Overlaps with the other identity topic.  Having one
topic seems clearer.

Pod spreading: We still want this, but it's not critical for 1.0.

Container status snippets: We still want this, but it's not critical for 1.0.

Docker-daemon-kills-all-children-on-exit problem: This is still a big problem,
but we're not going to gate our 1.0 on something we don't control.  This has
to be documented as a shortcoming in general.

Interconnection of services: expand / decompose the service pattern: overlaps
with the other services topic.

Recipes for settings where networking is not like GCE: This is happening in
the form of cloudprovider modules, but is not going to gate 1.0.
2014-08-28 12:42:22 -07:00
Daniel Smith
27a18684bf Merge pull request #1074 from smarterclayton/validate_client_input
Client should validate the incoming host value
2014-08-28 10:56:58 -07:00
Clayton Coleman
818f357128 Client should validate the incoming host value
Convert host:port and URLs passed to client.New() into the proper
values, and return an error if the value is invalid.  Change CLI
to return an error if -master is invalid.  Remove Client.rawRequest
which was not in use, and fix the involved tests. Add NewOrDie

Preserves the behavior of the client to not auth when a non-https
URL is passed (although in the future this should be corrected).
2014-08-28 13:47:36 -04:00
Joe Beda
fa17697194 Merge pull request #1072 from davidreynolds/master
s/install/get
2014-08-28 10:42:47 -07:00
Daniel Smith
e2895c3bd8 Merge pull request #1055 from brendandburns/flake
Add the ability to multiple test iterations without rebuilding.
2014-08-28 10:31:44 -07:00