gomod: change projectcalico/calico to kubesphere/calico (#5557)
* chore(calico): update calico to 3.25.0 * chore(calico): replace projectcalico/calico to kubesphere/calico Signed-off-by: root <renyunkang@kubesphere.io> --------- Signed-off-by: root <renyunkang@kubesphere.io>
This commit is contained in:
16
vendor/github.com/projectcalico/calico/libcalico-go/lib/names/hostname.go
generated
vendored
Normal file
16
vendor/github.com/projectcalico/calico/libcalico-go/lib/names/hostname.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package names
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Hostname returns this hosts hostname, converting to lowercase so that
|
||||
// it is valid for use in the Calico API.
|
||||
func Hostname() (string, error) {
|
||||
if h, err := os.Hostname(); err != nil {
|
||||
return "", err
|
||||
} else {
|
||||
return strings.ToLower(strings.TrimSpace(h)), nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user