Commit Graph

2094 Commits (10f68902f69f0f2b68d2aea4a5ddd008bc3cb5f6)

Author SHA1 Message Date
Dawn Chen 80fa392f6b Small clean up in validation. errs is used as import path alias in validation.go, but it is reused
as a variable for validateVolume.
2014-09-09 16:08:21 -07:00
Joe Beda ed5bfa2f0f Match shell style guide.
Looking at https://google-styleguide.googlecode.com/svn/trunk/shell.xml
2014-09-09 16:04:41 -07:00
Joe Beda 70b026bd8d Merge pull request #1247 from filbranden/version_dev
Update version to use -dev suffix
2014-09-09 15:57:22 -07:00
Joe Beda 0333b97c56 Merge pull request #1245 from filbranden/server_version1
Uniformize handling of -server_version flag of kubecfg to match -version
2014-09-09 15:47:33 -07:00
Filipe Brandenburger 61877f2dd0 Update version to use -dev suffix
According to the plan listed in docs/releasing.md.

The gitMinor will keep using a "+" suffix instead for now.

Added a //TODO to deprecate gitMajor and gitMinor in a follow up.

Tested:
- Built it from the git tree:

    $ make
    $ _output/go/bin/kubecfg -version
    Kubernetes version 0.2+, build 8d31eb03c11d4db64ae26809eef7f73070efd811
    $ _output/go/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-29-g8d31eb03c11d4d", GitCommit:"8d31eb03c11d4db64ae26809eef7f73070efd811", GitTreeState:"clean"}

- Built it with a direct `go install` (same as tarball):

    $ GOPATH=${PWD}/_output/go:${PWD}/Godeps/_workspace go install $KUBE_GO_PACKAGE/cmd/kubecfg
    $ _output/go/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-dev", GitCommit:"", GitTreeState:"not a git tree"}
    $ _output/go/bin/kubecfg -version
    Kubernetes version 0.2+, build (unknown)

A follow up commit will address the output of the -version (without "raw") command to use gitVersion instead of Major + Minor.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 15:46:20 -07:00
Filipe Brandenburger b849d65b32 Uniformize handling of -server_version flag of kubecfg to match -version.
In particular, add support for -server_version=raw and use matching
format for the output of -version and -server_version.

The "normal" format is essentially defined by (version.Info) String()
method, so future updates to that method will be reflected on both.

Full version information is still available by using the "raw" flag.

Tested:
- Used cluster/kubecfg.sh to query local build and the server.

    $ cluster/kubecfg.sh -version
    Kubernetes version 0.2+, build 9316edfc0d2b28923fbb6eafa38458350859f926
    $ cluster/kubecfg.sh -server_version
    Server: Kubernetes version 0.2, build a0abb38157
    $ cluster/kubecfg.sh -version=raw
    version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-25-g9316edfc0d2b28", GitCommit:"9316edfc0d2b28923fbb6eafa38458350859f926", GitTreeState:"clean"}
    $ cluster/kubecfg.sh -server_version=raw
    version.Info{Major:"0", Minor:"2", GitVersion:"v0.2", GitCommit:"a0abb3815755d6a77eed2d07bb0aa7d255e4e769", GitTreeState:"clean"}

Fixes: #1092

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 15:25:41 -07:00
Brendan Burns 4ba4762827 Insert the current state of a replica controller. 2014-09-09 15:23:34 -07:00
Joe Beda ffcfdd0e2d Merge pull request #1237 from filbranden/release_docs
Document Kubernetes Release Process
2014-09-09 15:22:16 -07:00
derekwaynecarr 35a50a94da Add support to fetch config file from network 2014-09-09 17:50:38 -04:00
Jessica Forrester d82cf7dd48 Rebased and fixed test cases 2014-09-09 17:50:18 -04:00
Jessica Forrester 0cac1c5f79 Switch LogOf from panicking when logger is missing to creating logger with the defaults.
Update CORS tests to a table-based test and cover more cases.
2014-09-09 17:50:18 -04:00
Jessica Forrester becf6ca4e7 Move RecoverPanics to be the top level wrapped handler. Add new method to be sure a logger has been generated instead of assuming one has. Move regexp list compilation into a utility and pass regexp list into CORS. 2014-09-09 17:50:18 -04:00
Jessica Forrester 8b4ca9c2a7 Move CORS handler wrapping into cmd/apiserver and switch config flag to a list of allowed origins 2014-09-09 17:50:18 -04:00
Jessica Forrester 8723eece49 Add option to enable a simple CORS implementation for the api server 2014-09-09 17:50:18 -04:00
Tim Hockin 4ff76add57 Merge pull request #1147 from dchen1107/restart
Introduce the simplest RestartPolicy and handling.
2014-09-09 14:44:42 -07:00
Daniel Smith a4e3a4e351 Merge pull request #1240 from brendandburns/http
Don't stack trace on 301s
2014-09-09 14:16:59 -07:00
brendandburns 5bb9495258 Merge pull request #1242 from lavalamp/fix
go test -cover -race is fixed now
2014-09-09 14:14:15 -07:00
Brendan Burns 69b359b689 Don't stack trace on 301s 2014-09-09 14:10:46 -07:00
Filipe Brandenburger 0b05dcd979 Add third_party/etcd to .gitignore
Otherwise the tree looks "dirty" after hack/install-etcd.sh is executed.

