castai

package
v7.13.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldDeleteNodesOnDisconnect = "delete_nodes_on_disconnect"
	FieldClusterCredentialsId    = "credentials_id"
	FieldClusterID               = "cluster_id"
	FieldClusterToken            = "cluster_token"
)
View Source
const (
	FieldClusterId = "cluster_id"

	FieldKey    = "key"
	FieldValue  = "value"
	FieldEffect = "effect"

	Enabled  = "enabled"
	Disabled = "disabled"
)
View Source
const (
	EKSClusterUserARNFieldClusterID = "cluster_id"
	EKSClusterUserARNFieldARN       = "arn"
)
View Source
const (
	EKSSettingsFieldAccountId          = "account_id"
	EKSSettingsFieldRegion             = "region"
	EKSSettingsFieldVpc                = "vpc"
	EKSSettingsFieldCluster            = "cluster"
	EKSSettingsFieldIamPolicyJson      = "iam_policy_json"
	EKSSettingsFieldIamUserPolicyJson  = "iam_user_policy_json"
	EKSSettingsFieldIamManagedPolicies = "iam_managed_policies"

	GovCloudPrefix = "us-gov"
)
View Source
const (
	FieldAKSClusterName              = "name"
	FieldAKSClusterRegion            = "region"
	FieldAKSClusterSubscriptionID    = "subscription_id"
	FieldAKSClusterNodeResourceGroup = "node_resource_group"
	FieldAKSClusterClientID          = "client_id"
	FieldAKSClusterClientSecret      = "client_secret"
	FieldAKSClusterTenantID          = "tenant_id"
)
View Source
const (
	FieldAutoscalerPoliciesJSON                   = "autoscaler_policies_json"
	FieldAutoscalerPolicies                       = "autoscaler_policies"
	FieldAutoscalerSettings                       = "autoscaler_settings"
	FieldEnabled                                  = "enabled"
	FieldIsScopedMode                             = "is_scoped_mode"
	FieldNodeTemplatesPartialMatchingEnabled      = "node_templates_partial_matching_enabled"
	FieldUnschedulablePods                        = "unschedulable_pods"
	FieldHeadroom                                 = "headroom"
	FieldCPUPercentage                            = "cpu_percentage"
	FieldMemoryPercentage                         = "memory_percentage"
	FieldHeadroomSpot                             = "headroom_spot"
	FieldNodeConstraints                          = "node_constraints"
	FieldMinCPUCores                              = "min_cpu_cores"
	FieldMaxCPUCores                              = "max_cpu_cores"
	FieldMinRAMMiB                                = "min_ram_mib"
	FieldMaxRAMMiB                                = "max_ram_mib"
	FieldCustomInstancesEnabled                   = "custom_instances_enabled"
	FieldClusterLimits                            = "cluster_limits"
	FieldCPU                                      = "cpu"
	FieldMinCores                                 = "min_cores"
	FieldMaxCores                                 = "max_cores"
	FieldSpotInstances                            = "spot_instances"
	FieldMaxReclaimRate                           = "max_reclaim_rate"
	FieldSpotBackups                              = "spot_backups"
	FieldSpotDiversityEnabled                     = "spot_diversity_enabled"
	FieldSpotDiversityPriceIncreaseLimit          = "spot_diversity_price_increase_limit"
	FieldSpotInterruptionPredictions              = "spot_interruption_predictions"
	FieldSpotBackupRestoreRateSeconds             = "spot_backup_restore_rate_seconds"
	FieldSpotInterruptionPredictionsType          = "spot_interruption_predictions_type"
	FieldNodeDownscaler                           = "node_downscaler"
	FieldEmptyNodes                               = "empty_nodes"
	FieldDelaySeconds                             = "delay_seconds"
	FieldEvictor                                  = "evictor"
	FieldEvictorDryRun                            = "dry_run"
	FieldEvictorAggressiveMode                    = "aggressive_mode"
	FieldEvictorScopedMode                        = "scoped_mode"
	FieldEvictorCycleInterval                     = "cycle_interval"
	FieldEvictorNodeGracePeriodMinutes            = "node_grace_period_minutes"
	FieldEvictorPodEvictionFailureBackOffInterval = "pod_eviction_failure_back_off_interval"
	FieldEvictorIgnorePodDisruptionBudgets        = "ignore_pod_disruption_budgets"
)
View Source
const (
	FieldEKSClusterName          = "name"
	FieldEKSClusterAccountId     = "account_id"
	FieldEKSClusterRegion        = "region"
	FieldEKSClusterAssumeRoleArn = "assume_role_arn"
)
View Source
const (
	FieldEvictorAdvancedConfig    = "evictor_advanced_config"
	FieldEvictionConfig           = "eviction_config"
	FieldNodeSelector             = "node_selector"
	FieldPodSelector              = "pod_selector"
	FieldEvictionSettings         = "settings"
	FieldEvictionOptionDisabled   = "removal_disabled"
	FieldEvictionOptionAggressive = "aggressive"
	FieldEvictionOptionDisposable = "disposable"
	FieldPodSelectorKind          = "kind"
	FieldPodSelectorNamespace     = "namespace"
	FieldMatchLabels              = "match_labels"
	FieldMatchExpressions         = "match_expressions"
	FieldMatchExpressionKey       = "key"
	FieldMatchExpressionOp        = "operator"
	FieldMatchExpressionVal       = "values"
)
View Source
const (
	FieldGKEClusterName          = "name"
	FieldGKEClusterProjectId     = "project_id"
	FieldGKEClusterLocation      = "location"
	FieldGKEClusterCredentialsId = "credentials_id"
	FieldGKEClusterCredentials   = "credentials_json"
)
View Source
const (
	FieldNodeConfigurationName             = "name"
	FieldNodeConfigurationDiskCpuRatio     = "disk_cpu_ratio"
	FieldNodeConfigurationMinDiskSize      = "min_disk_size"
	FieldNodeConfigurationDrainTimeoutSec  = "drain_timeout_sec"
	FieldNodeConfigurationSubnets          = "subnets"
	FieldNodeConfigurationSSHPublicKey     = "ssh_public_key"
	FieldNodeConfigurationImage            = "image"
	FieldNodeConfigurationTags             = "tags"
	FieldNodeConfigurationInitScript       = "init_script"
	FieldNodeConfigurationContainerRuntime = "container_runtime"
	FieldNodeConfigurationDockerConfig     = "docker_config"
	FieldNodeConfigurationKubeletConfig    = "kubelet_config"
	FieldNodeConfigurationAKS              = "aks"
	FieldNodeConfigurationEKS              = "eks"
	FieldNodeConfigurationKOPS             = "kops"
	FieldNodeConfigurationGKE              = "gke"
	FieldNodeConfigurationEKSTargetGroup   = "target_group"
	FieldNodeConfigurationAKSImageFamily   = "aks_image_family"
	FieldNodeConfigurationEKSImageFamily   = "eks_image_family"
)
View Source
const (
	FieldNodeTemplateArchitectures                            = "architectures"
	FieldNodeTemplateAZs                                      = "azs"
	FieldNodeTemplateComputeOptimized                         = "compute_optimized"
	FieldNodeTemplateComputeOptimizedState                    = "compute_optimized_state"
	FieldNodeTemplateConfigurationId                          = "configuration_id"
	FieldNodeTemplateConstraints                              = "constraints"
	FieldNodeTemplateCustomInstancesEnabled                   = "custom_instances_enabled"
	FieldNodeTemplateCustomInstancesWithExtendedMemoryEnabled = "custom_instances_with_extended_memory_enabled"
	FieldNodeTemplateCustomLabels                             = "custom_labels"
	FieldNodeTemplateCustomTaints                             = "custom_taints"
	FieldNodeTemplateEnableSpotDiversity                      = "enable_spot_diversity"
	FieldNodeTemplateExclude                                  = "exclude"
	FieldNodeTemplateExcludeNames                             = "exclude_names"
	FieldNodeTemplateFallbackRestoreRateSeconds               = "fallback_restore_rate_seconds"
	FieldNodeTemplateGpu                                      = "gpu"
	FieldNodeTemplateInclude                                  = "include"
	FieldNodeTemplateIncludeNames                             = "include_names"
	FieldNodeTemplateInstanceFamilies                         = "instance_families"
	FieldNodeTemplateIsDefault                                = "is_default"
	FieldNodeTemplateIsEnabled                                = "is_enabled"
	FieldNodeTemplateIsGpuOnly                                = "is_gpu_only"
	FieldNodeTemplateManufacturers                            = "manufacturers"
	FieldNodeTemplateMaxCount                                 = "max_count"
	FieldNodeTemplateMaxCpu                                   = "max_cpu"
	FieldNodeTemplateMaxMemory                                = "max_memory"
	FieldNodeTemplateMinCount                                 = "min_count"
	FieldNodeTemplateMinCpu                                   = "min_cpu"
	FieldNodeTemplateMinMemory                                = "min_memory"
	FieldNodeTemplateName                                     = "name"
	FieldNodeTemplateOnDemand                                 = "on_demand"
	FieldNodeTemplateOs                                       = "os"
	FieldNodeTemplateRebalancingConfigMinNodes                = "rebalancing_config_min_nodes"
	FieldNodeTemplateShouldTaint                              = "should_taint"
	FieldNodeTemplateSpot                                     = "spot"
	FieldNodeTemplateSpotDiversityPriceIncreaseLimitPercent   = "spot_diversity_price_increase_limit_percent"
	FieldNodeTemplateSpotInterruptionPredictionsEnabled       = "spot_interruption_predictions_enabled"
	FieldNodeTemplateSpotInterruptionPredictionsType          = "spot_interruption_predictions_type"
	FieldNodeTemplateStorageOptimized                         = "storage_optimized"
	FieldNodeTemplateStorageOptimizedState                    = "storage_optimized_state"
	FieldNodeTemplateUseSpotFallbacks                         = "use_spot_fallbacks"
	FieldNodeTemplateCustomPriority                           = "custom_priority"
	FieldNodeTemplateDedicatedNodeAffinity                    = "dedicated_node_affinity"
	FieldNodeTemplateAzName                                   = "az_name"
	FieldNodeTemplateInstanceTypes                            = "instance_types"
	FieldNodeTemplateAffinityName                             = "affinity"
	FieldNodeTemplateAffinityKeyName                          = "key"
	FieldNodeTemplateAffinityOperatorName                     = "operator"
	FieldNodeTemplateAffinityValuesName                       = "values"
	FieldNodeTemplateBurstableInstances                       = "burstable_instances"
	FieldNodeTemplateCustomerSpecific                         = "customer_specific"
	FieldNodeTemplateCPUManufacturers                         = "cpu_manufacturers"
)
View Source
const (
	TaintEffectNoSchedule = "NoSchedule"
	TaintEffectNoExecute  = "NoExecute"
)
View Source
const (
	ArchAMD64 = "amd64"
	ArchARM64 = "arm64"
	OsLinux   = "linux"
	OsWindows = "windows"
)
View Source
const (
	NodeSelectorOperationIn      = "In"
	NodeSelectorOperationNotIn   = "NotIn"
	NodeSelectorOperationExists  = "Exists"
	NodeSelectorOperationDoesNot = "DoesNotExist"
	NodeSelectorOperationGt      = "Gt"
	NodeSelectorOperationLt      = "Lt"
)
View Source
const (
	FieldOrganizationMembersOrganizationID = "organization_id"
	FieldOrganizationMembersOwners         = "owners"
	FieldOrganizationMembersViewers        = "viewers"
	FieldOrganizationMembersMembers        = "members"
)
View Source
const (
	FieldSSOConnectionName                   = "name"
	FieldSSOConnectionEmailDomain            = "email_domain"
	FieldSSOConnectionAdditionalEmailDomains = "additional_email_domains"

	FieldSSOConnectionAAD            = "aad"
	FieldSSOConnectionADDomain       = "ad_domain"
	FieldSSOConnectionADClientID     = "client_id"
	FieldSSOConnectionADClientSecret = "client_secret"

	FieldSSOConnectionOkta             = "okta"
	FieldSSOConnectionOktaDomain       = "okta_domain"
	FieldSSOConnectionOktaClientID     = "client_id"
	FieldSSOConnectionOktaClientSecret = "client_secret"
)
View Source
const (
	FieldOrganizationName = "name"
)

Variables

This section is empty.

Functions

func Provider

func Provider(version string) *schema.Provider

Types

type CASTCommitmentFields

type CASTCommitmentFields struct {
	ID              *string                         `mapstructure:"id,omitempty"` // ID of the commitment
	AllowedUsage    *float64                        `mapstructure:"allowed_usage,omitempty"`
	Prioritization  *bool                           `mapstructure:"prioritization,omitempty"`
	Status          *string                         `mapstructure:"status,omitempty"`
	Assignments     []*commitmentAssignmentResource `mapstructure:"assignments,omitempty"`
	ScalingStrategy *string                         `mapstructure:"scaling_strategy,omitempty"`
}

NOTE: This type needs to be exported for mapstructure's `squash` tag to work properly

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

type ProviderConfig

type ProviderConfig struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
gke
sdk
Package sdk provides primitives to interact with the openapi HTTP API.
Package sdk provides primitives to interact with the openapi HTTP API.
mock
Package mock_sdk is a generated GoMock package.
Package mock_sdk is a generated GoMock package.

Jump to

Keyboard shortcuts

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