mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
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> |
||
|---|---|---|
| .. | ||
| azure | ||
| e2e-suite | ||
| build-go.sh | ||
| config-go.sh | ||
| dev-build-and-push.sh | ||
| dev-build-and-up.sh | ||
| e2e-test.sh | ||
| install-std-race.sh | ||
| local-up-cluster.sh | ||
| test-cmd.sh | ||
| test-go.sh | ||
| test-integration.sh | ||
| util.sh | ||
| verify-boilerplate.sh | ||
| verify-gofmt.sh | ||