Skip to content

Commit

Permalink
Make hash optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysmdnz committed Nov 8, 2023
1 parent d344f86 commit 5c33dd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/resources/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ Sample resource in the Terraform provider containerregistry.
### Required

- `image_tarball` (String) Image tarball thing.
- `image_tarball_hash` (String) Hash of the image tarball.
- `remote_tag` (String) The tag to save the image to.

### Optional

- `image_tarball_hash` (String) Hash of the image tarball.

### Read-Only

- `id` (String) The ID of this resource.
3 changes: 2 additions & 1 deletion provider/resource_containerregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func resourceContainerregistry() *schema.Resource {
// This description is used by the documentation generator and the language server.
Description: "Hash of the image tarball.",
Type: schema.TypeString,
Required: true,
Required: false,
Optional: true,
ForceNew: true,
},
"remote_tag": {
Expand Down

0 comments on commit 5c33dd3

Please sign in to comment.