Skip to content

Commit 10f68e2

Browse files
committed
Returns the string representation of the ClusterVersion
Signed-off-by: Benjamin Wang <[email protected]>
1 parent f9df7c6 commit 10f68e2

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)