Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.61 KB

File metadata and controls

51 lines (40 loc) · 1.61 KB
page_title cozystack_backup_class Resource - cozystack
subcategory
description A Cozystack BackupClass (cluster-scoped): a named backup configuration.

cozystack_backup_class (Resource)

A Cozystack BackupClass (cluster-scoped): a named backup configuration.

Example Usage

# BackupClass is a cluster-scoped resource (backups.cozystack.io group). It
# names a set of backup strategies, each tying an application kind to a
# driver-specific BackupStrategy.
resource "cozystack_backup_class" "s3_daily" {
  name = "s3-daily"
  spec = jsonencode({
    strategies = [
      {
        application = { apiGroup = "apps.cozystack.io", kind = "Postgres" }
        strategyRef = { apiGroup = "strategy.backups.cozystack.io", kind = "PostgresBackupStrategy", name = "s3" }
        parameters  = { schedule = "0 3 * * *", retention = "7d" }
      },
    ]
  })
}

Schema

Required

  • name (String) BackupClass name. Immutable.

Optional

  • spec (String) Full BackupClass spec as JSON.
  • wait_for_ready (Boolean) Block on create/update until the tenant's Ready condition is true.
  • wait_timeout (String) Maximum time to wait when wait_for_ready is set (Go duration, e.g. 10m).

Read-Only

  • chart_version (String) Deployed chart version (status.version).
  • id (String) Object name (cluster-scoped).
  • ready (Boolean) Whether the application's Ready condition is true.
  • uid (String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.