streamtime_tracked_repository (Resource)

A repository whose packages Streamtime lists in the catalog. Managing the catalog needs the catalog permission, normally held by the root organization. Streamtime finds a tracked repository by its repository name, so import it by that name; Terraform refuses to read, change or delete one when another registry holds a repository of the same name.

Example Usage

resource "streamtime_tracked_repository" "agent" {
  repository   = "streamtime/streamtime-agent"
  repo_type    = "oci"
  registry_url = "docker.io"
}

resource "streamtime_tracked_repository" "kafka" {
  repository      = "kafka"
  repo_type       = "helm"
  helm_repository = streamtime_helm_repository.charts.name
}

Schema

Required

  • repo_type (String) oci for a container registry or helm for a chart repository. Changing it creates a new tracked repository.
  • repository (String) The repository name, for example streamtime/streamtime-agent. It is also the ID you use to import it. Changing it creates a new tracked repository.

Optional

  • helm_repository (String) The name of the streamtime_helm_repository the charts come from. Required for helm, and not allowed for oci. Changing it creates a new tracked repository.
  • registry_url (String) The container registry address. Required for oci, and not allowed for helm. Changing it creates a new tracked repository.
  • template_values (String) Default chart values for the packages in this repository, set with jsonencode({…}).

Read-Only

  • id (String) ID of the tracked repository. Use it to import an existing one.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Import by the repository name.
terraform import streamtime_tracked_repository.agent streamtime/streamtime-agent