Skip to content

Commit

Permalink
Add doc to process customization
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Nov 21, 2023
1 parent 569239f commit 4c17b1b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/data-sources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ data "tsuru_app" "my-app" {

- `name` (String) Unique name of app

### Optional

- `metadata` (Block List, Max: 1) (see [below for nested schema](#nestedblock--metadata))

### Read-Only

- `cluster` (String)
Expand All @@ -33,12 +37,22 @@ data "tsuru_app" "my-app" {
- `internal_address` (Block List) (see [below for nested schema](#nestedblock--internal_address))
- `platform` (String)
- `pool` (String)
- `process` (List of Object) (see [below for nested schema](#nestedatt--process))
- `router` (Block List) (see [below for nested schema](#nestedblock--router))
- `tags` (List of String)
- `team_owner` (String)
- `teams` (List of String)
- `tsuru_provisioner` (String)

<a id="nestedblock--metadata"></a>
### Nested Schema for `metadata`

Optional:

- `annotations` (Map of String)
- `labels` (Map of String)


<a id="nestedblock--internal_address"></a>
### Nested Schema for `internal_address`

Expand All @@ -51,6 +65,25 @@ Read-Only:
- `version` (String)


<a id="nestedatt--process"></a>
### Nested Schema for `process`

Read-Only:

- `metadata` (List of Object) (see [below for nested schema](#nestedobjatt--process--metadata))
- `name` (String)
- `plan` (String)

<a id="nestedobjatt--process--metadata"></a>
### Nested Schema for `process.metadata`

Read-Only:

- `annotations` (Map of String)
- `labels` (Map of String)



<a id="nestedblock--router"></a>
### Nested Schema for `router`

Expand Down
23 changes: 23 additions & 0 deletions docs/resources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ resource "tsuru_app" "my-app" {
- `default_router` (String) Default router at creation of app
- `description` (String) Application description
- `metadata` (Block List, Max: 1) (see [below for nested schema](#nestedblock--metadata))
- `process` (Block List) (see [below for nested schema](#nestedblock--process))
- `restart_on_update` (Boolean) Restart app after applying changes
- `tags` (List of String) Tags
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
Expand All @@ -73,6 +74,28 @@ Optional:
- `labels` (Map of String)


<a id="nestedblock--process"></a>
### Nested Schema for `process`

Required:

- `name` (String)

Optional:

- `metadata` (Block List, Max: 1) (see [below for nested schema](#nestedblock--process--metadata))
- `plan` (String)

<a id="nestedblock--process--metadata"></a>
### Nested Schema for `process.metadata`

Optional:

- `annotations` (Map of String)
- `labels` (Map of String)



<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Expand Down

0 comments on commit 4c17b1b

Please sign in to comment.