diff options
author | Vasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com> | 2022-08-30 08:55:29 +0200 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-08-31 08:20:32 -0400 |
commit | 7106007c147c34aca9551c5e450851655623f991 (patch) | |
tree | 9fa2596e3e84eda84403af5cd602a438f1e253df | |
parent | da285876dc69caa41064470922e45d922551f6b1 (diff) | |
download | meta-virtualization-7106007c147c34aca9551c5e450851655623f991.tar.gz |
k3s: fix the version of k3s
When executing `k3s --version` the mentioned version
`k3s version dev (HEAD)`. The root cause is, that the BUILD_FLAGS
were not the expected ones. After that patch, the k3s is reporting
the correct version.
Signed-off-by: Vasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-containers/k3s/k3s_git.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/k3s/k3s_git.bb b/recipes-containers/k3s/k3s_git.bb index 34a19e8a..66ff523b 100644 --- a/recipes-containers/k3s/k3s_git.bb +++ b/recipes-containers/k3s/k3s_git.bb | |||
@@ -33,8 +33,8 @@ inherit cni_networking | |||
33 | PACKAGECONFIG = "" | 33 | PACKAGECONFIG = "" |
34 | PACKAGECONFIG[upx] = ",,upx-native" | 34 | PACKAGECONFIG[upx] = ",,upx-native" |
35 | GO_IMPORT = "import" | 35 | GO_IMPORT = "import" |
36 | GO_BUILD_LDFLAGS = "-X github.com/rancher/k3s/pkg/version.Version=${PV} \ | 36 | GO_BUILD_LDFLAGS = "-X github.com/k3s-io/k3s/pkg/version.Version=${PV} \ |
37 | -X github.com/rancher/k3s/pkg/version.GitCommit=${@d.getVar('SRCREV_k3s', d, 1)[:8]} \ | 37 | -X github.com/k3s-io/k3s/pkg/version.GitCommit=${@d.getVar('SRCREV_k3s', d, 1)[:8]} \ |
38 | -w -s \ | 38 | -w -s \ |
39 | " | 39 | " |
40 | BIN_PREFIX ?= "${exec_prefix}/local" | 40 | BIN_PREFIX ?= "${exec_prefix}/local" |