mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Rename tree state from 'git archive' to 'archive'
This commit is contained in:
parent
f8ffbd9d61
commit
2b04a66df7
@ -22,6 +22,7 @@
|
|||||||
# source code.
|
# source code.
|
||||||
# KUBE_GIT_TREE_STATE - "clean" indicates no changes since the git commit id
|
# KUBE_GIT_TREE_STATE - "clean" indicates no changes since the git commit id
|
||||||
# "dirty" indicates source code changes after the git commit id
|
# "dirty" indicates source code changes after the git commit id
|
||||||
|
# "archive" indicates the tree was produced by 'git archive'
|
||||||
# KUBE_GIT_VERSION - "vX.Y" used to indicate the last release version.
|
# KUBE_GIT_VERSION - "vX.Y" used to indicate the last release version.
|
||||||
# KUBE_GIT_MAJOR - The major part of the version
|
# KUBE_GIT_MAJOR - The major part of the version
|
||||||
# KUBE_GIT_MINOR - The minor component of the version
|
# KUBE_GIT_MINOR - The minor component of the version
|
||||||
@ -40,7 +41,7 @@ kube::version::get_version_vars() {
|
|||||||
# we likely don't have a git tree, but these magic values may be filled in.
|
# we likely don't have a git tree, but these magic values may be filled in.
|
||||||
if [[ '$Format:%%$' == "%" ]]; then
|
if [[ '$Format:%%$' == "%" ]]; then
|
||||||
KUBE_GIT_COMMIT='$Format:%H$'
|
KUBE_GIT_COMMIT='$Format:%H$'
|
||||||
KUBE_GIT_TREE_STATE="git archive"
|
KUBE_GIT_TREE_STATE="archive"
|
||||||
# When a 'git archive' is exported, the '$Format:%D$' below will look
|
# When a 'git archive' is exported, the '$Format:%D$' below will look
|
||||||
# something like 'HEAD -> release-1.8, tag: v1.8.3' where then 'tag: '
|
# something like 'HEAD -> release-1.8, tag: v1.8.3' where then 'tag: '
|
||||||
# can be extracted from it.
|
# can be extracted from it.
|
||||||
|
Loading…
Reference in New Issue
Block a user