nodepools

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceName = "tanzu-mission-control_cluster_node_pool"
)

Variables

View Source
var NodePoolTkgAWS = &schema.Schema{
	Type:        schema.TypeList,
	Description: "TKGAWSNodepool is the nodepool spec for TKG AWS cluster",
	Optional:    true,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			classKey: {
				Type:        schema.TypeString,
				Description: "Nodepool instance type",
				Optional:    true,
			},
			storageClassKey: {
				Type:        schema.TypeString,
				Description: "Storage Class to be used for storage of the disks which store the root filesystem of the nodes",
				Optional:    true,
			},
		},
	},
}
View Source
var NodePoolTkgServiceVsphere = &schema.Schema{
	Type:        schema.TypeList,
	Description: "TKGServiceVsphereNodepool is the nodepool spec for TKG service vsphere cluster",
	Optional:    true,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			classKey: {
				Type:        schema.TypeString,
				Description: "Nodepool instance type",
				Required:    true,
				ForceNew:    true,
			},
			storageClassKey: {
				Type:        schema.TypeString,
				Description: "Storage Class to be used for storage of the disks which store the root filesystem of the nodes",
				Required:    true,
				ForceNew:    true,
			},
			failureDomainKey: {
				Type:        schema.TypeString,
				Description: "Configure the failure domain of node pool. The potential values could be found using cluster:options api. This parameter will be ignored by the backend if the TKG service vsphere cluster doesn't support.",
				Optional:    true,
				Default:     "",
				ForceNew:    true,
			},
			volumesKey: tkgServiceVolumes,
		},
	},
}
View Source
var NodePoolTkgVsphere = &schema.Schema{
	Type:        schema.TypeList,
	Description: "TkgVsphereNodepool is the nodepool config for the TKG vsphere cluster",
	Optional:    true,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			vmConfigKey: {
				Type:        schema.TypeList,
				Description: "VM specific configuration",
				Required:    true,
				MaxItems:    1,
				Elem: &schema.Resource{
					Schema: map[string]*schema.Schema{
						cpuKey: {
							Type:        schema.TypeString,
							Description: "Number of CPUs per node",
							Optional:    true,
						},
						diskKey: {
							Type:        schema.TypeString,
							Description: "Root disk size in gigabytes for the VM",
							Optional:    true,
						},
						memoryKey: {
							Type:        schema.TypeString,
							Description: "Memory associated with the node in megabytes",
							Optional:    true,
						},
					},
				},
			},
		},
	},
}

Functions

func DataSourceClusterNodePool

func DataSourceClusterNodePool() *schema.Resource

func ResourceNodePool

func ResourceNodePool() *schema.Resource

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL