Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove os_image variable on Google Cloud Fedora CoreOS #777

Merged
merged 1 commit into from
Jun 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ Notable changes between versions.
* Require `terraform-provider-digitalocean` v1.16.0+ (action required)
* Output `vpc_id` for use with an attached DigitalOcean [loadbalancer](https://github.com/poseidon/typhoon/blob/v1.18.5/docs/architecture/digitalocean.md#custom-load-balancer)

### Fedora CoreOS

#### Google

* Remove `os_image` variable (deprecated in v1.18.3)
* Use `os_stream` to select a Fedora CoreOS image stream

#### Addons

* Update Prometheus from v2.19.0 to [v2.19.1](https://github.com/prometheus/prometheus/releases/tag/v2.19.1)
Expand Down Expand Up @@ -105,7 +112,7 @@ Notable changes between versions.

#### Google

* Support Fedora CoreOS [image streams](https://docs.fedoraproject.org/en-US/fedora-coreos/update-streams/) ([#723](https://github.com/poseidon/typhoon/pull/722))
* Support Fedora CoreOS [image streams](https://docs.fedoraproject.org/en-US/fedora-coreos/update-streams/) ([#723](https://github.com/poseidon/typhoon/pull/723))
* Add `os_stream` variable to set the stream to `stable` (default), `testing`, or `next`
* Deprecate `os_image` variable. Manual image uploads are no longer needed

Expand Down
2 changes: 1 addition & 1 deletion google-cloud/fedora-coreos/kubernetes/controllers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "google_compute_instance" "controllers" {
auto_delete = true

initialize_params {
image = var.os_image == "" ? data.google_compute_image.fedora-coreos.self_link : var.os_image
image = data.google_compute_image.fedora-coreos.self_link
size = var.disk_size
}
}
Expand Down
7 changes: 0 additions & 7 deletions google-cloud/fedora-coreos/kubernetes/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ variable "os_stream" {
default = "stable"
}

# Deprecated
variable "os_image" {
type = string
description = "Fedora CoreOS image for compute instances (e.g. fedora-coreos)"
default = ""
}

variable "disk_size" {
type = number
description = "Size of the disk in GB"
Expand Down
1 change: 0 additions & 1 deletion google-cloud/fedora-coreos/kubernetes/workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module "workers" {
worker_count = var.worker_count
machine_type = var.worker_type
os_stream = var.os_stream
os_image = var.os_image
disk_size = var.disk_size
preemptible = var.worker_preemptible

Expand Down
7 changes: 0 additions & 7 deletions google-cloud/fedora-coreos/kubernetes/workers/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ variable "os_stream" {
default = "stable"
}

# Deprecated
variable "os_image" {
type = string
description = "Fedora CoreOS image for compute instances (e.g. fedora-coreos)"
default = ""
}

variable "disk_size" {
type = number
description = "Size of the disk in GB"
Expand Down
2 changes: 1 addition & 1 deletion google-cloud/fedora-coreos/kubernetes/workers/workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "google_compute_instance_template" "worker" {
disk {
auto_delete = true
boot = true
source_image = var.os_image == "" ? data.google_compute_image.fedora-coreos.self_link : var.os_image
source_image = data.google_compute_image.fedora-coreos.self_link
disk_size_gb = var.disk_size
}

Expand Down