Skip to content

Commit

Permalink
default backup retention 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mamari90 committed Nov 17, 2023
1 parent d8b04bc commit e6a9753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions kubernetes_cluster_velero/01_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ module "velero_storage_account" {
public_network_access_enabled = var.use_storage_private_endpoint ? false : true
tags = var.tags



blob_delete_retention_days = var.enable_sa_backup ? var.sa_backup_retention_days : null
blob_delete_retention_days = var.sa_backup_retention_days
blob_change_feed_enabled = var.enable_sa_backup
blob_change_feed_retention_in_days = var.enable_sa_backup ? var.sa_backup_retention_days : null
blob_container_delete_retention_days = var.enable_sa_backup ? var.sa_backup_retention_days : null
blob_storage_policy = var.enable_sa_backup ? {
blob_container_delete_retention_days = var.sa_backup_retention_days
blob_storage_policy = {
enable_immutability_policy = false
blob_restore_policy_days = var.sa_backup_retention_days
} : null
}

}

Expand Down
2 changes: 1 addition & 1 deletion kubernetes_cluster_velero/99_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ variable "storage_account_kind" {
variable "sa_backup_retention_days" {
type = number
description = "(Optional) number of days for which the storage account is available for point in time recovery"
default = 7
default = 0
}

variable "enable_sa_backup" {
Expand Down

0 comments on commit e6a9753

Please sign in to comment.