Commit Graph

120 Commits (fab7009997d9da9f374f9aa48092fc94c55829b5)

Author SHA1 Message Date
Zach Loafman c3331c4f34 Kubernetes version v0.19.2 2015-06-22 10:43:25 -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
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
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 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
Brendan Burns 3e5707be5b Kubernetes version v0.18.1-dev 2015-06-02 20:30:49 -07:00
Brendan Burns befd1385e5 Kubernetes version v0.18.1 2015-06-02 20:30:14 -07:00
Jeff Lowdermilk 754d3ce99e Kubernetes version v0.18.0 2015-05-29 09:41:41 -07:00
Zach Loafman 6e65b9613c Kubernetes version v0.17.1-dev 2015-05-21 10:19:15 -07:00
Zach Loafman 7565d411c4 Kubernetes version v0.17.1 2015-05-21 10:19:06 -07:00
Brendan Burns be15e84e83 Kubernetes version v0.17.0-dev 2015-05-11 21:43:34 -07:00
Brendan Burns 82f8bdac06 Kubernetes version v0.17.0 2015-05-11 21:43:34 -07:00
Zach Loafman 74cc4df81b Merge remote-tracking branch 'upstream/release-0.16' into merge-release-0.16-to-master 2015-05-04 11:37:23 -07:00
Zach Loafman 91bc1637a1 Kubernetes version v0.16.2-dev 2015-05-04 10:42:55 -07:00
Zach Loafman 72a6a94840 Kubernetes version v0.16.2 2015-05-04 10:42:44 -07:00
Daniel Smith 4a6ab7fd36 Merge pull request #7597 from eparis/copyright
Use generic copyright holder name in license boilerplate
2015-05-01 17:01:39 -07:00
Brendan Burns 28d727a0c8 Kubernetes version v0.16.1-dev 2015-05-01 16:33:53 -07:00
Brendan Burns b933dda536 Kubernetes version v0.16.1 2015-05-01 16:33:40 -07:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Brendan Burns fc76242f4a Kubernetes version v0.16.0-dev 2015-04-28 21:20:33 -07:00
Brendan Burns 2cea8f22b3 Kubernetes version v0.16.0 2015-04-28 21:20:12 -07:00
Robert Bailey efdd58b737 Kubernetes version v0.15.0-dev 2015-04-13 14:08:50 -07:00
Robert Bailey 831f3e60d7 Kubernetes version v0.15.0 2015-04-13 14:08:45 -07:00
Zach Loafman 22aac51d18 Kubernetes version v0.14.1-dev 2015-04-01 14:51:20 -07:00
Zach Loafman 77775a61b8 Kubernetes version v0.14.1 2015-04-01 14:51:14 -07:00
Zach Loafman 2ad77fd9e5 Kubernetes version v0.14.0-dev 2015-03-30 11:03:04 -07:00
Zach Loafman 575bf6dcd0 Kubernetes version v0.14.0 2015-03-30 11:02:57 -07:00
Brendan Burns 7fbf52a599 Kubernetes version v0.13.0-dev 2015-03-16 16:31:03 -07:00
Brendan Burns 8d8b9b9a78 Kubernetes version v0.13.0 2015-03-16 16:31:03 -07:00
Brendan Burns 2bbc59e81e Kubernetes version v0.12.0-dev 2015-03-02 20:04:35 -08:00
Brendan Burns ecca42643b Kubernetes version v0.12.0 2015-03-02 20:04:24 -08:00
Brendan Burns 5b34ac0e73 Kubernetes version v0.11.0-dev 2015-02-17 21:15:42 -08:00
Brendan Burns 18ddff0eb6 Kubernetes version v0.11.0 2015-02-17 21:15:37 -08:00
Brendan Burns dbbdaaaf6d Kubernetes version v0.10.0-dev 2015-02-03 08:30:19 -08:00
Brendan Burns 71e26cbeb9 Kubernetes version v0.10.0 2015-02-03 08:30:13 -08:00
Brendan Burns 29ae3e2d15 Kubernetes version v0.9.0-dev 2015-01-20 19:50:24 -08:00
Brendan Burns 96af0c3e5b Kubernetes version v0.9.0 2015-01-20 19:50:24 -08:00
Joe Beda 6bd6b905f5 Address code review comments
Add some documentation.
Create new util.InitFlags() function to merge and parse in one step.
2015-01-15 09:12:20 -08:00
Joe Beda dcd00c936e Move all kubernetes to posix flags 2015-01-15 09:12:19 -08:00
Brendan Burns fa140767eb Kubernetes version v0.8.0-dev 2015-01-07 11:22:53 -08:00
Brendan Burns 2b47f5482c Kubernetes version v0.8.0 2015-01-07 11:22:53 -08:00
Brendan Burns feb80f0c52 Kubernetes version v0.7.0-dev 2014-12-15 16:57:39 -08:00
Brendan Burns ad44234f71 Kubernetes version v0.7.0 2014-12-15 16:57:39 -08:00
Sam Ghods 6399854240 Remove unused YAML tags and GetYAML/SetYAML methods
Unneeded after move to ghodss/yaml.
2014-12-02 16:25:28 -08:00
Brendan Burns 85fbcdb981 Kubernetes version v0.6.0-dev 2014-12-01 16:26:48 -08:00
Brendan Burns 20a0d79bf4 Kubernetes version v0.6.0 2014-12-01 16:26:48 -08:00
Brendan Burns 4ab79ce40f Add the 0.5-dev tag. 2014-11-17 15:01:57 -08:00
Brendan Burns e2e1c87ae0 Add the 0.5 release. 2014-11-17 15:01:09 -08:00
Brian Grant 7583e1a643 Automatic API generation by adopting go-restful 2014-11-14 16:49:19 +00:00
Daniel Smith dca7363459 Serve API version list, test with an integration test. 2014-10-28 17:35:56 -07:00
Dawn Chen 3f854498fd Add 0.4-dev commit 2014-10-14 16:46:22 -07:00
Dawn Chen 4452163ffd Rev the version to 0.4 2014-10-14 16:46:22 -07:00
Brendan Burns b2b3d2e16b Add the 0.3-dev commit. 2014-09-19 11:15:57 -07:00
Brendan Burns 89eff1d0d8 Rev the version to 0.3 2014-09-19 10:11:03 -07:00
Filipe Brandenburger 8de322f196 Use just GitVersion for the -version output
It turns out that that's simply the most useful information about the version
that was built.

