Skip to content

Latest commit

 

History

History
140 lines (88 loc) · 4.09 KB

File metadata and controls

140 lines (88 loc) · 4.09 KB
Title Description
Package Install data source
Creating the Package Install data source.

Package Install

This data source allows you to read created package install on a cluster through Tanzu Mission Control.

To install an available package on a cluster, you must be associated with the .admin role on that cluster.

Use the Catalog page of the Tanzu Mission Control console to install a package from your repository to your Kubernetes cluster.

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 install

Example Usage

# Read Tanzu Mission Control package install with attached set as default value.
data "tanzu-mission-control_package_install" "read_package_install" {
  name = "test-pakage-install-name" # Required

  namespace = "test-namespace-name" # Required

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

Schema

Required

  • name (String) Name of the package install resource.
  • namespace (String) Name of Namespace where package install will be created.
  • scope (Block List, Min: 1, Max: 1) Scope for the package install, having one of the valid scopes: cluster. (see below for nested schema)

Optional

Read-Only

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:

  • inline_values (Map of String)
  • package_ref (List of Object) (see below for nested schema)
  • role_binding_scope (String)

Nested Schema for spec.package_ref

Read-Only:

Nested Schema for spec.package_ref.version_selection

Read-Only:

  • constraints (String)

Nested Schema for status

Read-Only:

  • generated_resources (List of Object) (see below for nested schema)
  • managed (Boolean)
  • package_install_phase (String)
  • referred_by (List of String)
  • resolved_version (String)

Nested Schema for status.generated_resources

Read-Only:

  • cluster_role_name (String)
  • role_binding_name (String)
  • service_account_name (String)