-
Notifications
You must be signed in to change notification settings - Fork 167
Added support for lifecycle.started for clusters #5150
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
Open
andrewnester
wants to merge
8
commits into
main
Choose a base branch
from
feat/lifecycle-started-clusters
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9b44214
Added support for lifecycle.started for clusters
andrewnester 04a5ea8
fix generations
andrewnester 27a1b57
fix lint
andrewnester 75e051f
fix out.test.toml
andrewnester b85d142
fixes
andrewnester e369a20
set started only when certain
andrewnester 9ae157c
explicit started states
andrewnester 9bcaca6
has change except
andrewnester File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
acceptance/bundle/resources/clusters/deploy/update-and-resize/out.plan_.direct.txt
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
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
15 changes: 15 additions & 0 deletions
15
acceptance/bundle/resources/clusters/lifecycle-started-terraform-error/databricks.yml.tmpl
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| bundle: | ||
| name: lifecycle-started-$UNIQUE_NAME | ||
|
|
||
| workspace: | ||
| root_path: ~/.bundle/$UNIQUE_NAME | ||
|
|
||
| resources: | ||
| clusters: | ||
| mycluster: | ||
| cluster_name: $UNIQUE_NAME | ||
| spark_version: "15.4.x-scala2.12" | ||
| node_type_id: "i3.xlarge" | ||
| num_workers: 1 | ||
| lifecycle: | ||
| started: true |
3 changes: 3 additions & 0 deletions
3
acceptance/bundle/resources/clusters/lifecycle-started-terraform-error/out.test.toml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
acceptance/bundle/resources/clusters/lifecycle-started-terraform-error/output.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| === bundle plan fails with lifecycle.started on terraform engine | ||
| >>> errcode [CLI] bundle plan | ||
| Error: lifecycle.started is only supported in direct deployment mode | ||
| in databricks.yml:15:18 | ||
|
|
||
|
|
||
| Exit code: 1 | ||
|
|
||
| === bundle deploy fails with lifecycle.started on terraform engine | ||
| >>> errcode [CLI] bundle deploy | ||
| Error: lifecycle.started is only supported in direct deployment mode | ||
| in databricks.yml:15:18 | ||
|
|
||
|
|
||
| Exit code: 1 |
7 changes: 7 additions & 0 deletions
7
acceptance/bundle/resources/clusters/lifecycle-started-terraform-error/script
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| envsubst < databricks.yml.tmpl > databricks.yml | ||
|
|
||
| title "bundle plan fails with lifecycle.started on terraform engine" | ||
| trace errcode $CLI bundle plan | ||
|
|
||
| title "bundle deploy fails with lifecycle.started on terraform engine" | ||
| trace errcode $CLI bundle deploy |
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/resources/clusters/lifecycle-started-terraform-error/test.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Local = true | ||
| Cloud = true | ||
| RecordRequests = false | ||
|
|
||
| [EnvMatrix] | ||
| DATABRICKS_BUNDLE_ENGINE = ["terraform"] |
15 changes: 15 additions & 0 deletions
15
acceptance/bundle/resources/clusters/lifecycle-started-toggle/databricks.yml.tmpl
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| bundle: | ||
| name: lifecycle-started-toggle-$UNIQUE_NAME | ||
|
|
||
| workspace: | ||
| root_path: ~/.bundle/$UNIQUE_NAME | ||
|
|
||
| resources: | ||
| clusters: | ||
| mycluster: | ||
| cluster_name: $UNIQUE_NAME | ||
| spark_version: "15.4.x-scala2.12" | ||
| node_type_id: "i3.xlarge" | ||
| num_workers: 1 | ||
| lifecycle: | ||
| started: false |
3 changes: 3 additions & 0 deletions
3
acceptance/bundle/resources/clusters/lifecycle-started-toggle/out.test.toml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.