Moving Kubelet --node-status-max-images flag to configuration

This commit is contained in:
Amim Knabben
2020-05-19 21:38:04 -04:00
parent 60559bc919
commit f6246aba6e
11 changed files with 33 additions and 9 deletions

View File

@@ -509,6 +509,13 @@ type KubeletConfiguration struct {
// Default: "100ms"
// +optional
CPUCFSQuotaPeriod *metav1.Duration `json:"cpuCFSQuotaPeriod,omitempty"`
// nodeStatusMaxImages caps the number of images reported in Node.Status.Images.
// Note: If -1 is specified, no cap will be applied. If 0 is specified, no image is returned.
// Dynamic Kubelet Config (beta): If dynamically updating this field, consider that
// different values can be reported on node status.
// Default: 50
// +optional
NodeStatusMaxImages *int32 `json:"nodeStatusMaxImages,omitempty"`
// maxOpenFiles is Number of files that can be opened by Kubelet process.
// Dynamic Kubelet Config (beta): If dynamically updating this field, consider that
// it may impact the ability of the Kubelet to interact with the node's filesystem.

View File

@@ -185,6 +185,11 @@ func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration) {
*out = new(v1.Duration)
**out = **in
}
if in.NodeStatusMaxImages != nil {
in, out := &in.NodeStatusMaxImages, &out.NodeStatusMaxImages
*out = new(int32)
**out = **in
}
if in.KubeAPIQPS != nil {
in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
*out = new(int32)