return the string representative of the CurrentVersion value
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
This commit is contained in:
parent
5e272463f7
commit
ee2f4e0e9b
@ -23,6 +23,13 @@ const (
|
|||||||
LastVersion ClusterVersion = "last-version"
|
LastVersion ClusterVersion = "last-version"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (cv ClusterVersion) String() string {
|
||||||
|
if cv == CurrentVersion {
|
||||||
|
return "current-version"
|
||||||
|
}
|
||||||
|
return string(cv)
|
||||||
|
}
|
||||||
|
|
||||||
type ClusterContext struct {
|
type ClusterContext struct {
|
||||||
Version ClusterVersion
|
Version ClusterVersion
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user