Skip to content

Commit

Permalink
Merge pull request #12320 from ZipRecruiter/anthonyr.dockerd-concurrency
Browse files Browse the repository at this point in the history
pkg/apis/kops: Allow configuring dockerd --max-* upload and download concurrency and retry options.
  • Loading branch information
k8s-ci-robot committed Dec 6, 2021
2 parents 2f69e1a + 12e9385 commit e4aae9b
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 0 deletions.
15 changes: 15 additions & 0 deletions k8s/crds/kops.k8s.io_clusters.yaml
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/kops/dockerconfig.go
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/kops/v1alpha2/dockerconfig.go
Expand Up @@ -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
Expand Down
6 changes: 6 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.

15 changes: 15 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.

6 changes: 6 additions & 0 deletions pkg/apis/kops/v1alpha3/dockerconfig.go
Expand Up @@ -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
Expand Down
6 changes: 6 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.

15 changes: 15 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.

15 changes: 15 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.

0 comments on commit e4aae9b

Please sign in to comment.