mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
add version file
This commit is contained in:
parent
5baf565c00
commit
e667bd7a79
@ -116,7 +116,7 @@ func (sia *SystemInfoAPI) GetGeneralInfo() {
|
|||||||
registryURL = l[0]
|
registryURL = l[0]
|
||||||
}
|
}
|
||||||
_, caStatErr := os.Stat(defaultRootCert)
|
_, caStatErr := os.Stat(defaultRootCert)
|
||||||
harbor_version := sia.getVersion()
|
harborVersion := sia.getVersion()
|
||||||
info := GeneralInfo{
|
info := GeneralInfo{
|
||||||
AdmiralEndpoint: cfg[common.AdmiralEndpoint].(string),
|
AdmiralEndpoint: cfg[common.AdmiralEndpoint].(string),
|
||||||
WithAdmiral: config.WithAdmiral(),
|
WithAdmiral: config.WithAdmiral(),
|
||||||
@ -126,7 +126,7 @@ func (sia *SystemInfoAPI) GetGeneralInfo() {
|
|||||||
SelfRegistration: cfg[common.SelfRegistration].(bool),
|
SelfRegistration: cfg[common.SelfRegistration].(bool),
|
||||||
RegistryURL: registryURL,
|
RegistryURL: registryURL,
|
||||||
HasCARoot: caStatErr == nil,
|
HasCARoot: caStatErr == nil,
|
||||||
HarborVersion: harbor_version,
|
HarborVersion: harborVersion,
|
||||||
}
|
}
|
||||||
sia.Data["json"] = info
|
sia.Data["json"] = info
|
||||||
sia.ServeJSON()
|
sia.ServeJSON()
|
||||||
|
Loading…
Reference in New Issue
Block a user