Documentation ¶
Index ¶
- func New() resource.Resource
- type AutoscalerGPULimit
- type AutoscalerResourceLimits
- type AutoscalerScaleDownConfig
- type ClusterAutoscalerResource
- func (r *ClusterAutoscalerResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ClusterAutoscalerResource) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *ClusterAutoscalerResource) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (r *ClusterAutoscalerResource) ImportState(ctx context.Context, request resource.ImportStateRequest, ...)
- func (r *ClusterAutoscalerResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ClusterAutoscalerResource) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (r *ClusterAutoscalerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ClusterAutoscalerResource) Update(ctx context.Context, request resource.UpdateRequest, ...)
- type ClusterAutoscalerResourceType
- type ClusterAutoscalerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoscalerGPULimit ¶
type AutoscalerGPULimit struct { Type types.String `tfsdk:"type"` Range autoscaler.ResourceRange `tfsdk:"range"` }
type AutoscalerResourceLimits ¶
type AutoscalerResourceLimits struct { MaxNodesTotal types.Int64 `tfsdk:"max_nodes_total"` Cores *autoscaler.ResourceRange `tfsdk:"cores"` Memory *autoscaler.ResourceRange `tfsdk:"memory"` GPUS []AutoscalerGPULimit `tfsdk:"gpus"` }
type AutoscalerScaleDownConfig ¶
type AutoscalerScaleDownConfig struct { Enabled types.Bool `tfsdk:"enabled"` UnneededTime types.String `tfsdk:"unneeded_time"` UtilizationThreshold types.String `tfsdk:"utilization_threshold"` DelayAfterAdd types.String `tfsdk:"delay_after_add"` DelayAfterDelete types.String `tfsdk:"delay_after_delete"` DelayAfterFailure types.String `tfsdk:"delay_after_failure"` }
type ClusterAutoscalerResource ¶
type ClusterAutoscalerResource struct {
// contains filtered or unexported fields
}
func (*ClusterAutoscalerResource) Configure ¶
func (r *ClusterAutoscalerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ClusterAutoscalerResource) Create ¶
func (r *ClusterAutoscalerResource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)
func (*ClusterAutoscalerResource) Delete ¶
func (r *ClusterAutoscalerResource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)
func (*ClusterAutoscalerResource) ImportState ¶
func (r *ClusterAutoscalerResource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)
func (*ClusterAutoscalerResource) Metadata ¶
func (r *ClusterAutoscalerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ClusterAutoscalerResource) Read ¶
func (r *ClusterAutoscalerResource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)
func (*ClusterAutoscalerResource) Schema ¶
func (r *ClusterAutoscalerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ClusterAutoscalerResource) Update ¶
func (r *ClusterAutoscalerResource) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)
type ClusterAutoscalerResourceType ¶
type ClusterAutoscalerResourceType struct { }
type ClusterAutoscalerState ¶
type ClusterAutoscalerState struct { Cluster types.String `tfsdk:"cluster"` BalanceSimilarNodeGroups types.Bool `tfsdk:"balance_similar_node_groups"` SkipNodesWithLocalStorage types.Bool `tfsdk:"skip_nodes_with_local_storage"` LogVerbosity types.Int64 `tfsdk:"log_verbosity"` MaxPodGracePeriod types.Int64 `tfsdk:"max_pod_grace_period"` PodPriorityThreshold types.Int64 `tfsdk:"pod_priority_threshold"` IgnoreDaemonsetsUtilization types.Bool `tfsdk:"ignore_daemonsets_utilization"` MaxNodeProvisionTime types.String `tfsdk:"max_node_provision_time"` BalancingIgnoredLabels types.List `tfsdk:"balancing_ignored_labels"` ResourceLimits *AutoscalerResourceLimits `tfsdk:"resource_limits"` ScaleDown *AutoscalerScaleDownConfig `tfsdk:"scale_down"` }
Click to show internal directories.
Click to hide internal directories.