mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
Recycling HostPath and NFS impls
This commit is contained in:
@@ -508,3 +508,11 @@ func GetClient(req *http.Request) string {
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
func ShortenString(str string, n int) string {
|
||||
if len(str) <= n {
|
||||
return str
|
||||
} else {
|
||||
return str[:n]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user