Title | Description |
---|---|
Package Repository Resource |
Creating the package Repository resource. |
This resource allows you to add, update, and delete package repository to 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.
# Create Tanzu Mission Control package repository with attached set as default value.
resource "tanzu-mission-control_package_repository" "create_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
}
}
meta {
description = "Create namespace through terraform"
labels = { "key" : "value" }
}
spec {
imgpkg_bundle {
image = "testImage" # Required
}
}
}
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)spec
(Block List, Min: 1, Max: 1) spec for package repository. (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.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:
imgpkg_bundle
(Block List, Max: 1) Docker image url; unqualified, tagged, or digest references supported. (see below for nested schema)
Required:
image
(String) image url string.
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:
disabled
(Boolean)managed
(Boolean)package_repository_phase
(String)subscribed
(Boolean)