Skip to content

Commit

Permalink
fix: require directory names (#133)
Browse files Browse the repository at this point in the history
chore: make `directory` required for vcs configs
  • Loading branch information
jonmorehouse authored May 19, 2024
1 parent d47ff8a commit 1bb6e02
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 18 deletions.
37 changes: 37 additions & 0 deletions docs/resources/app_installer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "nuon_app_installer Resource - terraform-provider-nuon"
subcategory: ""
description: |-
A public installer page for a nuon app.
---

# nuon_app_installer (Resource)

A public installer page for a nuon app.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `app_id` (String) The application ID.
- `community_url` (String) Community url to a slack or discord, etc.
- `description` (String) Short description of app.
- `documentation_url` (String) Documentation url
- `github_url` (String) GitHub url, link to application.
- `homepage_url` (String) Homepage url
- `logo_url` (String) Logo image to display on page.
- `name` (String) App name to render on install page.
- `post_install_markdown` (String) Markdown that will be shown to users after a successful install. Supports interpolation.
- `slug` (String) URL slug to access app from.

### Optional

- `demo_url` (String) Demo url to show

### Read-Only

- `id` (String) The unique ID of the app.
5 changes: 1 addition & 4 deletions docs/resources/app_sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@ Optional:
Required:

- `branch` (String) The default branch to create new builds from.
- `directory` (String) The directory the component code is in. Use ./ for root.
- `repo` (String) The https clone url

Optional:

- `directory` (String) The directory the component code is in.


<a id="nestedblock--var"></a>
### Nested Schema for `var`
Expand Down
5 changes: 1 addition & 4 deletions docs/resources/docker_build_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,5 @@ Required:
Required:

- `branch` (String) The default branch to create new builds from.
- `directory` (String) The directory the component code is in. Use ./ for root.
- `repo` (String) The https clone url

Optional:

- `directory` (String) The directory the component code is in.
5 changes: 1 addition & 4 deletions docs/resources/helm_chart_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,9 @@ Optional:
Required:

- `branch` (String) The default branch to create new builds from.
- `directory` (String) The directory the component code is in. Use ./ for root.
- `repo` (String) The https clone url

Optional:

- `directory` (String) The directory the component code is in.


<a id="nestedblock--value"></a>
### Nested Schema for `value`
Expand Down
5 changes: 1 addition & 4 deletions docs/resources/terraform_module_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,9 @@ Required:
Required:

- `branch` (String) The default branch to create new builds from.
- `directory` (String) The directory the component code is in. Use ./ for root.
- `repo` (String) The https clone url

Optional:

- `directory` (String) The directory the component code is in.


<a id="nestedblock--var"></a>
### Nested Schema for `var`
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/shared_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func publicRepoAttribute() schema.SingleNestedAttribute {
Required: true,
},
"directory": schema.StringAttribute{
Description: "The directory the component code is in.",
Optional: true,
Description: "The directory the component code is in. Use ./ for root.",
Required: true,
},
},
}
Expand Down

0 comments on commit 1bb6e02

Please sign in to comment.