mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Fix compilation issues
This commit is contained in:
parent
7ff40a9b52
commit
4bf8c5e685
@ -382,7 +382,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if NODE_NAME is not set then try to use hostname
|
// if NODE_NAME is not set then try to use hostname
|
||||||
nodeName := utilnode.GetHostname(os.Getenv("NODE_NAME"))
|
nodeName, err := utilnode.GetHostname(os.Getenv("NODE_NAME"))
|
||||||
|
if err != nil {
|
||||||
|
fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
clientset, err := kubernetes.NewForConfig(config)
|
clientset, err := kubernetes.NewForConfig(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user