Skip to content

Commit

Permalink
Add support for containerd container runtime - generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Dec 3, 2019
1 parent 059952a commit 0aa01f8
Show file tree
Hide file tree
Showing 13 changed files with 321 additions and 2 deletions.
33 changes: 32 additions & 1 deletion k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,37 @@ spec:
description: ConfigStore is the VFS path to where the configuration
(Cluster, InstanceGroups etc) is stored
type: string
containerRuntime:
description: Container runtime to use for Kubernetes
type: string
containerd:
description: Component configurations
properties:
address:
description: Address of containerd's GRPC server (default "/run/containerd/containerd.sock")
type: string
configFile:
description: Complete containerd config file provided by the user
type: string
logLevel:
description: Logging level [trace, debug, info, warn, error, fatal,
panic] (default "warn")
type: string
root:
description: Directory for persistent data (default "/var/lib/containerd")
type: string
skipInstall:
description: Prevents kops from installing and modifying containerd
in any way (default "false")
type: boolean
state:
description: Directory for execution state files (default "/run/containerd")
type: string
version:
description: Consumed by nodeup and used to pick the containerd
version
type: string
type: object
dnsControllerGossipConfig:
description: DNSControllerGossipConfig for the cluster assuming the
use of gossip DNS
Expand All @@ -354,7 +385,7 @@ spec:
of the zone (containing dots), or can be an identifier for the zone.
type: string
docker:
description: Component configurations
description: DockerConfig is the configuration for docker
properties:
authorizationPlugins:
description: AuthorizationPlugins is a list of authorization plugins
Expand Down
2 changes: 2 additions & 0 deletions nodeup/pkg/model/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go_library(
srcs = [
"architecture.go",
"cloudconfig.go",
"containerd.go",
"context.go",
"convenience.go",
"directories.go",
Expand Down Expand Up @@ -82,6 +83,7 @@ go_library(
go_test(
name = "go_default_test",
srcs = [
"containerd_test.go",
"docker_test.go",
"kube_apiserver_test.go",
"kube_proxy_test.go",
Expand Down
5 changes: 4 additions & 1 deletion nodeup/pkg/model/resources/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "go_default_library",
srcs = ["docker.go"],
srcs = [
"containerd.go",
"docker.go",
],
importpath = "k8s.io/kops/nodeup/pkg/model/resources",
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions pkg/apis/kops/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ go_library(
"channel.go",
"cluster.go",
"componentconfig.go",
"containerdconfig.go",
"doc.go",
"dockerconfig.go",
"instancegroup.go",
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/kops/v1alpha1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
"bastion.go",
"cluster.go",
"componentconfig.go",
"containerdconfig.go",
"conversion.go",
"defaults.go",
"doc.go",
Expand Down
62 changes: 62 additions & 0 deletions pkg/apis/kops/v1alpha1/zz_generated.conversion.go

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

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

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

1 change: 1 addition & 0 deletions pkg/apis/kops/v1alpha2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
"bastion.go",
"cluster.go",
"componentconfig.go",
"containerdconfig.go",
"defaults.go",
"doc.go",
"dockerconfig.go",
Expand Down
62 changes: 62 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.

Loading

0 comments on commit 0aa01f8

Please sign in to comment.