-
Notifications
You must be signed in to change notification settings - Fork 420
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
[Fix] Support updating all attributes of databricks_model_serving
#4575
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
// Update the rate limit configuration for a model serving endpoint. | ||
func updateRateLimits(ctx context.Context, w *databricks.WorkspaceClient, name string, newRateLimits []serving.RateLimit, d *schema.ResourceData) error { |
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.
this endpoint is now deprecated, you can remove it
This API is deprecated for your Foundation Model endpoint. Please use AI Gateway to manage rate limits.
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Changes
Currently, it is only possible to update the config for
databricks_model_serving
resources. The Serving Endpoints API exposes separate APIs for updating different elements of serving endpoints, including the config, tags, rate limits, and AI gateway configuration. Because of this, we need to call each API separately when requested by a user.This PR adds support for updating these attributes. The provider will use
ResourceData
'sHasChanges()
method to determine whether each corresponding update method needs to be called.From what I can tell, it is not possible to update the route-optimized setting for model serving endpoints, so I've marked it as
ForceNew
to ensure endpoints are recreated appropriately if a user requests to enable or disable route optimization.Resolves #4564, Resolves #4038, Resolves #4589
Tests
TestAccModelServing
test, verifying that tags can be provided at creation, and that in update tags can be removed, updated, and added.