Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
tests/framework: logs k8s server version (#4049)
Browse files Browse the repository at this point in the history
Logs k8s server version.
Resolves #4047

Signed-off-by: Shashank Ram <[email protected]>
(cherry picked from commit 7e39688)
  • Loading branch information
shashankram authored and mergify-bot committed Sep 7, 2021
1 parent 5effa7e commit 799d4a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/framework/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,13 @@ nodeRegistration:
}
}

k8sServerVersion, err := Td.getKubernetesServerVersionNumber()
if err != nil {
return errors.Wrap(err, "Error getting k8s server version")
}

// Logs v<major>.<minor>.<patch>
td.T.Logf("> k8s server version: v%s\n", strings.Trim(strings.Join(strings.Fields(fmt.Sprint(k8sServerVersion)), "."), "[]"))
return nil
}

Expand Down

0 comments on commit 799d4a6

Please sign in to comment.