Title | Description |
---|---|
Package Repository Resource |
Creating the package Repository resource. |
This resource allows you to read package repository from a cluster through Tanzu Mission Control.
It's a Kubernetes resource which references Package Repository Bundle.It has information such as image url of Package Repository Bundle and necessary credentials to pull Package Repository Bundle.
# Read Tanzu Mission Control package repository : fetch cluster package repository details
data "tanzu-mission-control_package_repository" "read_cluster_pkg_repository" {
name = "tf-pkg-repository-name" # Required
scope {
cluster {
name = "testcluster" # Required
provisioner_name = "attached" # Default: attached
management_cluster_name = "attached" # Default: attached
}
}
}
name
(String) Name of the package repository resource.scope
(Block List, Min: 1, Max: 1) Scope for the package repository, having one of the valid scopes: cluster. (see below for nested schema)
disabled
(Boolean) If true, Package Repository is disabled for cluster.meta
(Block List, Max: 1) Metadata for the resource (see below for nested schema)
id
(String) The ID of this resource.namespace_name
(String) Name of Namespace where package repository will be created.spec
(List of Object) spec for package repository. (see below for nested schema)state
(List of Object) status for package repository. (see below for nested schema)
Optional:
cluster
(Block List, Max: 1) The schema for cluster full name (see below for nested schema)
Required:
name
(String) Name of this cluster
Optional:
management_cluster_name
(String) Name of the management clusterprovisioner_name
(String) Provisioner of the cluster
Optional:
annotations
(Map of String) Annotations for the resourcedescription
(String) Description of the resourcelabels
(Map of String) Labels for the resource
Read-Only:
resource_version
(String) Resource version of the resourceuid
(String) UID of the resource
Read-Only:
imgpkg_bundle
(List of Object) (see below for nested schema)
Read-Only:
image
(String)
Read-Only:
disabled
(Boolean)managed
(Boolean)package_repository_phase
(String)subscribed
(Boolean)