Skip to content

Commit

Permalink
chore: Update dependencies to use last documentation tf plugin docs (#…
Browse files Browse the repository at this point in the history
…435)

* chore: Update go main version & dependencies

The terraform-plugin-docs requires latest go version so update those
main components:
- TF plugins docs: from 0.13.0 to 0.20.1
- GO: from 1.19 to 1.23
- GO_LINT: from 1.49.0 to 1.63.1
- GO_MOCKERY: from 2.22.1 to 2.50.2

* chore: Fix path to extract the examples

* doc: Update doc

* chore: Update mocks
  • Loading branch information
mzottola authored Jan 3, 2025
1 parent 0f44265 commit ba80411
Show file tree
Hide file tree
Showing 31 changed files with 487 additions and 242 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:
env:
# Go language version to use for building. This value should also be updated
# in the release workflow if changed.
GO_VERSION: 1.19
GO_VERSION: 1.23
TASK_VERSION: 3.x

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
golang 1.19
golang 1.23
task 3.38.0
golangci-lint 1.49.0
golangci-lint 1.63.1
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version: '3'
vars:
BINARY_FOLDER: bin
BINARY_NAME: terraform-provider-qovery
GOLANGCI_LINT_VERSION: v1.49.0
MOCKERY_VERSION: v2.22.1
GOLANGCI_LINT_VERSION: v1.63.1
MOCKERY_VERSION: v2.50.2

dotenv: ['.env']

Expand Down
12 changes: 6 additions & 6 deletions docs/data-sources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--liveness_probe--type--tcp))

<a id="nestedatt--healthchecks--liveness_probe--type--exec"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--liveness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.grpc`

Required:

Expand All @@ -179,7 +179,7 @@ Optional:


<a id="nestedatt--healthchecks--liveness_probe--type--http"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.http`

Required:

Expand Down Expand Up @@ -228,15 +228,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--readiness_probe--type--tcp))

<a id="nestedatt--healthchecks--readiness_probe--type--exec"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--readiness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.grpc`

Required:

Expand All @@ -248,7 +248,7 @@ Optional:


<a id="nestedatt--healthchecks--readiness_probe--type--http"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.http`

Required:

Expand Down
10 changes: 5 additions & 5 deletions docs/data-sources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Optional:
- `stable_override` (Attributes) Defines some overridden options for Qovery stable node pool (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools--stable_override))

<a id="nestedatt--features--karpenter--qovery_node_pools--requirements"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.stable_override`
### Nested Schema for `features.karpenter.qovery_node_pools.requirements`

Required:

Expand All @@ -119,14 +119,14 @@ Required:


<a id="nestedatt--features--karpenter--qovery_node_pools--default_override"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.stable_override`
### Nested Schema for `features.karpenter.qovery_node_pools.default_override`

Optional:

- `limits` (Attributes) Specifies the limits to apply on the default node pool (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools--stable_override--limits))
- `limits` (Attributes) Specifies the limits to apply on the default node pool (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools--default_override--limits))

<a id="nestedatt--features--karpenter--qovery_node_pools--stable_override--limits"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.stable_override.limits`
<a id="nestedatt--features--karpenter--qovery_node_pools--default_override--limits"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.default_override.limits`

Required:

Expand Down
12 changes: 6 additions & 6 deletions docs/data-sources/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--liveness_probe--type--tcp))

<a id="nestedatt--healthchecks--liveness_probe--type--exec"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--liveness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.grpc`

Required:

Expand All @@ -163,7 +163,7 @@ Optional:


<a id="nestedatt--healthchecks--liveness_probe--type--http"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.http`

Required:

Expand Down Expand Up @@ -212,15 +212,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--readiness_probe--type--tcp))

<a id="nestedatt--healthchecks--readiness_probe--type--exec"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--readiness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.grpc`

Required:

Expand All @@ -232,7 +232,7 @@ Optional:


<a id="nestedatt--healthchecks--readiness_probe--type--http"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.http`

Required:

Expand Down
12 changes: 6 additions & 6 deletions docs/data-sources/job.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--liveness_probe--type--tcp))

<a id="nestedatt--healthchecks--liveness_probe--type--exec"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--liveness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.grpc`

Required:

Expand All @@ -152,7 +152,7 @@ Optional:


<a id="nestedatt--healthchecks--liveness_probe--type--http"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.http`

Required:

Expand Down Expand Up @@ -201,15 +201,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--readiness_probe--type--tcp))

<a id="nestedatt--healthchecks--readiness_probe--type--exec"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--readiness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.grpc`

Required:

Expand All @@ -221,7 +221,7 @@ Optional:


<a id="nestedatt--healthchecks--readiness_probe--type--http"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.http`

