Skip to content

Latest commit

 

History

History
115 lines (74 loc) · 3.24 KB

File metadata and controls

115 lines (74 loc) · 3.24 KB
Title Description
Package Data Source
Read the Package from TMC.

Package Repository

This resource allows you to read Package 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 package : fetch cluster package details
data "tanzu-mission-control_package" "get_cluster_package" {
  name = "test-package-version" # Required

  metadata_name = "package-metadata-name" # Required

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

Schema

Required

  • metadata_name (String) Metadata name of package.
  • name (String) Name of the package. It represents version of the Package metadata
  • 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

Read-Only

  • id (String) The ID of this resource.
  • namespace_name (String) Namespae of package.
  • spec (List of Object) Spec for the Repository. (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 meta

Optional:

  • annotations (Map of String) Annotations for the resource
  • description (String) Description of the resource
  • labels (Map of String) Labels for the resource

Read-Only:

  • resource_version (String) Resource version of the resource
  • uid (String) UID of the resource

Nested Schema for 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 spec.values_schema

Read-Only:

Nested Schema for spec.values_schema.template

Read-Only:

  • raw (String)