Skip to content
Merged
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
1 change: 1 addition & 0 deletions modules/dns-bucket/bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

resource "google_storage_bucket" "velero" {
count = var.enable_velero ? 1 : 0
name = format("%s-cluster-backup", var.pm_name)
provider = google.target

Expand Down
2 changes: 1 addition & 1 deletion modules/dns-bucket/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ output "tiered_storage_bucket" {
}

output "backup_bucket" {
value = google_storage_bucket.velero.name
value = var.enable_velero ? google_storage_bucket.velero[0].name : ""
}

output "loki_bucket" {
Expand Down
6 changes: 6 additions & 0 deletions modules/dns-bucket/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ variable "enable_loki" {
type = bool
default = false
description = "Enable loki storage bucket creation"
}

variable "enable_velero" {
type = bool
default = false
description = "Enable velero for backups. If set to false, no velero resources will be created."
}
Loading