Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 213
Added support for lifecycle.started option for apps#4672
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
b2e62722cbff325910d1c0c9ce975ea3d6a4a612827fc5b46df48e08464c1b834589cf93af424132ead9f9aee886370d8167de29d1e87fc51b59197cb2af591b3d1a46580b5c32480a6db4cc3588b4313b0a761afd8105458b5fbeab3fdbbecc3c7090bf2d2197b576a5966182d93e5f9bf4eae8c21f2d7b395095494b19f2b107b96425ad29d5c8ab69bb16beed2c5fcbd2ecb93f33fef5f09a6b34e1d46a6c348baadf21795ccd9481faed7d175abf736ed395c77cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,5 +7,5 @@ Deployment complete! | ||
| >>> [CLI] apps get app-[UNIQUE_NAME] | ||
| { | ||
| "compute_size": "MEDIUM" | ||
| "compute_size": "LARGE" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| bundle: | ||
| name: test-bundle-$UNIQUE_NAME | ||
| resources: | ||
| apps: | ||
| foo: | ||
| name: app-foo-$UNIQUE_NAME | ||
| source_code_path: ./app | ||
| lifecycle: | ||
| started: true | ||
| bar: | ||
| name: app-bar-$UNIQUE_NAME | ||
| source_code_path: ./app | ||
| lifecycle: | ||
| started: ${resources.apps.foo.lifecycle.started} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| print("Hello world\!") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| bundle: | ||
| name: test_lifecycle_started_validation | ||
| resources: | ||
| jobs: | ||
| my_job: | ||
| name: my_job | ||
| lifecycle: | ||
| started: true | ||
| apps: | ||
| my_app: | ||
| name: my_app | ||
| source_code_path: ./app | ||
| lifecycle: | ||
| started: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| >>> errcode [CLI] bundle plan | ||
| Warning: unknown field: started | ||
| at resources.jobs.my_job.lifecycle | ||
| in databricks.yml:9:9 | ||
| create apps.my_app | ||
| create jobs.my_job | ||
| Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| >>> errcode [CLI] bundle plan | ||
| Warning: unknown field: started | ||
| at resources.jobs.my_job.lifecycle | ||
| in databricks.yml:9:9 | ||
| Error: lifecycle.started is only supported in direct deployment mode | ||
| in databricks.yml:16:18 | ||
| Exit code: 1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| trace errcode $CLI bundle plan >> out.$DATABRICKS_BUNDLE_ENGINE.txt 2>&1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Ignore = [".databricks"] | ||
| [EnvMatrix] | ||
| DATABRICKS_BUNDLE_ENGINE = ["direct", "terraform"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| bundle: | ||
| name: test_lifecycle_started | ||
| resources: | ||
| jobs: | ||
| my_job: | ||
| name: my_job | ||
| lifecycle: | ||
| started: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Warning: unknown field: started | ||
| at resources.jobs.my_job.lifecycle | ||
| in databricks.yml:9:9 | ||
| create jobs.my_job | ||
| Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| errcode $CLI bundle plan |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Local = true | ||
| Cloud = false | ||
| Ignore = [".databricks"] | ||
| [EnvMatrix] | ||
| DATABRICKS_BUNDLE_ENGINE = ["direct"] | ||
andrewnester marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -93,14 +93,14 @@ resources.apps.*.compute_status *apps.ComputeStatus ALL | ||
| resources.apps.*.compute_status.active_instances int ALL | ||
| resources.apps.*.compute_status.message string ALL | ||
| resources.apps.*.compute_status.state apps.ComputeState ALL | ||
| resources.apps.*.config *resources.AppConfig INPUT | ||
| resources.apps.*.config.command []string INPUT | ||
| resources.apps.*.config.command[*] string INPUT | ||
| resources.apps.*.config.env []resources.AppEnvVar INPUT | ||
| resources.apps.*.config.env[*] resources.AppEnvVar INPUT | ||
| resources.apps.*.config.env[*].name string INPUT | ||
| resources.apps.*.config.env[*].value string INPUT | ||
| resources.apps.*.config.env[*].value_from string INPUT | ||
| resources.apps.*.config *resources.AppConfig ALL | ||
| resources.apps.*.config.command []string ALL | ||
| resources.apps.*.config.command[*] string ALL | ||
| resources.apps.*.config.env []resources.AppEnvVar ALL | ||
| resources.apps.*.config.env[*] resources.AppEnvVar ALL | ||
| resources.apps.*.config.env[*].name string ALL | ||
| resources.apps.*.config.env[*].value string ALL | ||
| resources.apps.*.config.env[*].value_from string ALL | ||
| resources.apps.*.create_time string ALL | ||
| resources.apps.*.creator string ALL | ||
| resources.apps.*.default_source_code_path string ALL | ||
| @@ -112,18 +112,21 @@ resources.apps.*.effective_user_api_scopes[*] string ALL | ||
| resources.apps.*.git_repository *apps.GitRepository ALL | ||
| resources.apps.*.git_repository.provider string ALL | ||
| resources.apps.*.git_repository.url string ALL | ||
| resources.apps.*.git_source *apps.GitSource INPUT | ||
| resources.apps.*.git_source.branch string INPUT | ||
| resources.apps.*.git_source.commit string INPUT | ||
| resources.apps.*.git_source.git_repository *apps.GitRepository INPUT | ||
| resources.apps.*.git_source.git_repository.provider string INPUT | ||
| resources.apps.*.git_source.git_repository.url string INPUT | ||
| resources.apps.*.git_source.resolved_commit string INPUT | ||
| resources.apps.*.git_source.source_code_path string INPUT | ||
| resources.apps.*.git_source.tag string INPUT | ||
| resources.apps.*.git_source *apps.GitSource ALL | ||
| resources.apps.*.git_source.branch string ALL | ||
| resources.apps.*.git_source.commit string ALL | ||
| resources.apps.*.git_source.git_repository *apps.GitRepository ALL | ||
| resources.apps.*.git_source.git_repository.provider string ALL | ||
| resources.apps.*.git_source.git_repository.url string ALL | ||
| resources.apps.*.git_source.resolved_commit string ALL | ||
| resources.apps.*.git_source.source_code_path string ALL | ||
| resources.apps.*.git_source.tag string ALL | ||
| resources.apps.*.id string ALL | ||
| resources.apps.*.lifecycle *dresources.AppStateLifecycle REMOTE STATE | ||
| resources.apps.*.lifecycle *resources.LifecycleWithStarted INPUT | ||
| resources.apps.*.lifecycle resources.Lifecycle INPUT | ||
| resources.apps.*.lifecycle.prevent_destroy bool INPUT | ||
| resources.apps.*.lifecycle.started *bool ALL | ||
andrewnester marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| resources.apps.*.modified_status string INPUT | ||
| resources.apps.*.name string ALL | ||
| resources.apps.*.oauth2_app_client_id string ALL | ||
| @@ -197,7 +200,7 @@ resources.apps.*.resources[*].uc_securable.securable_type apps.AppResourceUcSecu | ||
| resources.apps.*.service_principal_client_id string ALL | ||
| resources.apps.*.service_principal_id int64 ALL | ||
| resources.apps.*.service_principal_name string ALL | ||
| resources.apps.*.source_code_path string INPUT | ||
| resources.apps.*.source_code_path string ALL | ||
| resources.apps.*.space string ALL | ||
| resources.apps.*.telemetry_export_destinations []apps.TelemetryExportDestination ALL | ||
| resources.apps.*.telemetry_export_destinations[*] apps.TelemetryExportDestination ALL | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| print("Hello world!") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| bundle: | ||
| name: config-drift-$UNIQUE_NAME | ||
| resources: | ||
| apps: | ||
| myapp: | ||
| name: $UNIQUE_NAME | ||
| description: my_app | ||
| source_code_path: ./app | ||
| config: | ||
| command: | ||
| - python | ||
| - app.py | ||
| env: | ||
| - name: MY_VAR | ||
| value: original_value | ||
| lifecycle: | ||
| started: true |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.