Required:

Expand Down
13 changes: 6 additions & 7 deletions docs/resources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ resource "qovery_application" "my_application" {
```

You can find complete examples within these repositories:

* [Deploy an Application and Database within 3 environments](https://github.com/Qovery/terraform-examples/tree/main/examples/deploy-an-application-within-3-environments)
<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -230,15 +229,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--liveness_probe--type--tcp))

<a id="nestedatt--healthchecks--liveness_probe--type--exec"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--liveness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.grpc`

Required:

Expand All @@ -250,7 +249,7 @@ Optional:


<a id="nestedatt--healthchecks--liveness_probe--type--http"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.http`

Required:

Expand Down Expand Up @@ -299,15 +298,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--readiness_probe--type--tcp))

<a id="nestedatt--healthchecks--readiness_probe--type--exec"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--readiness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.grpc`

Required:

Expand All @@ -319,7 +318,7 @@ Optional:


<a id="nestedatt--healthchecks--readiness_probe--type--http"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.http`

Required:

Expand Down
11 changes: 5 additions & 6 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ resource "qovery_cluster" "my_cluster" {
```

You can find complete examples within these repositories:

* [Deploy an Application and Database within 3 environments](https://github.com/Qovery/terraform-examples/tree/main/examples/deploy-an-application-within-3-environments)
<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -148,7 +147,7 @@ Optional:
- `stable_override` (Attributes) Defines some overriden options for Qovery stable node pool (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools--stable_override))

<a id="nestedatt--features--karpenter--qovery_node_pools--requirements"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.stable_override`
### Nested Schema for `features.karpenter.qovery_node_pools.requirements`

Required:

Expand All @@ -158,14 +157,14 @@ Required:


<a id="nestedatt--features--karpenter--qovery_node_pools--default_override"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.stable_override`
### Nested Schema for `features.karpenter.qovery_node_pools.default_override`

Optional:

- `limits` (Attributes) Specifies the limits to apply on the default node pool (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools--stable_override--limits))
- `limits` (Attributes) Specifies the limits to apply on the default node pool (see [below for nested schema](#nestedatt--features--karpenter--qovery_node_pools--default_override--limits))

<a id="nestedatt--features--karpenter--qovery_node_pools--stable_override--limits"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.stable_override.limits`
<a id="nestedatt--features--karpenter--qovery_node_pools--default_override--limits"></a>
### Nested Schema for `features.karpenter.qovery_node_pools.default_override.limits`

Required:

Expand Down
12 changes: 6 additions & 6 deletions docs/resources/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--liveness_probe--type--tcp))

<a id="nestedatt--healthchecks--liveness_probe--type--exec"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--liveness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.grpc`

Required:

Expand All @@ -218,7 +218,7 @@ Optional:


<a id="nestedatt--healthchecks--liveness_probe--type--http"></a>
### Nested Schema for `healthchecks.liveness_probe.type.tcp`
### Nested Schema for `healthchecks.liveness_probe.type.http`

Required:

Expand Down Expand Up @@ -267,15 +267,15 @@ Optional:
- `tcp` (Attributes) Check that the given port accepting connection (see [below for nested schema](#nestedatt--healthchecks--readiness_probe--type--tcp))

<a id="nestedatt--healthchecks--readiness_probe--type--exec"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.exec`

Required:

- `command` (List of String) The command and its arguments to exec


<a id="nestedatt--healthchecks--readiness_probe--type--grpc"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.grpc`

Required:

Expand All @@ -287,7 +287,7 @@ Optional:


<a id="nestedatt--healthchecks--readiness_probe--type--http"></a>
### Nested Schema for `healthchecks.readiness_probe.type.tcp`
### Nested Schema for `healthchecks.readiness_probe.type.http`

Required:

Expand Down
1 change: 0 additions & 1 deletion docs/resources/deployment_stage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ resource "qovery_deployment_stage" "my_deployment_stage" {
```

You can find complete examples within these repositories:

* [Deploy services with a specific order](https://github.com/Qovery/terraform-examples/tree/main/examples/deploy-services-with-a-specific-order)
<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
1 change: 0 additions & 1 deletion docs/resources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ resource "qovery_environment" "my_environment" {
```

You can find complete examples within these repositories:

* [Deploy an Application and Database within 3 environments](https://github.com/Qovery/terraform-examples/tree/main/examples/deploy-an-application-within-3-environments)
<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
Loading

0 comments on commit ba80411

Please sign in to comment.