Title | Description |
---|---|
Provisioner data source in a management cluster |
Provisioner data source in a management cluster. |
Read provisioner in a management cluster using this Terraform module.
- Only provisioner read feature is enabled for Tanzu Kubernetes Grid Service and Tanzu Kubernetes Grid vSphere management clusters.
- For a Tanzu Kubernetes cluster running in vSphere, you add a provisioner by creating a namespace in the management cluster, which you can do using kubectl. For more information, see Create Namespaces in the Management Cluster in the VMware Tanzu Kubernetes Grid Product Documentation.
- For a Tanzu Kubernetes cluster running in vSphere with Tanzu, you add a provisioner by creating a vSphere namespace in the Supervisor Cluster, which you can do in your vSphere environment. For more information, see Configuring and Managing vSphere 7.x and vSphere 8.x Namespaces in the vSphere with Tanzu Configuration and Management documentation.
# Read Tanzu Mission Control provisioner : fetch the given provisioner details
data "tanzu-mission-control_provisioner" "read_provisioner" {
provisioners {
name = "test-provisioner" # Optional
management_cluster = "eks" # Required
}
}
# Read Tanzu Mission Control provisioner : fetch all the provisioner details for the given management cluster
data "tanzu-mission-control_provisioner" "read_provisioner" {
provisioners {
management_cluster = "eks" # Required
}
}
provisioners
(Block List) Provisioners info (see below for nested schema)
id
(String) The ID of this resource.
Required:
management_cluster
(String) Name of the management cluster
Optional:
meta
(Block List, Max: 1) Metadata for the resource (see below for nested schema)name
(String) Name of the provisionerorg_id
(String) ID of the organization
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