mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-22 01:42:52 +08:00
a2f289abf2
Automatic merge from submit-queue (batch tested with PRs 55798, 49579, 54862, 55188, 51990). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add monitoring support for hardware accelerators Currently only NVIDIA GPU monitoring is implemented. Feature repo issue: https://github.com/kubernetes/features/issues/369 cAdvisor PR: https://github.com/google/cadvisor/pull/1762 /kind feature /sig node /sig instrumentation /area hw-accelerators **Release note**: ```release-note Kubelet now exposes metrics for NVIDIA GPUs attached to the containers. ``` Kubernetes-commit: 779105673ab2f00af9e02dc9ac3c6413588aeae4
28 lines
545 B
Go
28 lines
545 B
Go
// Copyright 2010 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
|
|
// Unix environment variables.
|
|
|
|
package unix
|
|
|
|
import "syscall"
|
|
|
|
func Getenv(key string) (value string, found bool) {
|
|
return syscall.Getenv(key)
|
|
}
|
|
|
|
func Setenv(key, value string) error {
|
|
return syscall.Setenv(key, value)
|
|
}
|
|
|
|
func Clearenv() {
|
|
syscall.Clearenv()
|
|
}
|
|
|
|
func Environ() []string {
|
|
return syscall.Environ()
|
|
}
|