Documentation ¶
Index ¶
- Constants
- Variables
- func CommonHash(nodePool map[string]interface{}) *bytes.Buffer
- func ExpandAddVolumeOptions(addVolumeOptions []interface{}) *models.V1VMAddVolumeOptions
- func FlattenAddVolumeOptions(addVolumeOptions *models.V1VMAddVolumeOptions) []interface{}
- func FlattenAdditionalLabelsAndTaints(labels map[string]string, intaints []*models.V1Taint, ...)
- func FlattenControlPlaneAndRepaveInterval(isControlPlane *bool, oi map[string]interface{}, nodeRepaveInterval int32)
- func GetAddonDeploymentDiagPacks(d *schema.ResourceData, err error) ([]*models.V1PackManifestEntity, diag.Diagnostics, bool)
- func GetBindings(d *schema.ResourceData) []*models.V1ClusterRbacBinding
- func GetClusterGroupConfig(clusterGroupLimitConfig *models.V1ClusterGroupLimitConfig, ...) *models.V1ClusterGroupClustersConfig
- func GetCommonAccount(d *schema.ResourceData, c *client.V1Client) error
- func GetCommonCluster(d *schema.ResourceData, c *client.V1Client) error
- func GetCommonClusterProfile(d *schema.ResourceData, c *client.V1Client) error
- func GetDiagPacks(d *schema.ResourceData, err error) ([]*models.V1PackManifestEntity, diag.Diagnostics, bool)
- func GpuConfigHash(config map[string]interface{}) string
- func HashStringMap(v interface{}) string
- func HashStringMapList(v interface{}) string
- func InstanceTypeHash(ins map[string]interface{}) string
- func IsMapSubset[K, V comparable](m, sub map[K]V) bool
- func IsRegex(name string) bool
- func New(_ string) func() *schema.Provider
- func ParseResourceID(d *schema.ResourceData) (string, string, error)
- func ReadCommonAttributes(d *schema.ResourceData) error
- func ValidateCloudType(resourceName string, cluster *models.V1SpectroCluster) error
- func ValidateContext(context string) error
- func ValidateMachinePoolChange(oMPool interface{}, nMPool interface{}) (bool, error)
- func ValidationNodeRepaveIntervalForControlPlane(nodeRepaveInterval int) error
- type GetMaintenanceStatus
- type GetNodeStatusMap
- type ResultStat
- type Retry
Constants ¶
View Source
const APPLIANCE_HEALTH_DESC = "The health of the appliance. Supported values are: 'healthy', and 'unhealthy'. "
View Source
const APPLIANCE_STATUS_DESC = "The status of the appliance. Supported values are: 'ready', 'in-use', and 'unpaired'. "
View Source
const ARCH_DESC = "The architecture of the appliance. Supported values are: 'amd64', and 'arm64'. "
View Source
const OverlordUID = "overlordUid"
View Source
const (
PROJECT_NAME_NUANCE = "If the `project` context is specified, the project name will sourced from the provider configuration parameter " +
"[`project_name`](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs#schema)."
)
make a constant string describing which project will be specified.
Variables ¶
View Source
var ( DefaultDiskType = "Standard_LRS" DefaultDiskSize = 60 NameToCloudType = map[string]string{ "spectrocloud_cluster_aks": "aks", "spectrocloud_cluster_aws": "aws", "spectrocloud_cluster_azure": "azure", "spectrocloud_cluster_edge_native": "edge-native", "spectrocloud_cluster_eks": "eks", "spectrocloud_cluster_edge_vsphere": "edge-vsphere", "spectrocloud_cluster_gcp": "gcp", "spectrocloud_cluster_maas": "maas", "spectrocloud_cluster_openstack": "openstack", "spectrocloud_cluster_tke": "tke", "spectrocloud_cluster_vsphere": "vsphere", } )
View Source
var NodeMaintenanceLifecycleStates = []string{
"Completed",
"InProgress",
"Initiated",
"Failed",
}
Functions ¶
func CommonHash ¶ added in v0.11.10
func ExpandAddVolumeOptions ¶ added in v0.13.2
func ExpandAddVolumeOptions(addVolumeOptions []interface{}) *models.V1VMAddVolumeOptions
func FlattenAddVolumeOptions ¶ added in v0.13.2
func FlattenAddVolumeOptions(addVolumeOptions *models.V1VMAddVolumeOptions) []interface{}
func FlattenAdditionalLabelsAndTaints ¶ added in v0.11.10
func FlattenControlPlaneAndRepaveInterval ¶ added in v0.11.10
func GetAddonDeploymentDiagPacks ¶ added in v0.10.7
func GetAddonDeploymentDiagPacks(d *schema.ResourceData, err error) ([]*models.V1PackManifestEntity, diag.Diagnostics, bool)
func GetBindings ¶ added in v0.10.2
func GetBindings(d *schema.ResourceData) []*models.V1ClusterRbacBinding
func GetClusterGroupConfig ¶ added in v0.13.1
func GetClusterGroupConfig(clusterGroupLimitConfig *models.V1ClusterGroupLimitConfig, hostClusterConfig []*models.V1ClusterGroupHostClusterConfig, endpointType, values, k8Distro string) *models.V1ClusterGroupClustersConfig
func GetCommonAccount ¶ added in v0.17.2
func GetCommonAccount(d *schema.ResourceData, c *client.V1Client) error
func GetCommonCluster ¶ added in v0.16.0
func GetCommonCluster(d *schema.ResourceData, c *client.V1Client) error
func GetCommonClusterProfile ¶ added in v0.16.1
func GetCommonClusterProfile(d *schema.ResourceData, c *client.V1Client) error
func GetDiagPacks ¶ added in v0.8.2
func GetDiagPacks(d *schema.ResourceData, err error) ([]*models.V1PackManifestEntity, diag.Diagnostics, bool)
func GpuConfigHash ¶ added in v0.11.10
func HashStringMap ¶ added in v0.6.1
func HashStringMap(v interface{}) string
func HashStringMapList ¶ added in v0.6.1
func HashStringMapList(v interface{}) string
func InstanceTypeHash ¶ added in v0.11.10
func IsMapSubset ¶ added in v0.10.10
func IsMapSubset[K, V comparable](m, sub map[K]V) bool
func ParseResourceID ¶ added in v0.16.1
func ParseResourceID(d *schema.ResourceData) (string, string, error)
func ReadCommonAttributes ¶ added in v0.16.0
func ReadCommonAttributes(d *schema.ResourceData) error
func ValidateCloudType ¶ added in v0.17.2
func ValidateCloudType(resourceName string, cluster *models.V1SpectroCluster) error
func ValidateContext ¶ added in v0.15.5
func ValidateMachinePoolChange ¶ added in v0.14.0
func ValidationNodeRepaveIntervalForControlPlane ¶ added in v0.11.10
Types ¶
type GetMaintenanceStatus ¶ added in v0.11.10
type GetNodeStatusMap ¶ added in v0.11.10
type ResultStat ¶ added in v0.11.0
Source Files ¶
- addon_deployment.go
- application_common.go
- application_create_common.go
- cluster_common.go
- cluster_common_attachment.go
- cluster_common_crud.go
- cluster_common_fields.go
- cluster_common_hash.go
- cluster_common_host.go
- cluster_common_labels.go
- cluster_common_location.go
- cluster_common_metadata.go
- cluster_common_namespaces.go
- cluster_common_ospatch.go
- cluster_common_policies.go
- cluster_common_profiles.go
- cluster_common_rbac.go
- cluster_common_tags.go
- cluster_common_taints.go
- cluster_common_update_strategy.go
- cluster_common_virtual_machine.go
- cluster_node_common.go
- cluster_profile_common_crud.go
- common_cluster_profile.go
- data_source_appliance.go
- data_source_appliances.go
- data_source_application_profile.go
- data_source_backup_storage_location.go
- data_source_cloud_account_aws.go
- data_source_cloud_account_azure.go
- data_source_cloud_account_coxedge.go
- data_source_cloud_account_gcp.go
- data_source_cloud_account_maas.go
- data_source_cloud_account_openstack.go
- data_source_cloud_account_tencent.go
- data_source_cloud_account_vsphere.go
- data_source_cluster.go
- data_source_cluster_group.go
- data_source_cluster_profile.go
- data_source_common.go
- data_source_filter.go
- data_source_helm.go
- data_source_macros.go
- data_source_oci_ecr.go
- data_source_pack.go
- data_source_pack_simple.go
- data_source_pcg_ippool.go
- data_source_private_cloud_gateway.go
- data_source_project.go
- data_source_registry.go
- data_source_registry_pack.go
- data_source_role.go
- data_source_user.go
- data_source_workspace.go
- filter_common.go
- provider.go
- resource_alert.go
- resource_appliance.go
- resource_application.go
- resource_application_profile.go
- resource_backup_storage_location.go
- resource_cloud_account_aws.go
- resource_cloud_account_aws_import.go
- resource_cloud_account_azure.go
- resource_cloud_account_coxedge.go
- resource_cloud_account_gcp.go
- resource_cloud_account_gcp_import.go
- resource_cloud_account_maas.go
- resource_cloud_account_openstack.go
- resource_cloud_account_tke.go
- resource_cloud_account_vsphere.go
- resource_cluster_aks.go
- resource_cluster_aks_import.go
- resource_cluster_attachment.go
- resource_cluster_aws.go
- resource_cluster_aws_import.go
- resource_cluster_azure.go
- resource_cluster_coxedge.go
- resource_cluster_edge_native.go
- resource_cluster_edge_native_import.go
- resource_cluster_edge_vsphere.go
- resource_cluster_eks.go
- resource_cluster_gcp.go
- resource_cluster_group.go
- resource_cluster_import.go
- resource_cluster_libvirt.go
- resource_cluster_maas.go
- resource_cluster_maas_import.go
- resource_cluster_openstack.go
- resource_cluster_profile.go
- resource_cluster_profile_import.go
- resource_cluster_profile_import_feature.go
- resource_cluster_tke.go
- resource_cluster_virtual.go
- resource_cluster_vsphere.go
- resource_filter.go
- resource_kubevirt_datavolume.go
- resource_kubevirt_virtual_machine.go
- resource_macro.go
- resource_macros.go
- resource_pcg_ippool.go
- resource_project.go
- resource_registry_helm.go
- resource_registry_oci_ecr.go
- resource_team.go
- resource_workspace.go
- rps_common.go
- rps_consume.go
- rps_produce.go
- utils.go
- workspace_backup.go
- workspace_cluster.go
- workspace_common.go
- workspace_namespace.go
- workspace_rbac.go
Click to show internal directories.
Click to hide internal directories.