-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Deployments): support StorageDocumentId (#262)
* feat(Deployments): support storage_document_id Adds support for `storage_document_id` in Deployments. Related to https://linear.app/prefect/issue/PLA-185/support-for-deployments-resource * Skip specify StorageDocumentID if unset When a StorageDocumentID, which is of type UUID, is not provided, it defaulted to a null UUID, which is `0000...`. This meant that if you didn't provide a StorageDocumentID, you wouldn't be able to create a deployment because it couldn't find a storage document by that null UUID. This uses pointers instead, so if it's not provided we get `nil` instead of a "null" UUID (`0000...`). * Use an ephemeral storage block Rather than the static storage block created for testing, this test suite will now create an ephemeral storage block ("github-repository" type) and we'll refer to its ID for the Deployment's StorageDocumentID field. * Use docs template for Deployments, update example - Uses the terraform-docs template for Deployment resources - Updates the example to show storage_document_id * Replace reference to 'mitch' in examples
- Loading branch information
1 parent
b64c032
commit 60fb1f6
Showing
6 changed files
with
93 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,23 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{.Description}} | ||
|
||
## Example Usage | ||
|
||
{{tffile .ExampleFile}} | ||
|
||
{{.SchemaMarkdown | trimspace}} | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
{{codefile "shell" .ImportFile}} |