For a git tree, it includes information about the closest release, number of
commits since the release, enough of the SHA1 to find the exact commit and
whether the tree was clean or dirty at build time.

For a build from tarball, it will include information of which release was built
and, when using a tarball from a not released commit (e.g. downloading
"master.tar.gz" from GitHub, not recommended!) it will include the -dev prefix
to indicate that was not an official release. (That's as good as we can get with
it.)

If additional information is required, it can be found with -version=raw.

Tested:

- Built from the git tree:

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

- Built it from a dirty git tree:

    $ { echo 'package version'; echo 'var X = 1'; } >pkg/version/sillyvar.go
    $ make
    $ _output/go/bin/kubecfg -version
    Kubernetes v0.2-29-gd916051e9db865-dirty
    $ _output/go/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-29-gd916051e9db865-dirty", GitCommit:"d916051e9db8650899acb9415a4e285e3e3a1f87", GitTreeState:"dirty"}

- Tag it v0.3 and build it:

    $ git tag -a v0.3 -m 'Release Kubernetes v0.3'
    $ make
    $ _output/go/bin/kubecfg -version
    Kubernetes v0.3
    $ _output/go/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"3", GitVersion:"v0.3", GitCommit:"d916051e9db8650899acb9415a4e285e3e3a1f87", GitTreeState:"clean"}

- Built it from a tarball:

    $ wget -O kubernetes.tgz https://api.github.com/repos/filbranden/kubernetes/tarball/version_string1
    $ tar xvf kubernetes.tgz
    $ cd filbranden-kubernetes-*/
    $ make
    $ _output/go/bin/kubecfg -version
    Kubernetes v0.2-dev
    $ _output/go/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-dev", GitCommit:"", GitTreeState:"not a git tree"}

