1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

feat(version): migrate version to semver [EE-3756] (#7693)

redisigned version bucket and migration code
This commit is contained in:
Matt Hook 2022-11-18 13:18:09 +13:00 committed by GitHub
parent 4cfa584c7c
commit 583346321e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 747 additions and 509 deletions

View file

@ -3,7 +3,6 @@ package status
import (
"encoding/json"
"net/http"
"strconv"
"github.com/portainer/libhttp/response"
portainer "github.com/portainer/portainer/api"
@ -45,9 +44,10 @@ type BuildInfo struct {
// @success 200 {object} versionResponse "Success"
// @router /status/version [get]
func (handler *Handler) version(w http.ResponseWriter, r *http.Request) {
result := &versionResponse{
ServerVersion: portainer.APIVersion,
DatabaseVersion: strconv.Itoa(portainer.DBVersion),
DatabaseVersion: portainer.APIVersion,
Build: BuildInfo{
BuildNumber: build.BuildNumber,
ImageTag: build.ImageTag,