Skip to content
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

[Feature] added databricks_app resource #4099

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

[Feature] added databricks_app resource #4099

wants to merge 12 commits into from

Conversation

nkvuong
Copy link
Contributor

@nkvuong nkvuong commented Oct 12, 2024

Changes

  • Added databricks_app resource

Resolves #4084

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@nkvuong nkvuong marked this pull request as ready for review October 29, 2024 09:48
@nkvuong nkvuong requested review from a team as code owners October 29, 2024 09:48
@nkvuong nkvuong requested review from mgyucht and removed request for a team October 29, 2024 09:48
Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small changes in the doc required, otherwise code looks good

return err
}
if d.HasChanges("source_code_path", "mode") {
_, err = w.Apps.Deploy(ctx, apps.CreateAppDeploymentRequest{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait here as well?

resource "databricks_app" "this" {
name = "my-custom-app"
description = "My app"
source_code_path = "/Workspace/[email protected]/my_custom_app"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be /Workspace/Users/[email protected]/... ?

Comment on lines 28 to 31
One or more `resource` block with the following arguments:

* `name` - Name of the App Resource.
* `description` - Description of the App Resource.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it should be removed

return err
}
// now deploy the app, using the source code path
createAppDeployment.AppName = app.Name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we discussed it offline and agreed that the deployment won't be part of TF configuration. Instead, if an users want to deploy, they use CLI to do that. Otherwise it's confusing because we do the deployments only when source_code_path changed but we need to do deployments when source code is changed.

@pietern wdyt?

if err != nil {
return err
}
if d.HasChanges("source_code_path", "mode") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment above, I think we should remove app deployment altogether for now

@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/11836414954

Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 4099
  • Commit SHA: 0daeea175b1733d7789a5e60853fb0349d128118

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for Databricks Apps
4 participants