Fix Serving Endpoint resource field mapping for apps init flow#4878
Merged
Fix Serving Endpoint resource field mapping for apps init flow#4878
apps init flow#4878Conversation
The serving_endpoint appResourceSpec expected manifest field "id" mapped
to YAML field "name", but the AppKit manifest correctly uses field "name".
This mismatch caused databricks apps init to generate two variables
(serving_endpoint_name and serving_endpoint_id) with only the wrong one
populated, producing a broken databricks.yml.
Changes:
- generator: Change varFields from {"id","name"} to {"name","name"}
- listers: Return endpoint name (not UUID) as ListItem.ID, since the
databricks.yml serving_endpoint resource requires the endpoint name
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
Collaborator
|
Commit: 91c699f
20 interesting tests: 10 SKIP, 7 KNOWN, 3 flaky
Top 20 slowest tests (at least 2 minutes):
|
apps init flow
Suggested reviewersBased on git history of the changed files, these people are best suited to review:
Confidence: low Eligible reviewersBased on CODEOWNERS, these people or teams could also review: @databricks/eng-apps-devex Suggestions based on git history of 3 changed files (3 scored). See CODEOWNERS for path-specific ownership rules. |
calvarjorge
approved these changes
Apr 1, 2026
atilafassina
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proof: https://docs.databricks.com/gcp/en/dev-tools/bundles/resources#app-resources-serving_endpoint
Demo
(Tested against databricks/appkit@main...pkosiec/model-serving-impl)
Screen.Recording.2026-04-01.at.16.47.08.mov
Test plan
go test ./libs/apps/generator/...passesdatabricks apps initwith serving plugin produces correct single-variabledatabricks.yml