diff --git a/internal/version/version.go b/internal/version/version.go index 6f388ee48..42c267cff 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -57,6 +57,7 @@ type AllowedVersions struct { Storagenode []SemVer Uplink []SemVer Gateway []SemVer + Identity []SemVer } // SemVerRegex is the regular expression used to parse a semantic version. diff --git a/versioncontrol/peer.go b/versioncontrol/peer.go index b4eace2f9..79b39643a 100644 --- a/versioncontrol/peer.go +++ b/versioncontrol/peer.go @@ -31,6 +31,7 @@ type ServiceVersions struct { Storagenode string `user:"true" help:"Allowed Storagenode Versions" default:"v0.0.1"` Uplink string `user:"true" help:"Allowed Uplink Versions" default:"v0.0.1"` Gateway string `user:"true" help:"Allowed Gateway Versions" default:"v0.0.1"` + Identity string `user:"true" help:"Allowed Identity Versions" default:"v0.0.1"` } // Peer is the representation of a VersionControl Server. @@ -92,6 +93,9 @@ func New(log *zap.Logger, config *Config) (peer *Peer, err error) { gatewayVersions := strings.Split(config.Versions.Gateway, ",") peer.Versions.Gateway, err = version.StrToSemVerList(gatewayVersions) + identityVersions := strings.Split(config.Versions.Identity, ",") + peer.Versions.Identity, err = version.StrToSemVerList(identityVersions) + peer.response, err = json.Marshal(peer.Versions) if err != nil {