From 899520691ffb1de7cd6a5848f2916a4a51a91142 Mon Sep 17 00:00:00 2001 From: bensoer Date: Fri, 17 May 2024 17:03:27 -0700 Subject: [PATCH] terraform formatting fix --- modules/k8config/modules/kyverno/main.tf | 2 +- modules/k8infra/main.tf | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/k8config/modules/kyverno/main.tf b/modules/k8config/modules/kyverno/main.tf index 27e0488..df2a728 100644 --- a/modules/k8config/modules/kyverno/main.tf +++ b/modules/k8config/modules/kyverno/main.tf @@ -17,7 +17,7 @@ resource "helm_release" "kyverno" { repository = "https://kyverno.github.io/kyverno/" chart = "kyverno" - version = "3.1.4" + version = "3.1.4" atomic = true create_namespace = true diff --git a/modules/k8infra/main.tf b/modules/k8infra/main.tf index aa0f7d6..420759e 100644 --- a/modules/k8infra/main.tf +++ b/modules/k8infra/main.tf @@ -34,13 +34,13 @@ resource "digitalocean_kubernetes_cluster" "k8stack" { tags = ["k8stack"] maintenance_policy { - start_time = "7:00" - day = "any" + start_time = "7:00" + day = "any" } - + node_pool { - name = "main-worker-pool" - size = "s-2vcpu-2gb" + name = "main-worker-pool" + size = "s-2vcpu-2gb" auto_scale = true @@ -60,14 +60,14 @@ resource "digitalocean_kubernetes_cluster" "k8stack" { resource "digitalocean_kubernetes_node_pool" "extended_pool" { cluster_id = digitalocean_kubernetes_cluster.k8stack.id - name = "extended-worker-pool" - size = "s-1vcpu-2gb" - + name = "extended-worker-pool" + size = "s-1vcpu-2gb" + auto_scale = true - - min_nodes = 1 + + min_nodes = 1 node_count = 5 - max_nodes = 8 + max_nodes = 8 tags = ["pool-name:extended-pool", "resource-demand:low"] @@ -92,7 +92,7 @@ resource "digitalocean_project" "k8stack-project" { resource "digitalocean_spaces_bucket" "k8stack-resources" { name = "k8stack-resources" region = "nyc3" - acl = "private" + acl = "private" # Deletes the bucket even if its not empty force_destroy = true