|
| 1 | +--- |
| 2 | +Title: "Provisioner data source in a management cluster" |
| 3 | +Description: |- |
| 4 | + Provisioner data source in a management cluster. |
| 5 | +--- |
| 6 | + |
| 7 | +# Management Cluster Provisioner |
| 8 | + |
| 9 | +Read provisioner in a management cluster using this Terraform module. |
| 10 | + |
| 11 | +### Tanzu Kubernetes Grid Service and Tanzu Kubernetes Grid vSphere |
| 12 | +- Only provisioner read feature is enabled for Tanzu Kubernetes Grid Service and Tanzu Kubernetes Grid vSphere management clusters. |
| 13 | +- For a Tanzu Kubernetes cluster running in vSphere, you add a provisioner by creating |
| 14 | + a namespace in the management cluster, which you can do using kubectl. |
| 15 | + For more information, see [Create Namespaces in the Management Cluster] in the VMware Tanzu Kubernetes Grid Product Documentation. |
| 16 | +- For a Tanzu Kubernetes cluster running in vSphere with Tanzu, you add a provisioner by creating |
| 17 | + a vSphere namespace in the Supervisor Cluster, which you can do in your vSphere environment. |
| 18 | + For more information, see [Configuring and Managing vSphere Namespaces] in the vSphere with |
| 19 | + Tanzu Configuration and Management documentation. |
| 20 | + |
| 21 | +[Create Namespaces in the Management Cluster] : https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/1.5/vmware-tanzu-kubernetes-grid-15/GUID-cluster-lifecycle-multiple-management-clusters.html#namespaces |
| 22 | +[Configuring and Managing vSphere 7.x Namespaces] : https://docs.vmware.com/en/VMware-vSphere/7.0/vmware-vsphere-with-tanzu/GUID-1544C9FE-0B23-434E-B823-C59EFC2F7309.html |
| 23 | +[Configuring and Managing vSphere 8.x Namespaces] : https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-with-tanzu-services-workloads/GUID-1544C9FE-0B23-434E-B823-C59EFC2F7309.html |
| 24 | + |
| 25 | +### Example Usage |
| 26 | + |
| 27 | +```terraform |
| 28 | +# Read Tanzu Mission Control provisioner : fetch the given provisioner details |
| 29 | +data "tanzu-mission-control_provisioner" "read_provisioner" { |
| 30 | + name = "test-provisioner" # Optional |
| 31 | + management_cluster = "eks" # Required |
| 32 | +} |
| 33 | +
|
| 34 | +# Read Tanzu Mission Control provisioner : fetch all the provisioner details for the given management cluster |
| 35 | +data "tanzu-mission-control_provisioner" "read_provisioner" { |
| 36 | + management_cluster = "eks" # Required |
| 37 | +} |
| 38 | +``` |
| 39 | + |
| 40 | +<!-- schema generated by tfplugindocs --> |
| 41 | +## Schema |
| 42 | + |
| 43 | +### Required |
| 44 | + |
| 45 | +- `management_cluster` (String) Name of the management cluster |
| 46 | + |
| 47 | +### Optional |
| 48 | + |
| 49 | +- `meta` (Block List, Max: 1) Metadata for the resource (see [below for nested schema](#nestedblock--meta)) |
| 50 | +- `name` (String) Name of the provisioner |
| 51 | +- `org_id` (String) ID of the organization |
| 52 | + |
| 53 | +### Read-Only |
| 54 | + |
| 55 | +- `id` (String) The ID of this resource. |
| 56 | + |
| 57 | +<a id="nestedblock--meta"></a> |
| 58 | +### Nested Schema for `meta` |
| 59 | + |
| 60 | +Optional: |
| 61 | + |
| 62 | +- `annotations` (Map of String) Annotations for the resource |
| 63 | +- `description` (String) Description of the resource |
| 64 | +- `labels` (Map of String) Labels for the resource |
| 65 | + |
| 66 | +Read-Only: |
| 67 | + |
| 68 | +- `resource_version` (String) Resource version of the resource |
| 69 | +- `uid` (String) UID of the resource |
0 commit comments