- Built it with `go get`:

    # I need to prefetch the tree to replace the official tree with mine:
    $ mkdir -p ${TMPDIR}/gopath/src/github.com/
    $ ln -sf filbranden ${TMPDIR}/gopath/src/github.com/GoogleCloudPlatform

    # Now run `go get` to build kubecfg:
    $ GOPATH=${TMPDIR}/gopath go get github.com/filbranden/kubernetes/cmd/kubecfg

    # Check the version:
    $ ${TMPDIR}/gopath/bin/kubecfg -version
    Kubernetes v0.2-dev
    $ ${TMPDIR}/gopath/bin/kubecfg -version=raw
    version.Info{Major:"0", Minor:"2+", GitVersion:"v0.2-dev", GitCommit:"", GitTreeState:"not a git tree"}

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-09 16:19:14 -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 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
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 b777eb19e2 Add additional ldflags constants for Kubernetes versioning
Now it is possible to push these variables through ldflags:
- gitMajor
- gitMinor
- gitVersion (from latest annotated tag, output of git describe)
- gitCommit (renamed commitFromGit, intended to have the full sha1)
- gitTreeState (either "clean" or "dirty")

These are spawned into its separate source file, since they are meant to
be updated separately when a new version is released.

Also use the notation vX.Y+ for when git information is not present.
(This is consistent with the kernel build, e.g. Linux 3.15+ means its
version is >= 3.15 and < 3.16.)

v2: Added comments to the individual fields in pkg/version/base.go

Tested:
- Built it and checked the -version output:
  $ hack/build-go.sh
  $ output/go/bin/kubelet -version
  Kubernetes version 0.1+, build c328679ef8aa

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 10:06:22 -07:00
Clayton Coleman 9336373857 Use -ldflags to set git commit version 2014-08-25 16:40:47 -04:00
Yuki Yugui Sonoda 331fd0d986 Extract "pkg/version".PrintAndExitIfRequested() to its own package
because it causes a runtime panic if a binary which has its own implementation
of "-version" flag tries to reuse a package library which indirectly depend on
"pkg/version".

e.g. If such an user-defined binary tires to link "pkg/api" or "pkg/client",
the binary fails with a runtime panic "flag redefined: version".
2014-08-01 15:05:27 +09:00
Filipe Brandenburger de405ac126 Improve generation of version information from the git tree
Detect whether the tree is dirty and append a "-dirty" indication to the
git commit (common practice with other repos, e.g. kernel, docker.)

Properly handle the case where a git tree is not found (e.g. building
from archive.)

In the sed expression, look for the variable to be updated
(commitFromGit) instead of hardcoding a line number.

Tested:

- Built from a dirty tree:
    $ output/go/bin/kubelet -version
    Kubernetes version 0.1, build 2d784c684c75-dirty

- Built from a clean tree:
    $ output/go/bin/kubelet -version
    Kubernetes version 0.1, build 505f23a31172

- Built from an archive:
    $ hack/build-go.sh
    WARNING: unable to find git commit, falling back to commitFromGit = `(none)`
    $ output/go/bin/kubelet -version
    Kubernetes version 0.1, build (none)

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-07-30 18:48:57 -07:00
Filipe Brandenburger 7e56609139 Handle -version flag on all commands
Tested: Passed -version argument to kubelet (and all other binaries):
  $ output/go/bin/kubecfg -version
  Kubernetes version 0.1, build 6454a541fd56

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-07-30 18:48:56 -07:00
Daniel Smith 3b8488028d Add /version to server and check it in client.
Will help detect client/version skew and prevent e2e test from passing
while running a version other than the one you think it's running.
2014-07-28 15:45:25 -07:00
Daniel Smith 60f05c8d8d update version package when building. 2014-07-02 15:32:30 -07:00
Daniel Smith 68bef4ac0c add version package 2014-07-02 15:26:13 -07:00