Tested:
- Ran `git status` after running `hack/install-etcd.sh`.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 14:10:14 -07:00
Daniel Smith d397d64b9e go test -cover -race is fixed now 2014-09-09 14:06:23 -07:00
Filipe Brandenburger ec2a39e08e Document Kubernetes Release Process
This documentation covers the proposed release process that will improve
support for versioning builds from tarball.

There's also a diagram to explain how versioning works in face of other
commits being merged in parallel and the quirks of intermediate versions
close to the release window.

Addresses Issue #1226.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 14:02:50 -07:00
Joe Beda c5cb7202af Add support for versions in dockerized build. 2014-09-09 14:00:30 -07:00
Joe Beda 7fc3a6c050 Added scheduler binaries plus other misc fixes
* Support cleaning out built docker images
* Use bash arrays in places
* Lock etcd version we are testing against
2014-09-09 13:59:23 -07:00
Joe Beda ec8ede9354 Refactor GCS parts of new release process 2014-09-09 13:53:40 -07:00
Joe Beda 732b7ce7ef Merge pull request #1234 from brendandburns/fix
Add initial logrotate support.
2014-09-09 13:50:06 -07:00
Brendan Burns 686c3bec84 Add initial logrotate support. 2014-09-09 13:35:06 -07:00
Daniel Smith 1fd12778eb Merge pull request #1231 from brendandburns/service
Fix a bug where we don't return an error.
2014-09-09 12:48:19 -07:00
brendandburns a32cb68977 Merge pull request #1232 from dbcode/master
avoid dumping error pages into error messages
2014-09-09 12:43:19 -07:00
Clayton Coleman 055c9d5ad2 Merge pull request #1215 from rajatchopra/ovsdoc
ovs networking document
2014-09-09 14:51:12 -04:00
Brendan Burns a343a93b2d Fix a bug where we don't return an error. 2014-09-09 10:29:00 -07:00
Dave Bailey 5ec748dc5e avoid dumping error pages into error messages 2014-09-09 17:20:58 +00:00
Daniel Smith c61bc58683 Merge pull request #1115 from csrwng/use_codec_in_printing_and_parsing
Use codec to encode/decode api objects in client and kubecfg parser
2014-09-09 09:58:30 -07:00
csrwng 6551f4e0f0 Use codec to encode/decode api objects in client and kubecfg parser 2014-09-09 08:45:53 -04:00
Federico Simoncelli 18bcc5f9a9 Add the dependency to gcfg
This patch adds the dependency to gcfg in order to parse configuration
files.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2014-09-09 09:02:18 +00:00
Dawn Chen 15cab4d053 Introduce the simplest RestartPolicy and handling. 2014-09-08 22:41:38 -07:00
brendandburns d7f84aef82 refine links. 2014-09-08 21:14:09 -07:00
brendandburns 84edb60bcd slight wording change 2014-09-08 21:12:56 -07:00
brendandburns 56c8f43f0c update vagrant to point at the 0.2 release 2014-09-08 21:12:36 -07:00
brendandburns 9ad7618a73 Change directions to use a "stable" release. 2014-09-08 21:09:52 -07:00
brendandburns b4e08dd347 Merge pull request #1219 from filbranden/release_v0.2
Release Kubernetes v0.2
2014-09-08 21:04:34 -07:00
Daniel Smith 7a2f44890f Merge pull request #1222 from bketelsen/master
allow proxy to accept a listen address.  fixes #1220
2014-09-08 17:46:47 -07:00
Daniel Smith d962635ad3 Merge pull request #1224 from ironcladlou/spellmaster
Typo correction
2014-09-08 17:29:48 -07:00
Dan Mace 2e1d62ac65 Typo correction 2014-09-08 20:23:30 -04:00
Rajat Chopra 07d1c6ff44 ovs networking document
Update networking.md
2014-09-08 17:06:25 -07:00
Filipe Brandenburger a0abb38157 Release Kubernetes v0.2
This commit will be tagged with a v0.2 annotated git tag.

Tested:
- Created a git tag for it, built it and checked output of -version:

    $ git tag -a -m 'Release Kubernetes v0.2' v0.2

    $ make
    hack/build-go.sh
    Building local go components

    $ _output/go/bin/kubecfg -version
    Kubernetes version 0.2, build b47f9af5c9ea770973be1b001adaffbdfcb08618

    $ _output/go/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"2", GitVersion:"v0.2", GitCommit:"b47f9af5c9ea770973be1b001adaffbdfcb08618", GitTreeState:"clean"}

- Made sure hack/test-go.sh and hack/test-cmd.sh still pass.

Fixes: Issue #1018

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-08 16:21:36 -07:00
Daniel Smith 41754f5bd4 Merge pull request #1192 from smarterclayton/standardize_etcd_errors
Return standard API errors from etcd registry by operation
2014-09-08 15:57:08 -07:00
Clayton Coleman 3ffe259ac7 Return standard API errors from etcd registry by operation
Adds pkg/api/errors/etcd, which defines default conversions
for common CRUD operations from etcd to api.
2014-09-08 18:46:01 -04:00
Tim Hockin 81b502b0a6 Merge pull request #1217 from lavalamp/fixApi
Rename all XStorage types to REST for clarity
2014-09-08 15:38:47 -07:00
brendandburns a07836ce96 Add a pointer to Circle CI instructions. 2014-09-08 15:22:24 -07:00
Daniel Smith 759c3f9033 Rename all XStorage types to REST for clarity 2014-09-08 15:19:13 -07:00