Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The process of creation has started and is in-progress. ReconcilingAutoscalingJobStatus = "Reconciling" // This Status signifies that the job has been successfully completed for both steps CreatedAutoscalingJobStatus = "Created" // Could have failed either at step1 or step2 FailedAutoscalingJobStatus = "Error" // This Status will likely not show up, is it needed DeletedAutoscalingJobStatus = "Deleted" // https://docs.aws.amazon.com/autoscaling/application/APIReference/API_ScalingPolicy.html MaxPolicyNameLength = 256 // Default values for Autoscaling in the SageMaker Service ScalableDimension = "sagemaker:variant:DesiredInstanceCount" PolicyType = "TargetTrackingScaling" DefaultAutoscalingPolicyName = "SageMakerEndpointInvocationScalingPolicy" DefaultSuspendedStateAttributeValue = false )
All the status used by the controller during reconciliation. This operator includes two steps. For the rest of the file these are - Step1: RegisterTargets; Step2: PutScalingPolicy
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { client.Client Log logr.Logger PollInterval time.Duration // contains filtered or unexported fields }
Reconciler reconciles a HAP object
func NewHostingAutoscalingPolicyReconciler ¶
func NewHostingAutoscalingPolicyReconciler(client client.Client, log logr.Logger, pollInterval time.Duration) *Reconciler
NewHostingAutoscalingPolicyReconciler creates a new reconciler with the default ApplicationAutoscaling client.
func (*Reconciler) Reconcile ¶
Reconcile attempts to reconcile the SageMaker resource state with the k8s desired state. TODO: Check if resource name above is correct or plural
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager configures the manager to recognise the controller.
Click to show internal directories.
Click to hide internal directories.