Skip to content

Commit

Permalink
docs(terraform-docs): generate docs and write to README.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Feb 23, 2024
1 parent 657a829 commit 435996c
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 164 deletions.
42 changes: 14 additions & 28 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,6 @@ The following resources are used by this module:
- https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource[null_resource.this] (resource)
- https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml[utils_deep_merge_yaml.values] (data source)

=== Required Inputs

The following input variables are required:

==== [[input_cluster_name]] <<input_cluster_name,cluster_name>>

Description: Name given to the cluster. Value used for the ingress' URL of the application.

Type: `string`

==== [[input_base_domain]] <<input_base_domain,base_domain>>

Description: Base domain of the cluster. Value used for the ingress' URL of the application.

Type: `string`

=== Optional Inputs

The following input variables are optional (have default values):
Expand Down Expand Up @@ -147,6 +131,14 @@ Type: `bool`

Default: `true`

==== [[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>

Description: Enable the middleware to add the cluster name in the URL when it is not present.

Type: `bool`

Default: `true`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -193,18 +185,6 @@ Description: ID to pass other modules in order to refer to this module as a depe
[cols="a,a,a,a,a",options="header,autowidth"]
|===
|Name |Description |Type |Default |Required
|[[input_cluster_name]] <<input_cluster_name,cluster_name>>
|Name given to the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_base_domain]] <<input_base_domain,base_domain>>
|Base domain of the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_argocd_project]] <<input_argocd_project,argocd_project>>
|Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application.
|`string`
Expand Down Expand Up @@ -285,6 +265,12 @@ object({
|`true`
|no

|[[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>
|Enable the middleware to add the cluster name in the URL when it is not present.
|`bool`
|`true`
|no

|===

= Outputs
Expand Down
14 changes: 14 additions & 0 deletions aks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ Type: `bool`

Default: `true`

==== [[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>

Description: Enable the middleware to add the cluster name in the URL when it is not present.

Type: `bool`

Default: `true`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -259,6 +267,12 @@ object({
|`true`
|no

|[[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>
|Enable the middleware to add the cluster name in the URL when it is not present.
|`bool`
|`true`
|no

|===

= Outputs
Expand Down
42 changes: 14 additions & 28 deletions eks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,6 @@ Source: ../nodeport/

Version:

=== Required Inputs

The following input variables are required:

==== [[input_cluster_name]] <<input_cluster_name,cluster_name>>

Description: Name given to the cluster. Value used for the ingress' URL of the application.

Type: `string`

==== [[input_base_domain]] <<input_base_domain,base_domain>>

Description: Base domain of the cluster. Value used for the ingress' URL of the application.

Type: `string`

=== Optional Inputs

The following input variables are optional (have default values):
Expand Down Expand Up @@ -135,6 +119,14 @@ Type: `bool`

Default: `true`

==== [[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>

Description: Enable the middleware to add the cluster name in the URL when it is not present.

Type: `bool`

Default: `true`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -167,18 +159,6 @@ Description: ID to pass other modules in order to refer to this module as a depe
[cols="a,a,a,a,a",options="header,autowidth"]
|===
|Name |Description |Type |Default |Required
|[[input_cluster_name]] <<input_cluster_name,cluster_name>>
|Name given to the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_base_domain]] <<input_base_domain,base_domain>>
|Base domain of the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_argocd_project]] <<input_argocd_project,argocd_project>>
|Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application.
|`string`
Expand Down Expand Up @@ -259,6 +239,12 @@ object({
|`true`
|no

|[[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>
|Enable the middleware to add the cluster name in the URL when it is not present.
|`bool`
|`true`
|no

|===

= Outputs
Expand Down
42 changes: 14 additions & 28 deletions kind/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,6 @@ The following resources are used by this module:

- https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/service[kubernetes_service.traefik] (data source)

=== Required Inputs

The following input variables are required:

==== [[input_cluster_name]] <<input_cluster_name,cluster_name>>

Description: Name given to the cluster. Value used for the ingress' URL of the application.

Type: `string`

==== [[input_base_domain]] <<input_base_domain,base_domain>>

Description: Base domain of the cluster. Value used for the ingress' URL of the application.

Type: `string`

=== Optional Inputs

The following input variables are optional (have default values):
Expand Down Expand Up @@ -147,6 +131,14 @@ Type: `bool`

Default: `true`

==== [[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>

Description: Enable the middleware to add the cluster name in the URL when it is not present.

Type: `bool`

Default: `true`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -199,18 +191,6 @@ Description: External IP address of Traefik LB service.
[cols="a,a,a,a,a",options="header,autowidth"]
|===
|Name |Description |Type |Default |Required
|[[input_cluster_name]] <<input_cluster_name,cluster_name>>
|Name given to the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_base_domain]] <<input_base_domain,base_domain>>
|Base domain of the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_argocd_project]] <<input_argocd_project,argocd_project>>
|Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application.
|`string`
Expand Down Expand Up @@ -291,6 +271,12 @@ object({
|`true`
|no

|[[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>
|Enable the middleware to add the cluster name in the URL when it is not present.
|`bool`
|`true`
|no

|===

= Outputs
Expand Down
42 changes: 14 additions & 28 deletions nodeport/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,6 @@ Source: ../

Version:

=== Required Inputs

The following input variables are required:

==== [[input_cluster_name]] <<input_cluster_name,cluster_name>>

Description: Name given to the cluster. Value used for the ingress' URL of the application.

Type: `string`

==== [[input_base_domain]] <<input_base_domain,base_domain>>

Description: Base domain of the cluster. Value used for the ingress' URL of the application.

Type: `string`

=== Optional Inputs

The following input variables are optional (have default values):
Expand Down Expand Up @@ -135,6 +119,14 @@ Type: `bool`

Default: `true`

==== [[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>

Description: Enable the middleware to add the cluster name in the URL when it is not present.

Type: `bool`

Default: `true`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -167,18 +159,6 @@ Description: ID to pass other modules in order to refer to this module as a depe
[cols="a,a,a,a,a",options="header,autowidth"]
|===
|Name |Description |Type |Default |Required
|[[input_cluster_name]] <<input_cluster_name,cluster_name>>
|Name given to the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_base_domain]] <<input_base_domain,base_domain>>
|Base domain of the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_argocd_project]] <<input_argocd_project,argocd_project>>
|Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application.
|`string`
Expand Down Expand Up @@ -259,6 +239,12 @@ object({
|`true`
|no

|[[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>
|Enable the middleware to add the cluster name in the URL when it is not present.
|`bool`
|`true`
|no

|===

= Outputs
Expand Down
42 changes: 14 additions & 28 deletions scaleway/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,6 @@ Source: ../nodeport/

Version:

=== Required Inputs

The following input variables are required:

==== [[input_cluster_name]] <<input_cluster_name,cluster_name>>

Description: Name given to the cluster. Value used for the ingress' URL of the application.

Type: `string`

==== [[input_base_domain]] <<input_base_domain,base_domain>>

Description: Base domain of the cluster. Value used for the ingress' URL of the application.

Type: `string`

=== Optional Inputs

The following input variables are optional (have default values):
Expand Down Expand Up @@ -135,6 +119,14 @@ Type: `bool`

Default: `true`

==== [[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>

Description: Enable the middleware to add the cluster name in the URL when it is not present.

Type: `bool`

Default: `true`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -167,18 +159,6 @@ Description: ID to pass other modules in order to refer to this module as a depe
[cols="a,a,a,a,a",options="header,autowidth"]
|===
|Name |Description |Type |Default |Required
|[[input_cluster_name]] <<input_cluster_name,cluster_name>>
|Name given to the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_base_domain]] <<input_base_domain,base_domain>>
|Base domain of the cluster. Value used for the ingress' URL of the application.
|`string`
|n/a
|yes

|[[input_argocd_project]] <<input_argocd_project,argocd_project>>
|Name of the Argo CD AppProject where the Application should be created. If not set, the Application will be created in a new AppProject only for this Application.
|`string`
Expand Down Expand Up @@ -259,6 +239,12 @@ object({
|`true`
|no

|[[input_enable_cluster_name_redirection_middleware]] <<input_enable_cluster_name_redirection_middleware,enable_cluster_name_redirection_middleware>>
|Enable the middleware to add the cluster name in the URL when it is not present.
|`bool`
|`true`
|no

|===

= Outputs
Expand Down
Loading

0 comments on commit 435996c

Please sign in to comment.