Version: v1.2.1 Latest Latest

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

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




View Source
const (
	// Status to indicate that the desired endpointConfig has been created in SageMaker.
	CreatedStatus = "Created"

	// Status to indicate that the desired endpointConfig has been deleted in SageMaker.
	DeletedStatus = "Deleted"

	// Defines the maximum number of characters in a SageMaker Endpoint Config Resource name
	MaxEndpointConfigNameLength = 63

This file is almost identical to controllers/model/model_controller.go. We should create a reconciler that implements common logic and use it here and in model controller. (cadedaniel: I tried but did not have enough time to think how to do it using composition instead of inheritance for release). TODO refactor common code with model_controller.


This section is empty.


This section is empty.


type EndpointConfigReconciler

type EndpointConfigReconciler struct {
	Log          logr.Logger
	PollInterval time.Duration
	// contains filtered or unexported fields

EndpointConfigReconciler reconciles a EndpointConfig object

func NewEndpointConfigReconciler

func NewEndpointConfigReconciler(client client.Client, log logr.Logger, pollInterval time.Duration) *EndpointConfigReconciler

func (*EndpointConfigReconciler) Reconcile

func (r *EndpointConfigReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*EndpointConfigReconciler) SetupWithManager

func (r *EndpointConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

TODO add code that ignores status, metadata updates.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL