Merge pull request #12320 from ZipRecruiter/anthonyr.dockerd-concurrency

pkg/apis/kops: Allow configuring dockerd --max-* upload and download concurrency and retry options.
This commit is contained in:
Kubernetes Prow Robot 2021-12-06 07:08:33 -08:00 committed by GitHub
commit e4aae9bca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 90 additions and 0 deletions

View File

@ -870,6 +870,21 @@ spec:
items:
type: string
type: array
maxConcurrentDownloads:
description: MaxConcurrentDownloads sets the max concurrent downloads
for each pull
format: int32
type: integer
maxConcurrentUploads:
description: MaxConcurrentUploads sets the max concurrent uploads
for each push
format: int32
type: integer
maxDownloadAttempts:
description: MaxDownloadAttempts sets the max download attempts
for each pull
format: int32
type: integer
metricsAddress:
description: Metrics address is the endpoint to serve with Prometheus
format metrics

View File

@ -58,6 +58,12 @@ type DockerConfig struct {
LogLevel *string `json:"logLevel,omitempty" flag:"log-level"`
// Logopt is a series of options given to the log driver options for containers
LogOpt []string `json:"logOpt,omitempty" flag:"log-opt,repeat"`
// MaxConcurrentDownloads sets the max concurrent downloads for each pull
MaxConcurrentDownloads *int32 `json:"maxConcurrentDownloads,omitempty" flag:"max-concurrent-downloads"`
// MaxConcurrentUploads sets the max concurrent uploads for each push
MaxConcurrentUploads *int32 `json:"maxConcurrentUploads,omitempty" flag:"max-concurrent-uploads"`
// MaxDownloadAttempts sets the max download attempts for each pull
MaxDownloadAttempts *int32 `json:"maxDownloadAttempts,omitempty" flag:"max-download-attempts"`
// Metrics address is the endpoint to serve with Prometheus format metrics
MetricsAddress *string `json:"metricsAddress,omitempty" flag:"metrics-addr"`
// MTU is the containers network MTU

View File

@ -58,6 +58,12 @@ type DockerConfig struct {
LogLevel *string `json:"logLevel,omitempty" flag:"log-level"`
// Logopt is a series of options given to the log driver options for containers
LogOpt []string `json:"logOpt,omitempty" flag:"log-opt,repeat"`
// MaxConcurrentDownloads sets the max concurrent downloads for each pull
MaxConcurrentDownloads *int32 `json:"maxConcurrentDownloads,omitempty" flag:"max-concurrent-downloads"`
// MaxConcurrentUploads sets the max concurrent uploads for each push
MaxConcurrentUploads *int32 `json:"maxConcurrentUploads,omitempty" flag:"max-concurrent-uploads"`
// MaxDownloadAttempts sets the max download attempts for each pull
MaxDownloadAttempts *int32 `json:"maxDownloadAttempts,omitempty" flag:"max-download-attempts"`
// Metrics address is the endpoint to serve with Prometheus format metrics
MetricsAddress *string `json:"metricsAddress,omitempty" flag:"metrics-addr"`
// MTU is the containers network MTU

View File

@ -3367,6 +3367,9 @@ func autoConvert_v1alpha2_DockerConfig_To_kops_DockerConfig(in *DockerConfig, ou
out.LogDriver = in.LogDriver
out.LogLevel = in.LogLevel
out.LogOpt = in.LogOpt
out.MaxConcurrentDownloads = in.MaxConcurrentDownloads
out.MaxConcurrentUploads = in.MaxConcurrentUploads
out.MaxDownloadAttempts = in.MaxDownloadAttempts
out.MetricsAddress = in.MetricsAddress
out.MTU = in.MTU
if in.Packages != nil {
@ -3415,6 +3418,9 @@ func autoConvert_kops_DockerConfig_To_v1alpha2_DockerConfig(in *kops.DockerConfi
out.LogDriver = in.LogDriver
out.LogLevel = in.LogLevel
out.LogOpt = in.LogOpt
out.MaxConcurrentDownloads = in.MaxConcurrentDownloads
out.MaxConcurrentUploads = in.MaxConcurrentUploads
out.MaxDownloadAttempts = in.MaxDownloadAttempts
out.MetricsAddress = in.MetricsAddress
out.MTU = in.MTU
if in.Packages != nil {

View File

@ -1564,6 +1564,21 @@ func (in *DockerConfig) DeepCopyInto(out *DockerConfig) {
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.MaxConcurrentDownloads != nil {
in, out := &in.MaxConcurrentDownloads, &out.MaxConcurrentDownloads
*out = new(int32)
**out = **in
}
if in.MaxConcurrentUploads != nil {
in, out := &in.MaxConcurrentUploads, &out.MaxConcurrentUploads
*out = new(int32)
**out = **in
}
if in.MaxDownloadAttempts != nil {
in, out := &in.MaxDownloadAttempts, &out.MaxDownloadAttempts
*out = new(int32)
**out = **in
}
if in.MetricsAddress != nil {
in, out := &in.MetricsAddress, &out.MetricsAddress
*out = new(string)

View File

@ -58,6 +58,12 @@ type DockerConfig struct {
LogLevel *string `json:"logLevel,omitempty" flag:"log-level"`
// Logopt is a series of options given to the log driver options for containers
LogOpt []string `json:"logOpt,omitempty" flag:"log-opt,repeat"`
// MaxConcurrentDownloads sets the max concurrent downloads for each pull
MaxConcurrentDownloads *int32 `json:"maxConcurrentDownloads,omitempty" flag:"max-concurrent-downloads"`
// MaxConcurrentUploads sets the max concurrent uploads for each push
MaxConcurrentUploads *int32 `json:"maxConcurrentUploads,omitempty" flag:"max-concurrent-uploads"`
// MaxDownloadAttempts sets the max download attempts for each pull
MaxDownloadAttempts *int32 `json:"maxDownloadAttempts,omitempty" flag:"max-download-attempts"`
// Metrics address is the endpoint to serve with Prometheus format metrics
MetricsAddress *string `json:"metricsAddress,omitempty" flag:"metrics-addr"`
// MTU is the containers network MTU

View File

@ -3252,6 +3252,9 @@ func autoConvert_v1alpha3_DockerConfig_To_kops_DockerConfig(in *DockerConfig, ou
out.LogDriver = in.LogDriver
out.LogLevel = in.LogLevel
out.LogOpt = in.LogOpt
out.MaxConcurrentDownloads = in.MaxConcurrentDownloads
out.MaxConcurrentUploads = in.MaxConcurrentUploads
out.MaxDownloadAttempts = in.MaxDownloadAttempts
out.MetricsAddress = in.MetricsAddress
out.MTU = in.MTU
if in.Packages != nil {
@ -3300,6 +3303,9 @@ func autoConvert_kops_DockerConfig_To_v1alpha3_DockerConfig(in *kops.DockerConfi
out.LogDriver = in.LogDriver
out.LogLevel = in.LogLevel
out.LogOpt = in.LogOpt
out.MaxConcurrentDownloads = in.MaxConcurrentDownloads
out.MaxConcurrentUploads = in.MaxConcurrentUploads
out.MaxDownloadAttempts = in.MaxDownloadAttempts
out.MetricsAddress = in.MetricsAddress
out.MTU = in.MTU
if in.Packages != nil {

View File

@ -1475,6 +1475,21 @@ func (in *DockerConfig) DeepCopyInto(out *DockerConfig) {
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.MaxConcurrentDownloads != nil {
in, out := &in.MaxConcurrentDownloads, &out.MaxConcurrentDownloads
*out = new(int32)
**out = **in
}
if in.MaxConcurrentUploads != nil {
in, out := &in.MaxConcurrentUploads, &out.MaxConcurrentUploads
*out = new(int32)
**out = **in
}
if in.MaxDownloadAttempts != nil {
in, out := &in.MaxDownloadAttempts, &out.MaxDownloadAttempts
*out = new(int32)
**out = **in
}
if in.MetricsAddress != nil {
in, out := &in.MetricsAddress, &out.MetricsAddress
*out = new(string)

View File

@ -1590,6 +1590,21 @@ func (in *DockerConfig) DeepCopyInto(out *DockerConfig) {
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.MaxConcurrentDownloads != nil {
in, out := &in.MaxConcurrentDownloads, &out.MaxConcurrentDownloads
*out = new(int32)
**out = **in
}
if in.MaxConcurrentUploads != nil {
in, out := &in.MaxConcurrentUploads, &out.MaxConcurrentUploads
*out = new(int32)
**out = **in
}
if in.MaxDownloadAttempts != nil {
in, out := &in.MaxDownloadAttempts, &out.MaxDownloadAttempts
*out = new(int32)
**out = **in
}
if in.MetricsAddress != nil {
in, out := &in.MetricsAddress, &out.MetricsAddress
*out = new(string)