nodepools

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MPL-2.0 Imports: 10 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,
			},
			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,
			},
		},
	},
}
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