Skip to content

Switch to stable stream for Fedora CoreOS in OS tests #6006

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ostests-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
"alpine_3_18", "alpine_3_21",
"centos_9", "centos_10",
"debian_10", "debian_11", "debian_12",
"fcos_41",
"fcos_stable",
"fedora_41",
"flatcar",
"oracle_8_9", "oracle_9_3",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ostests-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
["alpine_3_18", "alpine_3_21"],
["centos_9", "centos_10"],
["debian_10", "debian_11", "debian_12"],
["fcos_41"],
["fcos_stable"],
["fedora_41"],
["flatcar"],
["oracle_8_9", "oracle_9_3"],
Expand Down
2 changes: 1 addition & 1 deletion hack/ostests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ tofu apply
* `debian_10`: Debian GNU/Linux 10 (buster)
* `debian_11`: Debian GNU/Linux 11 (bullseye)
* `debian_12`: Debian GNU/Linux 12 (bookworm)
* `fcos_41`: Fedora CoreOS 41
* `fcos_stable`: [Fedora CoreOS stable stream](https://docs.fedoraproject.org/en-US/fedora-coreos/getting-started/#_streams)
* `fedora_41`: Fedora Linux 41 (Cloud Edition)
* `flatcar`: Flatcar Container Linux by Kinvolk
* `oracle_8_9`: Oracle Linux Server 8.9
Expand Down
2 changes: 1 addition & 1 deletion hack/ostests/modules/os/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {
debian_10 = local.os_debian_10
debian_11 = local.os_debian_11
debian_12 = local.os_debian_12
fcos_41 = local.os_fcos_41
fcos_stable = local.os_fcos_stable
fedora_41 = local.os_fedora_41
flatcar = local.os_flatcar
oracle_8_9 = local.os_oracle_8_9
Expand Down
51 changes: 0 additions & 51 deletions hack/ostests/modules/os/os_fcos_41.tf

This file was deleted.

23 changes: 23 additions & 0 deletions hack/ostests/modules/os/os_fcos_stable.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# https://docs.fedoraproject.org/en-US/fedora-coreos/provisioning-aws/

data "http" "fcos_stable_stream" {
count = var.os == "fcos_stable" ? 1 : 0
url = "https://builds.coreos.fedoraproject.org/streams/stable.json"
}

data "aws_region" "fcos_stable" {}

locals {
os_fcos_stable = var.os != "fcos_stable" ? {} : {
node_configs = {
default = {
ami_id = jsondecode(one(data.http.fcos_stable_stream).body).architectures[var.arch == "arm64" ? "aarch64" : var.arch].images.aws.regions[data.aws_region.fcos_stable.name].image

connection = {
type = "ssh"
username = "core"
}
}
}
}
}