# README
Controllers Package
This package contains common controller utilities and packages for each controller.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ContainsString is a helper functions to check and remove string from a slice of strings.
CreateNewAWSSessionFromConfig returns an AWS session using AWS Config.
CreateSpecDiffersFromDescriptionErrorMessage returns the error message to use when a spec differs from its SageMaker description.
GetGeneratedJobName generates a Sagemaker name for various Kubernetes objects and subresources.
GetGeneratedResourceName creates a resource name from optional and required substrings given a maximum length constraint.
GetOrDefault is a helper function to return a default value.
HasDeletionTimestamp is a helper method that makes logic easier to read.
IgnoreNotFound ignores NotFound errors to prevent reconcile loops.
NewAWSConfigLoader creates an AWSConfigLoader with the default OS environment.
NewAWSConfigLoaderForEnv returns a AWSConfigLoader for the specified environment.
NoRequeue does not requeue when Requeue is False and duration is 0.
Now returns timestamp.
RemoveString removes a specific string from a splice and returns the rest.
RequeueAfterInterval requeues after a duration when duration > 0 is specified.
RequeueIfError requeues if an error is found.
RequeueImmediately requeues immediately when Requeue is True and no duration is specified.
RequeueImmediatelyUnlessGenerationChanged is a helper function which requeues immediately if the object generation has not changed.
# Constants
DefaultSageMakerEndpointEnvKey is the environment variable key of the default SageMaker endpoint to use.
ErrorStatus is the status when the operator cannot recover by itself by reconciling or to indicate that an error occurred during reconciliation.
InitializingJobStatus is the status stored on first touch of a job by a controller.
Constants for the various reconcile actions.
Constants for the various reconcile actions.
Constants for the various reconcile actions.
Constants for the various reconcile actions.
SagemakerOnKubernetesUserAgentAddition is the string that will be added to user agent.
SageMakerResourceFinalizerName is the name of the finalizer that is installed onto managed etcd resources.
# Structs
AWSConfigLoader is a simple struct to facilitate loading AWS config with region- and endpoint-overrides.
# Type aliases
ApplicationAutoscalingClientProvider is a Type for function that returns a ApplicationAutoscaling client.
ReconcileAction is a helper type that describes the action to perform on a resource.
SageMakerClientProvider is a Type for function that returns a SageMaker client.