1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 16:27:05 +00:00
node-feature-discovery/pkg/utils
Markus Lehtonen 87b92f88ca nfd-worker: detect the namespace it is running in
Implement detection of kubernetes namespace by reading file
/var/run/secrets/kubernetes.io/serviceaccount/namespace

Aa a fallback (if the file is not accessible) we take namespace from
KUBERNETES_NAMESPACE environment variable. This is useful for e.g.
testing and development where you might run nfd-worker directly from the
command line on a host system.
2022-12-08 10:34:52 +02:00
..
hostpath pkg/utils: move hostpath helpers from source to utils 2022-10-06 14:28:24 +03:00
kubeconf get kubelet config from configz 2022-11-08 23:52:35 +08:00
dump.go utils/dump: do not print empty header line 2021-06-11 09:29:49 +03:00
flags.go pkg/utils: fix possible segfault in RegexpVal.Set 2021-03-02 22:46:34 +02:00
fswatcher.go pkg/utils: generalize file watcher 2021-03-09 14:20:34 +02:00
grpc_log.go pkg/utils: show correct source file in gRPC logs 2021-03-11 11:36:55 +02:00
kubernetes.go nfd-worker: detect the namespace it is running in 2022-12-08 10:34:52 +02:00
memory_resources.go Standardize "k8s.io/api/core/v1" package short name 2022-10-15 02:22:41 +03:00
memory_resources_test.go Standardize "k8s.io/api/core/v1" package short name 2022-10-15 02:22:41 +03:00
tls.go Drop deprecated io/ioutil package 2022-09-08 14:26:02 +03:00