kubernetes/hack
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
..
azure Rename and move Azure scripts. 2014-07-18 16:13:05 -07:00
e2e-suite Add some extra debugging, and a sleep to attempt to deflake the update test. 2014-08-20 22:28:54 -07:00
build-go.sh Add additional ldflags constants for Kubernetes versioning 2014-08-27 10:06:22 -07:00
config-go.sh Fix gitcommit() in hack/config-go.sh 2014-08-27 09:16:35 -07:00
dev-build-and-push.sh Call build-go.sh before bundling a release 2014-08-04 13:58:32 -07:00
dev-build-and-up.sh Call build-go.sh before bundling a release 2014-08-04 13:58:32 -07:00
e2e-test.sh Update e2e scripts to use the -template parameter. 2014-08-20 12:24:39 -07:00
install-std-race.sh -cover causes races in Go 1.2 2014-07-11 15:48:31 -04:00
local-up-cluster.sh Modify hack/local-up-cluster.sh to use start_etcd function 2014-08-26 16:57:36 -07:00
test-cmd.sh Add an integration test for etcd 2014-08-23 11:44:21 -04:00
test-go.sh Whitespace 2014-08-20 20:17:16 -07:00
test-integration.sh Add an integration test for etcd 2014-08-23 11:44:21 -04:00
util.sh Add an integration test for etcd 2014-08-23 11:44:21 -04:00
verify-boilerplate.sh Fix verify-boilerplate 2014-08-15 13:12:01 -05:00
verify-gofmt.sh changed scripts to use godep 2014-08-13 15:02:14 -04:00