-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sagemaker Endpoint Resource #1034
Conversation
Signed-off-by: Blake Romano <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! It sounds like you need a bit of help getting your local dev environment set up properly. The command to use to run codegen is simply make generate
. You should also test your example using make e2e UPTEST_EXAMPLE_LIST=config/examples/sagemaker/endpoint.yaml
. You'll need to install kind, kubectl, and a few other tools, and configure aws credentials in an env var as explained in a comment in the Makefile. Yes, you can make an env var with newlines in it.
Signed-off-by: Blake Romano <[email protected]>
matchLabels: | ||
testing.upbound.io/example-name: example | ||
primaryContainer: | ||
- image: ${data.aws_account_id}.dkr.ecr.us-east-1.amazonaws.com/sagemaker-scikit-learn:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only reason for the manual intervention annotation? I'm not very familiar with Sagemaker, but couldn't you just define the endpoint and EndpointConfiguration in here, and not have a model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to have a model for an EndpointConfiguration and need an EndpointConfiguration for an Endpoint hence the need for the label
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your efforts in this PR @blakeromano, I left a few comments for you to consider.
Please fill in how you tested the resource after all corrections as in this PR.
Signed-off-by: Blake Romano <[email protected]>
I believe I have fixed all the PR comments and have updated my comment with a way I was able to validate endpoint creation being successful with Crossplane locally. @turkenf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your contribution @blakeromano, I just left a small comment that you should do before merging. Since these examples will appear on the marketplace, it would be better to remove your account ID as I mentioned in the comment below.
Co-authored-by: Fatih Türken <[email protected]>
Description of your changes
Adds Sagemaker Endpoint resource.
Fixes #1029
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
This requires an image that can be created/deleted only from the AWS CLI. In this case I use a public image from ECR of
683313688378.dkr.ecr.us-east-1.amazonaws.com/sagemaker-scikit-learn:0.23-1-cpu-py3
found here: https://docs.aws.amazon.com/sagemaker/latest/dg-ecr-paths/ecr-us-east-2.html#sklearn-us-east-2.titleI update the Model resource with the full image reference for the key:
spec.forProvider.primaryContainer[0]
I see the following output once I apply that and let resources create: