Skip to content

Commit

Permalink
Remove unofficial bare-metal *_networkds variables
Browse files Browse the repository at this point in the history
* Remove controller_networkds and worker_networkds variables. These
variables were always listed as experimental, unsupported, and excluded
from documentation in anticipation of Container Linux Config snippets
* Use Container Linux Config snippets on bare-metal instead. They
provide safer, more powerful, and more elegant host customization
  • Loading branch information
dghubble committed Aug 14, 2018
1 parent dbdc3fc commit bec5250
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Notable changes between versions.

## Latest

#### Bare-Metal

* Remove `controller_networkds` and `worker_networkds` variables. Use Container Linux Config snippets [#277](https://github.com/poseidon/typhoon/pull/277)

## v1.11.2

* Kubernetes [v1.11.2](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.11.md#v1112)
Expand Down
2 changes: 0 additions & 2 deletions bare-metal/container-linux/kubernetes/cl/controller.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ storage:
--net=host \
--dns=host \
--exec=/bootkube -- start --asset-dir=/assets "$@"
networkd:
${networkd_content}
passwd:
users:
- name: core
Expand Down
2 changes: 0 additions & 2 deletions bare-metal/container-linux/kubernetes/cl/worker.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ storage:
contents:
inline: |
fs.inotify.max_user_watches=16184
networkd:
${networkd_content}
passwd:
users:
- name: core
Expand Down
6 changes: 0 additions & 6 deletions bare-metal/container-linux/kubernetes/profiles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ data "template_file" "controller-configs" {
k8s_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
cluster_domain_suffix = "${var.cluster_domain_suffix}"
ssh_authorized_key = "${var.ssh_authorized_key}"

# Terraform evaluates both sides regardless and element cannot be used on 0 length lists
networkd_content = "${length(var.controller_networkds) == 0 ? "" : element(concat(var.controller_networkds, list("")), count.index)}"
}
}

Expand Down Expand Up @@ -174,9 +171,6 @@ data "template_file" "worker-configs" {
k8s_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
cluster_domain_suffix = "${var.cluster_domain_suffix}"
ssh_authorized_key = "${var.ssh_authorized_key}"

# Terraform evaluates both sides regardless and element cannot be used on 0 length lists
networkd_content = "${length(var.worker_networkds) == 0 ? "" : element(concat(var.worker_networkds, list("")), count.index)}"
}
}

Expand Down
14 changes: 0 additions & 14 deletions bare-metal/container-linux/kubernetes/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,3 @@ variable "kernel_args" {
type = "list"
default = []
}

# unofficial, undocumented, unsupported, temporary

variable "controller_networkds" {
type = "list"
description = "Controller Container Linux config networkd section"
default = []
}

variable "worker_networkds" {
type = "list"
description = "Worker Container Linux config networkd section"
default = []
}

0 comments on commit bec5250

Please sign in to comment.