Skip to content

Commit

Permalink
Merge pull request #1964 from IFRCGo/ignore-aks-lifecycle
Browse files Browse the repository at this point in the history
ignore all changes for aks, avoid accidental tf updates to cluster
  • Loading branch information
batpad authored Nov 28, 2023
2 parents b9dadf1 + d684746 commit e70ae79
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions deploy/terraform/resources/aks.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
resource "azurerm_kubernetes_cluster" "ifrcgo" {
# lifecycle {
# ignore_changes = all
# }
lifecycle {
ignore_changes = all
}

name = "${local.prefix}-cluster"
location = data.azurerm_resource_group.ifrcgo.location
resource_group_name = data.azurerm_resource_group.ifrcgo.name
dns_prefix = "${local.prefix}-cluster"
kubernetes_version = "1.25.5"
kubernetes_version = "1.25.15"

default_node_pool {
name = "nodepool1"
Expand Down Expand Up @@ -39,4 +40,4 @@ resource "azurerm_role_assignment" "storage" {
scope = data.azurerm_resource_group.ifrcgo.id
role_definition_name = "Storage Account Contributor"
principal_id = azurerm_kubernetes_cluster.ifrcgo.identity[0].principal_id
}
}

0 comments on commit e70ae79

Please sign in to comment.