Title | Description |
---|---|
Package Install Resource |
Creating the Package Install resource. |
This resource allows you to add, update, and delete package install to 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.
# Create Tanzu Mission Control package install with attached set as default value.
resource "tanzu-mission-control_package_install" "create_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
}
}
spec {
package_ref {
package_metadata_name = "test-package-metadata-name" # Required
version_selection {
constraints = "test-version-selection" # Required
}
}
inline_values = { "test" : "test" }
}
}
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)spec
(Block List, Min: 1, Max: 1) spec for package install. (see below for nested schema)
meta
(Block List, Max: 1) Metadata for the resource (see below for nested schema)
id
(String) The ID of this resource.status
(List of Object) status for package install. (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
Required:
package_ref
(Block List, Min: 1, Max: 1) Reference to the Package which will be installed. (see below for nested schema)
Optional:
inline_values
(Map of String, Sensitive) Inline values to configure the Package Install.
Read-Only:
role_binding_scope
(String) Role binding scope for service account which will be used by Package Install.
Required:
package_metadata_name
(String) Name of the Package Metadata.version_selection
(Block List, Min: 1, Max: 1) Version Selection of the Package. (see below for nested schema)
Required:
constraints
(String) Constraints to select Package. Example: constraints: 'v1.2.3', constraints: '<v1.4.0' etc.
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:
generated_resources
(List of Object) (see below for nested schema)managed
(Boolean)package_install_phase
(String)referred_by
(List of String)resolved_version
(String)
Read-Only:
cluster_role_name
(String)role_binding_name
(String)service_account_name
(String)