Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.99 KB

package_source.md

File metadata and controls

54 lines (39 loc) · 1.99 KB
page_title cozystack_package_source Resource - cozystack
subcategory
description A Cozystack PackageSource (cluster-scoped, cozystack.io group): defines where packages come from and their variants. The spec is a platform document, surfaced as JSON.

cozystack_package_source (Resource)

A Cozystack PackageSource (cluster-scoped, cozystack.io group): defines where packages come from and their variants. The spec is a platform document, surfaced as JSON.

Example Usage

resource "cozystack_package_source" "custom" {
  name = "custom.apps"
  spec = jsonencode({
    sourceRef = { kind = "OCIRepository", name = "custom-apps", namespace = "cozy-system" }
    variants  = [{ name = "default" }]
  })
}

Schema

Required

  • name (String) PackageSource name (metadata.name). Immutable.

Optional

  • spec (String) Full PackageSource spec as JSON (sourceRef, variants).
  • wait_for_ready (Boolean) Block on create/update until the Ready condition is true and any server-generated outputs the resource exposes are readable.
  • wait_timeout (String) Maximum time to wait when wait_for_ready is set (Go duration, e.g. 10m). Readiness and outputs share this budget; outputs that never appear leave a warning and their attributes stay null until the next refresh.

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.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Cluster-scoped: import by name only.
terraform import cozystack_package_source.example name