Merge pull request #19640 from ahrtr/cv_20250321
Returns the string representation of the `ClusterVersion`
This commit is contained in:
commit
fd4fc82d40
@ -23,6 +23,13 @@ const (
|
||||
LastVersion ClusterVersion = "last-version"
|
||||
)
|
||||
|
||||
func (cv ClusterVersion) String() string {
|
||||
if cv == CurrentVersion {
|
||||
return "current-version"
|
||||
}
|
||||
return string(cv)
|
||||
}
|
||||
|
||||
type ClusterContext struct {
|
||||
Version ClusterVersion
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user