Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 2.92 KB

File metadata and controls

104 lines (67 loc) · 2.92 KB
Title Description
Packages Data Source
Read the Packages from TMC.

Package Repository

This resource allows you to get list of Packages from a cluster through Tanzu Mission Control.

The Available tab on the Catalog page in the Tanzu Mission Control console shows the packages that are available to be installed, including those that are in the Tanzu Standard package repository and other repositories that you have associated with a cluster.

Cluster scoped Package

Example Usage

# Read Tanzu Mission Control packages : fetch cluster packages details
data "tanzu-mission-control_packages" "read_cluster_packages" {
  metadata_name = "package-metadata-name" # Required

  scope {
    cluster {
      name                    = "testcluster" # Required
      provisioner_name        = "attached"    # Default: attached
      management_cluster_name = "attached"    # Default: attached
    }
  }
}

Schema

Required

  • scope (Block List, Min: 1, Max: 1) Scope for the data source, having one of the valid scopes: cluster. (see below for nested schema)

Optional

  • metadata_name (String) Metadata name of package.

Read-Only

  • id (String) The ID of this resource.
  • namespace_name (String) Namespae of package.
  • packages (List of Object) (see below for nested schema)

Nested Schema for scope

Optional:

Nested Schema for scope.cluster

Required:

  • name (String) Name of this cluster

Optional:

  • management_cluster_name (String) Name of the management cluster
  • provisioner_name (String) Provisioner of the cluster

Nested Schema for packages

Read-Only:

Nested Schema for packages.spec

Read-Only:

  • capacity_requirements_description (String)
  • licenses (Set of String)
  • release_notes (String)
  • released_at (String)
  • repository_name (String)
  • values_schema (List of Object) (see below for nested schema)

Nested Schema for packages.spec.values_schema

Read-Only:

Nested Schema for packages.spec.values_schema.template

Read-Only:

  • raw (String)