v1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostingAutoscalingPolicy

type HostingAutoscalingPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HostingAutoscalingPolicySpec   `json:"spec"`
	Status HostingAutoscalingPolicyStatus `json:"status,omitempty"`
}

HostingAutoscalingPolicy is the Schema for the HostingAutoscalingPolicy API

func (*HostingAutoscalingPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostingAutoscalingPolicy.

func (*HostingAutoscalingPolicy) DeepCopyInto

func (in *HostingAutoscalingPolicy) DeepCopyInto(out *HostingAutoscalingPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HostingAutoscalingPolicy) DeepCopyObject

func (in *HostingAutoscalingPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HostingAutoscalingPolicyList

type HostingAutoscalingPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HostingAutoscalingPolicy `json:"items"`
}

HostingAutoscalingPolicyList contains a list of HostingAutoscalingPolicies

func (*HostingAutoscalingPolicyList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostingAutoscalingPolicyList.

func (*HostingAutoscalingPolicyList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HostingAutoscalingPolicyList) DeepCopyObject

func (in *HostingAutoscalingPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HostingAutoscalingPolicySpec

type HostingAutoscalingPolicySpec struct {
	Region *string `json:"region"`

	MinCapacity *int64 `json:"minCapacity,omitempty"`
	MaxCapacity *int64 `json:"maxCapacity,omitempty"`

	ScalableDimension *string `json:"scalableDimension,omitempty"`

	// The autoscaling policy name. This is optional for the SageMaker K8s operator. If it is empty,
	// the operator will populate it with a generated name.
	// +kubebuilder:validation:MaxLength=256
	PolicyName *string `json:"policyName,omitempty"`

	// The autoscaling policy type. This is optional for the SageMaker K8s operator. If it is empty,
	// the operator will populate it with TargetTrackingScaling
	PolicyType *string `json:"policyType,omitempty"`

	// +kubebuilder:validation:MinItems=1
	ResourceID []*commonv1.AutoscalingResource `json:"resourceId,omitempty"`

	ServiceNamespace *string `json:"serviceNamespace,omitempty"`

	SuspendedState *commonv1.HAPSuspendedState `json:"suspendedState,omitempty"`

	// A custom SageMaker endpoint to use when communicating with SageMaker.
	// +kubebuilder:validation:Pattern="^(https|http)://.*$"
	SageMakerEndpoint                        *string                                     `json:"sageMakerEndpoint,omitempty"`
	TargetTrackingScalingPolicyConfiguration *commonv1.TargetTrackingScalingPolicyConfig `json:"targetTrackingScalingPolicyConfiguration,omitempty"`
}

HostingAutoscalingPolicySpec defines the desired state of the cluster for HostingAutoscalingPolicy

func (*HostingAutoscalingPolicySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostingAutoscalingPolicySpec.

func (*HostingAutoscalingPolicySpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostingAutoscalingPolicyStatus

type HostingAutoscalingPolicyStatus struct {
	PolicyName                     string   `json:"policyName,omitempty"`
	HostingAutoscalingPolicyStatus string   `json:"hostingAutoscalingPolicyStatus,omitempty"`
	ResourceIDList                 []string `json:"resourceIDList,omitempty"`

	// Field to store additional information, for example if
	// we are unable to check the status we update this.
	Additional string `json:"additional,omitempty"`

	// The last time that we checked the status of the job.
	LastCheckTime *metav1.Time `json:"lastCheckTime,omitempty"`
}

HostingAutoscalingPolicyStatus defines the observed state of HostingAutoscalingPolicy

func (*HostingAutoscalingPolicyStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostingAutoscalingPolicyStatus.

func (*HostingAutoscalingPolicyStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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