Markus Lehtonen
f9b4ba87a8
tls: require min TLS version 1.3
...
Deny deprecated TLS versions (1.0 and 1.1). We don't really excpect
other clients than NFD itself so we can just request the latest version.
2022-02-25 10:08:37 +02:00
Artyom Lukianov
a93b660f7c
utils: add methods to fetch NUMA nodes hugepages and memory capacity
...
The methods are used during calculation of reserved memory for system workloads.
The calcualation is `resourceCapacity - resourceAllocatable`.
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-04 10:14:51 +02:00
Markus Lehtonen
99d223b029
utils/dump: do not print empty header line
...
Makes log output cleaner.
2021-06-11 09:29:49 +03:00
Kubernetes Prow Robot
c0e1000a7d
Merge pull request #474 from marquiz/devel/worker-log-verbosity
...
nfd-worker: don't log labels returned by sources by default
2021-03-15 12:52:34 -07:00
Kubernetes Prow Robot
03f53d85e9
Merge pull request #475 from marquiz/devel/grpc-klog
...
pkg/utils: show correct source file in gRPC logs
2021-03-11 06:20:24 -08:00
Markus Lehtonen
fb67a5027b
pkg/utils: show correct source file in gRPC logs
...
Unwind two call frames so that the source (file:line) of the log message
is correctly displayed.
2021-03-11 11:36:55 +02:00
Markus Lehtonen
8d67fc1122
pkg/utils: add dump functions
...
A simple functions for pretty-printing and logging json-marshallable objects.
2021-03-11 07:12:22 +02:00
Markus Lehtonen
e771a35a21
nfd-master: support certificate rotation
...
Add a helper/wrapper in pkg/utils to handle gRPC server-side certificate
rotation.
2021-03-09 14:40:04 +02:00
Markus Lehtonen
dfc2596a22
pkg/utils: generalize file watcher
...
Add the capability to watch multiple files. Move it to a separate
package in order to make it reusable.
2021-03-09 14:20:34 +02:00
Markus Lehtonen
8af3a40ca7
logging: set grpc to use klog for logging
2021-03-05 14:44:44 +02:00
Markus Lehtonen
38d493aa67
pkg/utils: fix possible segfault in RegexpVal.Set
2021-03-02 22:46:34 +02:00
Markus Lehtonen
3f18e880b4
nfd-worker: dynamic configuration of klog
...
Make it possible to dynamically (at run-time) alter most of the logging
configuration from the config file.
2021-02-25 16:10:43 +02:00
Markus Lehtonen
3fd61eacdb
nfd-worker: switch to flag in command line parsing
2021-02-24 12:06:16 +02:00
Markus Lehtonen
47033db9c1
nfd-master: use flag for command line parsing
2021-02-24 12:06:16 +02:00