Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4367,6 +4367,14 @@ spec:
description: LogLevel is the logging level of the kubelet
format: int32
type: integer
maxParallelImagePulls:
description: |-
MaxParallelImagePulls sets the maximum number of image pulls in parallel.
This field cannot be set if SerializeImagePulls is true.
Setting it to nil means no limit.
Default: nil
format: int32
type: integer
maxPods:
description: MaxPods is the number of pods that can run on this
Kubelet.
Expand Down Expand Up @@ -4822,6 +4830,14 @@ spec:
description: LogLevel is the logging level of the kubelet
format: int32
type: integer
maxParallelImagePulls:
description: |-
MaxParallelImagePulls sets the maximum number of image pulls in parallel.
This field cannot be set if SerializeImagePulls is true.
Setting it to nil means no limit.
Default: nil
format: int32
type: integer
maxPods:
description: MaxPods is the number of pods that can run on this
Kubelet.
Expand Down
8 changes: 8 additions & 0 deletions k8s/crds/kops.k8s.io_instancegroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,14 @@ spec:
description: LogLevel is the logging level of the kubelet
format: int32
type: integer
maxParallelImagePulls:
description: |-
MaxParallelImagePulls sets the maximum number of image pulls in parallel.
This field cannot be set if SerializeImagePulls is true.
Setting it to nil means no limit.
Default: nil
format: int32
type: integer
maxPods:
description: MaxPods is the number of pods that can run on this
Kubelet.
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/model/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ func buildKubeletComponentConfig(kubeletConfig *kops.KubeletConfigSpec, provider
if kubeletConfig.ImageMinimumGCAge != nil {
componentConfig.ImageMinimumGCAge = *kubeletConfig.ImageMinimumGCAge
}
componentConfig.MaxParallelImagePulls = kubeletConfig.MaxParallelImagePulls
componentConfig.MemorySwap.SwapBehavior = kubeletConfig.MemorySwapBehavior

s := runtime.NewScheme()
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/model/kubelet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ func Test_BuildComponentConfigFile(t *testing.T) {
ShutdownGracePeriodCriticalPods: &metav1.Duration{Duration: 10 * time.Second},
ImageMaximumGCAge: &metav1.Duration{Duration: 30 * time.Hour},
ImageMinimumGCAge: &metav1.Duration{Duration: 30 * time.Minute},
MaxParallelImagePulls: fi.PtrTo(int32(5)),
}

_, err := buildKubeletComponentConfig(&componentConfig, "")
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/kops/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ type KubeletConfigSpec struct {
// The default of this field is "0s", which disables this field--meaning images won't be garbage
// collected based on being unused for too long. Default: "0s" (disabled)
ImageMaximumGCAge *metav1.Duration `json:"imageMaximumGCAge,omitempty"`
// MaxParallelImagePulls sets the maximum number of image pulls in parallel.
// This field cannot be set if SerializeImagePulls is true.
// Setting it to nil means no limit.
// Default: nil
MaxParallelImagePulls *int32 `json:"maxParallelImagePulls,omitempty"`
// ImageGCHighThresholdPercent is the percent of disk usage after which
// image garbage collection is always run.
ImageGCHighThresholdPercent *int32 `json:"imageGCHighThresholdPercent,omitempty" flag:"image-gc-high-threshold"`
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/kops/v1alpha2/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ type KubeletConfigSpec struct {
// The default of this field is "0s", which disables this field--meaning images won't be garbage
// collected based on being unused for too long. Default: "0s" (disabled)
ImageMaximumGCAge *metav1.Duration `json:"imageMaximumGCAge,omitempty"`
// MaxParallelImagePulls sets the maximum number of image pulls in parallel.
// This field cannot be set if SerializeImagePulls is true.
// Setting it to nil means no limit.
// Default: nil
MaxParallelImagePulls *int32 `json:"maxParallelImagePulls,omitempty"`
// ImageGCHighThresholdPercent is the percent of disk usage after which
// image garbage collection is always run.
ImageGCHighThresholdPercent *int32 `json:"imageGCHighThresholdPercent,omitempty" flag:"image-gc-high-threshold"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/v1alpha3/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ type KubeletConfigSpec struct {
// The default of this field is "0s", which disables this field--meaning images won't be garbage
// collected based on being unused for too long. Default: "0s" (disabled)
ImageMaximumGCAge *metav1.Duration `json:"imageMaximumGCAge,omitempty"`
// MaxParallelImagePulls sets the maximum number of image pulls in parallel.
// This field cannot be set if SerializeImagePulls is true.
// Setting it to nil means no limit.
// Default: nil
MaxParallelImagePulls *int32 `json:"maxParallelImagePulls,omitempty"`
// ImageGCHighThresholdPercent is the percent of disk usage after which
// image garbage collection is always run.
ImageGCHighThresholdPercent *int32 `json:"imageGCHighThresholdPercent,omitempty" flag:"image-gc-high-threshold"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha3/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/v1alpha3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading