From 0d5a5659200eae38b871fe67e1631d39bd8fd1fa Mon Sep 17 00:00:00 2001 From: Fabio Bertinatto Date: Wed, 10 Jun 2020 15:53:12 +0200 Subject: [PATCH] Allow docker options to be specified by create cluster overrides This will allow our end-to-end testing to enable SELinux. --- pkg/commands/set_cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/commands/set_cluster.go b/pkg/commands/set_cluster.go index 7f39e20e5c4a6..9cf1465aa87de 100644 --- a/pkg/commands/set_cluster.go +++ b/pkg/commands/set_cluster.go @@ -92,6 +92,11 @@ func SetClusterFields(fields []string, cluster *api.Cluster, instanceGroups []*a cluster.Spec.Kubelet.AuthenticationTokenWebhook = &v case "cluster.spec.nodePortAccess": cluster.Spec.NodePortAccess = append(cluster.Spec.NodePortAccess, kv[1]) + case "spec.docker.execOpt": + if cluster.Spec.Docker == nil { + cluster.Spec.Docker = &api.DockerConfig{} + } + cluster.Spec.Docker.ExecOpt = append(cluster.Spec.Docker.ExecOpt, kv[1]) case "spec.kubernetesVersion": cluster.Spec.KubernetesVersion = kv[1] case "spec.masterPublicName":