Commit Graph

1893 Commits (ee1c0838d8ab19830a89d422c30ebb2fce9c2b6e)

Author SHA1 Message Date
Clayton Coleman 42eea82461 Merge pull request #1137 from derekwaynecarr/name_vs_id_fixup
Fixup name vs ID terminology
2014-09-03 10:55:04 -04:00
derekwaynecarr ca3f5a9f46 Fixup name vs ID terminology 2014-09-03 10:27:33 -04:00
Joe Beda cbedf9f470 Merge pull request #1120 from doublerr/rackspace/fix_salt_apiserver
Rackspace: fix apiserver salt config
2014-09-02 21:31:05 -07:00
brendandburns 130bd408f7 Merge pull request #1124 from soundTricker/master
Fix a wrong explaining text about running command to create replication controllers.
2014-09-02 21:07:06 -07:00
Joe Beda 1210018b6e Merge pull request #1122 from filbranden/version_major_minor1
Push major and minor versions from git
2014-09-02 21:01:42 -07:00
Ryan Richard 58b9b2fb88 switch kubelets to connect to etcd on cloud network
Previously we were connecting across the public interfaces. This will connect across eth2 and send communication over a private network.
2014-09-02 19:05:57 -05:00
Ryan Richard 0fed66a667 add sanity checking steps and fix KUBE_MASTER_IP 2014-09-02 19:05:56 -05:00
Ryan Richard 0b50244c72 workaround lack of jinja2.7 support 2014-09-02 19:05:56 -05:00
Filipe Brandenburger b94749ec70 Set gitMajor and gitMinor from hack/build-go.sh
Set the values of major and minor version based on the output of the
`git describe` command, which uses annotated tags as source of
versioning information.

Minor will get a "+" appended whenever the annotated tag does not match
the tree exactly (including when the tree is dirty.) So that only
official releases will have a "bare" minor version, all others will have
a "+" to indicate the binaries contain changes from the released version
in minor.

(This is similar to how versions of development builds of the Linux
kernel work.)

Tested:
- With no annotated tags:
  $ hack/build-go.sh
  $ _output/go/bin/kubecfg -version=raw
  version.Info{Major:"0", Minor:"1+", GitVersion:"v0.1+", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"clean"}

- Tagging current version on a clean git tree:
  $ git tag -a -m 'Test tag v2.3' v2.3
  $ hack/build-go.sh
  $ _output/go/bin/kubecfg -version=raw
  version.Info{Major:"2", Minor:"3", GitVersion:"v2.3", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"clean"}

- Tagging current version on a dirty git tree:
  $ git tag -a -m 'Test tag v2.3' v2.3
  $ touch test.txt  # this is enough to mark the tree as dirty
  $ hack/build-go.sh
  $ _output/go/bin/kubecfg -version=raw
  version.Info{Major:"2", Minor:"3+", GitVersion:"v2.3-dirty", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"dirty"}

- Tagging a previous version on a clean tree:
  $ git tag -a -m 'Test tag v2.3' v2.3 HEAD~5
  $ hack/build-go.sh
  $ _output/go/bin/kubecfg -version=raw
  version.Info{Major:"2", Minor:"3+", GitVersion:"v2.3-6-g7d29873bdee87e", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"clean"}

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-02 16:23:31 -07:00
Filipe Brandenburger 8cd7387cc0 Include `-dirty` suffix in version info when building on a dirty tree
Ensure the output of `git describe` will include the `-dirty` suffix
when building on a tree with modified files in it.

Tested:
- ...

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-02 16:23:31 -07:00
Daniel Smith 0b4581e98d Merge pull request #1112 from filbranden/vagrant_salt_master2
Redirect output of `systemctl enable` to stdout
2014-09-02 16:20:52 -07:00
Tim Hockin d68a0ec383 Merge pull request #1041 from brendandburns/api
Add types for lifecycle events.
2014-09-02 15:20:45 -07:00
Brendan Burns dd9ecf5b79 Add types for lifecycle events. 2014-09-02 15:14:13 -07:00
brendandburns 25fdade6fa Merge pull request #1134 from thockin/race
try to fix data race
2014-09-02 14:07:15 -07:00
Daniel Smith d20264351b Merge pull request #1077 from brendandburns/service
Step #1 in migrating the service controller away from the apiserver.
2014-09-02 14:03:52 -07:00
Tim Hockin 8ad98db773 Merge pull request #1121 from filbranden/rawversion2
Add support for -version=raw
2014-09-02 13:53:13 -07:00
Tim Hockin 6a624a2b4f try to fix data race 2014-09-02 13:51:15 -07:00
Tim Hockin 0b67934123 Merge pull request #1140 from GoogleCloudPlatform/revert-1126-master
Revert "Fixed annoying typo"
2014-09-02 13:18:30 -07:00
Tim Hockin a711770e19 Revert "Fixed annoying typo" 2014-09-02 13:18:13 -07:00
Daniel Smith 597099af18 Merge pull request #1125 from lavalamp/fixApi
pkg/api: Separation of concerns
2014-09-02 11:47:31 -07:00
Daniel Smith 3354cfb6d5 Disable running travis at tip, it's finding a bunch of races that don't seem to be our fault 2014-09-02 11:34:54 -07:00
Daniel Smith a63966e73c Combine pkg/apitools and pkg/api/common and call the result pkg/runtime 2014-09-02 11:15:44 -07:00
Daniel Smith 099c8fd36f Propagate rename; tests pass again. 2014-09-02 10:42:06 -07:00
Daniel Smith 7615c00a9a Make validation work when not in the api package. 2014-09-02 10:42:06 -07:00
Daniel Smith eb5ca80946 Split helper test, move fuzzing to api package as serialization_test.go 2014-09-02 10:40:52 -07:00
Daniel Smith 6121e61f99 Split api into api, api/common, api/validation & apitools 2014-09-02 10:40:52 -07:00
Brendan Burns fee2b90608 Step #1 in migrating the service controller away from the apiserver.
Start using the API server for listing services.
2014-09-02 10:25:04 -07:00
Tim Hockin 5bed06f614 Merge pull request #1129 from VojtechVitek/godoc
Godoc improvements
2014-09-02 09:45:05 -07:00
Tim Hockin bd45c33d15 Merge pull request #1131 from smarterclayton/add_versioner_test
Expand api ResourceVersioner test
2014-09-02 09:36:48 -07:00
Clayton Coleman 64c7348a19 Expand api ResourceVersioner test 2014-09-02 09:52:37 -04: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