Skip to content

Commit

Permalink
fix: terraform issues
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
  • Loading branch information
shanduur committed Aug 22, 2024
1 parent 37cd2da commit 5d185a6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tofu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
-var=kubeconfig=lke.yaml
oci:
needs: [ "linode" ]
concurrency:
group: ${{ github.workflow }}-jobs
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions terraform/linode/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "lke" {
source = "./modules/lke"
cluster_name = "7S23SK"
k8s_version = "1.30"
kubeconfig = var.kubeconfig
}
2 changes: 1 addition & 1 deletion terraform/linode/modules/lke/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
provider "linode" {}

resource "linode_lke_cluster" "lke" {
k8s_version = var.version
k8s_version = var.k8s_version
label = var.cluster_name
region = var.region

Expand Down
2 changes: 1 addition & 1 deletion terraform/linode/modules/lke/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "version" {
variable "k8s_version" {
type = string
}

Expand Down
4 changes: 0 additions & 4 deletions terraform/oci/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ module "oci_core" {
}

module "oci_a1_flex" {
depends_on = [
module.oci_core,
]

source = "./modules/a1_flex"
instance_name = "XUjVp3"
subnet_id = module.oci_core.subnet_id
Expand Down

0 comments on commit 5d185a6

Please sign in to comment.