Skip to content

Commit bcfe983

Browse files
authored
Merge pull request #19641 from ahrtr/cv_20250321_3.6
[release-3.6] Returns the string representation of the `ClusterVersion`
2 parents f9df7c6 + 10f68e2 commit bcfe983

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/framework/e2e/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ const (
2323
LastVersion ClusterVersion = "last-version"
2424
)
2525

26+
func (cv ClusterVersion) String() string {
27+
if cv == CurrentVersion {
28+
return "current-version"
29+
}
30+
return string(cv)
31+
}
32+
2633
type ClusterContext struct {
2734
Version ClusterVersion
2835
}

0 commit comments

Comments
 (0)