mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +00:00
Update comments and error messages
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
d9e2487d0c
commit
19d9405a1c
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -58146,7 +58146,7 @@ func schema_k8sio_kubelet_config_v1beta1_KubeletConfiguration(ref common.Referen
|
||||
},
|
||||
"podLogsDir": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "podLogsDir is a custom root directory path kubelet will use to place pod's log files. Default: \"/var/log/pods\"",
|
||||
Description: "podLogsDir is a custom root directory path kubelet will use to place pod's log files. Default: \"/var/log/pods/\" Note: it is not recommended to use the temp folder as a log directory as it may cause unexpected behavior in many places.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
|
@ -89,6 +89,9 @@ type KubeletConfiguration struct {
|
||||
// run, or the path to a single static pod file.
|
||||
StaticPodPath string
|
||||
// podLogsDir is a custom root directory path kubelet will use to place pod's log files.
|
||||
// Default: "/var/log/pods/"
|
||||
// Note: it is not recommended to use the temp folder as a log directory as it may cause
|
||||
// unexpected behavior in many places.
|
||||
PodLogsDir string
|
||||
// syncFrequency is the max period between synchronizing running
|
||||
// containers and config
|
||||
|
@ -256,6 +256,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
|
||||
EnableDebugFlagsHandler: utilpointer.Bool(false),
|
||||
SeccompDefault: utilpointer.Bool(false),
|
||||
MemoryThrottlingFactor: utilpointer.Float64(0),
|
||||
RegisterNode: utilpointer.Bool(false),
|
||||
LocalStorageCapacityIsolation: utilpointer.Bool(false),
|
||||
PodLogsDir: "",
|
||||
},
|
||||
&v1beta1.KubeletConfiguration{
|
||||
|
@ -44,7 +44,7 @@ func TestGeneratePodSandboxConfig(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
pod := newTestPod()
|
||||
|
||||
expectedLogDirectory := filepath.Join(testPodLogsRootDirectory, pod.Namespace+"_"+pod.Name+"_12345678")
|
||||
expectedLogDirectory := filepath.Join(testPodLogsDirectory, pod.Namespace+"_"+pod.Name+"_12345678")
|
||||
expectedLabels := map[string]string{
|
||||
"io.kubernetes.pod.name": pod.Name,
|
||||
"io.kubernetes.pod.namespace": pod.Namespace,
|
||||
|
@ -99,7 +99,9 @@ type KubeletConfiguration struct {
|
||||
// +optional
|
||||
StaticPodPath string `json:"staticPodPath,omitempty"`
|
||||
// podLogsDir is a custom root directory path kubelet will use to place pod's log files.
|
||||
// Default: "/var/log/pods"
|
||||
// Default: "/var/log/pods/"
|
||||
// Note: it is not recommended to use the temp folder as a log directory as it may cause
|
||||
// unexpected behavior in many places.
|
||||
// +optional
|
||||
PodLogsDir string `json:"podLogsDir,omitempty"`
|
||||
// syncFrequency is the max period between synchronizing running
|
||||
|
Loading…
Reference in New Issue
Block a user