Skip to content

Commit

Permalink
Merge pull request #10238 from bharath-123/add-opt/docker-config
Browse files Browse the repository at this point in the history
Add default runtime and runtimes fields in the docker config
  • Loading branch information
k8s-ci-robot authored Nov 14, 2020
2 parents 9e14b29 + c294e3d commit a196585
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ spec:
dataRoot:
description: DataRoot is the root directory of persistent docker state (default "/var/lib/docker")
type: string
defaultRuntime:
description: DefaultRuntime is the default OCI runtime for containers (default "runc")
type: string
defaultUlimit:
description: DefaultUlimit is the ulimits for containers
items:
Expand Down Expand Up @@ -501,6 +504,11 @@ spec:
items:
type: string
type: array
runtimes:
description: Runtimes registers an additional OCI compatible runtime (default [])
items:
type: string
type: array
selinuxEnabled:
description: SelinuxEnabled enables SELinux support
type: boolean
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/kops/dockerconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ type DockerConfig struct {
DataRoot *string `json:"dataRoot,omitempty" flag:"data-root"`
// DefaultUlimit is the ulimits for containers
DefaultUlimit []string `json:"defaultUlimit,omitempty" flag:"default-ulimit,repeat"`
// DefaultRuntime is the default OCI runtime for containers (default "runc")
DefaultRuntime *string `json:"defaultRuntime,omitempty" flag:"default-runtime"`
// ExecOpt is a series of options passed to the runtime
ExecOpt []string `json:"execOpt,omitempty" flag:"exec-opt,repeat"`
// ExecRoot is the root directory for execution state files (default "/var/run/docker")
Expand Down Expand Up @@ -60,6 +62,8 @@ type DockerConfig struct {
MTU *int32 `json:"mtu,omitempty" flag:"mtu"`
// RegistryMirrors is a referred list of docker registry mirror
RegistryMirrors []string `json:"registryMirrors,omitempty" flag:"registry-mirror,repeat"`
// Runtimes registers an additional OCI compatible runtime (default [])
Runtimes []string `json:"runtimes,omitempty" flag:"add-runtime,repeat"`
// SelinuxEnabled enables SELinux support
SelinuxEnabled *bool `json:"selinuxEnabled,omitempty" flag:"selinux-enabled"`
// SkipInstall when set to true will prevent kops from installing and modifying Docker in any way
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/kops/v1alpha2/dockerconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ type DockerConfig struct {
DataRoot *string `json:"dataRoot,omitempty" flag:"data-root"`
// DefaultUlimit is the ulimits for containers
DefaultUlimit []string `json:"defaultUlimit,omitempty" flag:"default-ulimit,repeat"`
// DefaultRuntime is the default OCI runtime for containers (default "runc")
DefaultRuntime *string `json:"defaultRuntime,omitempty" flag:"default-runtime"`
// ExecOpt is a series of options passed to the runtime
ExecOpt []string `json:"execOpt,omitempty" flag:"exec-opt,repeat"`
// ExecRoot is the root directory for execution state files (default "/var/run/docker")
Expand Down Expand Up @@ -60,6 +62,8 @@ type DockerConfig struct {
MTU *int32 `json:"mtu,omitempty" flag:"mtu"`
// RegistryMirrors is a referred list of docker registry mirror
RegistryMirrors []string `json:"registryMirrors,omitempty" flag:"registry-mirror,repeat"`
// Runtimes registers an additional OCI compatible runtime (default [])
Runtimes []string `json:"runtimes,omitempty" flag:"add-runtime,repeat"`
// SelinuxEnabled enables SELinux support
SelinuxEnabled *bool `json:"selinuxEnabled,omitempty" flag:"selinux-enabled"`
// SkipInstall when set to true will prevent kops from installing and modifying Docker in any way
Expand Down
4 changes: 4 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.

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

10 changes: 10 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 a196585

Please sign in to comment.