cluster

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagementClusterNameKey = "management_cluster_name"
	ProvisionerNameKey       = "provisioner_name"

	NameKey   = "name"
	SpecKey   = "spec"
	StatusKey = "status"

	ResourceName = "tanzu-mission-control_cluster"
)

Variables

View Source
var ClusterFullname = &schema.Schema{
	Type:        schema.TypeList,
	Description: "The schema for cluster full name",
	Optional:    true,
	ForceNew:    true,
	MaxItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			ManagementClusterNameKey: {
				Type:        schema.TypeString,
				Description: "Name of the management cluster",
				Default:     attachedValue,
				Optional:    true,
				ForceNew:    true,
			},
			ProvisionerNameKey: {
				Type:        schema.TypeString,
				Description: "Provisioner of the cluster",
				Default:     attachedValue,
				Optional:    true,
				ForceNew:    true,
			},
			NameKey: {
				Type:        schema.TypeString,
				Description: "Name of this cluster",
				Required:    true,
				ForceNew:    true,
			},
		},
	},
}
View Source
var (
	KubeConfigWayAllowed = [...]string{attachClusterKubeConfigPathKey, attachClusterKubeConfigRawKey}
)

Functions

func ConstructClusterFullname added in v1.1.0

func ConstructClusterFullname(data []interface{}) (fullname *clustermodel.VmwareTanzuManageV1alpha1ClusterFullName)

func DataSourceTMCCluster

func DataSourceTMCCluster() *schema.Resource

func FlattenClusterFullname added in v1.1.0

func FlattenClusterFullname(fullname *clustermodel.VmwareTanzuManageV1alpha1ClusterFullName) (data []interface{})

func ResourceTMCCluster

func ResourceTMCCluster() *schema.Resource

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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