Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate LTS version in lxc version #12785

Merged
merged 8 commits into from
Jan 30, 2024
Merged

Conversation

MusicDin
Copy link
Member

Indicates LTS version when running lxc version.

Fixes #12768

@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Jan 30, 2024
@tomponline
Copy link
Member

commits need to be signed off please

shared/version/flex.go Outdated Show resolved Hide resolved
@MusicDin
Copy link
Member Author

Accidentally closed the PR..

Example outputs (when LTS is enabled):

$ lxc query /1.0 | jq '{lts: .environment.server_lts, ver: .environment.server_version}'
{
  "lts": true,
  "ver": "5.20"
}

$ lxc version
Client version: 5.20 LTS
Server version: 5.20 LTS

$ lxc --version
5.20 LTS

$ lxd version
5.20 LTS

$ lxd --version
5.20 LTS

doc/api-extensions.md Outdated Show resolved Hide resolved
Signed-off-by: Din Music <din.music@canonical.com>
Signed-off-by: Din Music <din.music@canonical.com>
Signed-off-by: Din Music <din.music@canonical.com>
Signed-off-by: Din Music <din.music@canonical.com>
Signed-off-by: Din Music <din.music@canonical.com>
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lxd/main_version: Indicate lts version when running 5.20 commit message doesn't make sense, 5.20 isnt an LTS version?

Signed-off-by: Din Music <din.music@canonical.com>
Signed-off-by: Din Music <din.music@canonical.com>
Signed-off-by: Din Music <din.music@canonical.com>
@MusicDin
Copy link
Member Author

lxd/main_version: Indicate lts version when running 5.20 commit message doesn't make sense, 5.20 isnt an LTS version?

Oops, I don't know how/why this got here. Fixed

@tomponline tomponline merged commit 4c08b80 into canonical:main Jan 30, 2024
25 checks passed
@MusicDin MusicDin deleted the feat/lts-flag branch January 30, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes to the REST API Documentation Documentation needs updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to indicate LTS in lxc version and lxc --version commands
2 participants