Skip to content

Commit

Permalink
Allow docker options to be specified by create cluster overrides
Browse files Browse the repository at this point in the history
This will allow our end-to-end testing to enable SELinux.
  • Loading branch information
bertinatto committed Jun 10, 2020
1 parent 0b8ead9 commit 0d5a565
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/commands/set_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 0d5a565

Please sign in to comment.