Skip to content

Commit 115bde6

Browse files
authored
Merge branch 'master' into feat/add_support_for_registar_domain
2 parents f233a98 + 09a924a commit 115bde6

File tree

135 files changed

+10190
-674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+10190
-674
lines changed

.golangci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ linters:
1818
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
1919
- errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted. [fast: false, auto-fix: false]
2020
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`. [fast: false, auto-fix: false]
21+
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
2122
- exptostd # Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix]
23+
- fatcontext # Detects nested contexts in loops and function literals. [auto-fix]
2224
- forbidigo # Forbids identifiers [fast: true, auto-fix: false]
2325
- gci # Gci controls golang package import order and makes it always deterministic. [fast: true, auto-fix: false]
2426
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid. [fast: true, auto-fix: false]
@@ -38,6 +40,7 @@ linters:
3840
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase [fast: false, auto-fix: false]
3941
- govet #(vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
4042
- grouper # An analyzer to analyze expression groups. [fast: true, auto-fix: false]
43+
- iface # Detect the incorrect use of interfaces, helping developers avoid interface pollution. [auto-fix]
4144
- importas # Enforces consistent import aliases [fast: false, auto-fix: false]
4245
- ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix: false]
4346
- intrange # intrange is a linter to find places where for loops could make use of an integer range. [fast: true, auto-fix: false]
@@ -86,7 +89,6 @@ linters:
8689
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
8790
- dupl # Tool for code clone detection [fast: true, auto-fix: false]
8891
- err113 # Golang linter to check the errors handling expressions [fast: false, auto-fix: false]
89-
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
9092
- exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false]
9193
- forcetypeassert # finds forced type assertions [fast: true, auto-fix: false]
9294
- funlen # Tool for detection of long functions [fast: true, auto-fix: false]

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ builds:
3030
goarch: '386'
3131
binary: '{{ .ProjectName }}_v{{ .Version }}'
3232
archives:
33-
- format: zip
33+
- formats: ['zip']
3434
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
3535
checksum:
3636
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'

docs/data-sources/baremetal_offer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page_title: "Scaleway: scaleway_baremetal_offer"
55

66
# scaleway_baremetal_offer
77

8-
Gets information about a baremetal offer. For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
8+
Gets information about a baremetal offer. For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
99

1010
## Example Usage
1111

docs/data-sources/baremetal_option.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ page_title: "Scaleway: scaleway_baremetal_option"
66
# scaleway_baremetal_option
77

88
Gets information about a baremetal option.
9-
For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
9+
For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
1010

1111
## Example Usage
1212

1313
```hcl
14-
# Get info by option name
14+
# Get info by option name
1515
data "scaleway_baremetal_option" "by_name" {
1616
name = "Remote Access"
1717
}
@@ -37,4 +37,4 @@ In addition to all above arguments, the following attributes are exported:
3737
~> **Important:** Baremetal options' IDs are [zoned](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111`
3838

3939
- `name` - The name of the option.
40-
- `manageable` - Is false if the option could not be added or removed.
40+
- `manageable` - Is false if the option could not be added or removed.

docs/data-sources/baremetal_os.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ page_title: "Scaleway: scaleway_baremetal_os"
66
# scaleway_baremetal_os
77

88
Gets information about a baremetal operating system.
9-
For more information, see [the documentation](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses).
9+
For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses).
1010

1111
You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw baremetal os list` to list all available operating systems.
1212

docs/data-sources/baremetal_server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ page_title: "Scaleway: scaleway_baremetal_server"
66
# scaleway_baremetal_server
77

88
Gets information about a baremetal server.
9-
For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
9+
For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
1010

1111
## Example Usage
1212

docs/data-sources/container.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,18 @@ In addition to all arguments above, the following attributes are exported:
9191

9292
- `deploy` - Boolean indicating whether the container is on a production environment.
9393

94+
- `sandbox` - Execution environment of the container.
95+
96+
- `heath_check` - Health check configuration block of the container.
97+
- `http` - HTTP health check configuration.
98+
- `path` - Path to use for the HTTP health check.
99+
- `failure_threshold` - Number of consecutive health check failures before considering the container unhealthy.
100+
- `interval`- Period between health checks (in seconds).
94101
- `sandbox` - (Optional) Execution environment of the container.
102+
- `scaling_option` - Configuration block used to decide when to scale up or down. Possible values:
103+
- `concurrent_requests_threshold` - Scale depending on the number of concurrent requests being processed per container instance.
104+
- `cpu_usage_threshold` - Scale depending on the CPU usage of a container instance.
105+
- `memory_usage_threshold`- Scale depending on the memory usage of a container instance.
95106

96107
- `status` - The container status.
97108

docs/data-sources/k8s_version.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ page_title: "Scaleway: scaleway_k8s_version"
66
# scaleway_k8s_version
77

88
Gets information about a Kubernetes version.
9-
For more information, see [the documentation](https://developers.scaleway.com/en/products/k8s/api).
9+
For more information, see the [API documentation](https://developers.scaleway.com/en/products/k8s/api).
1010

1111
You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions.
1212

@@ -43,4 +43,4 @@ In addition to all above arguments, the following attributes are exported:
4343

4444
- `available_cnis` - The list of supported Container Network Interface (CNI) plugins for this version.
4545
- `available_container_runtimes` - The list of supported container runtimes for this version.
46-
- `available_feature_gates` - The list of supported feature gates for this version.
46+
- `available_feature_gates` - The list of supported feature gates for this version.

docs/data-sources/vpc_public_gateway_dhcp_reservation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ page_title: "Scaleway: scaleway_vpc_public_gateway_dhcp_reservation"
66
# scaleway_vpc_public_gateway_dhcp_reservation
77

88
Gets information about a DHCP entry. For further information, please see the
9-
API [documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-dhcp-entries-list-dhcp-entries)/
9+
[API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-dhcp-entries-list-dhcp-entries).
1010

1111
## Example Dynamic
1212

docs/data-sources/vpc_public_gateway_ip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ page_title: "Scaleway: scaleway_vpc_public_gateway_ip"
77

88
Gets information about a Public Gateway public flexible IP address.
99

10-
For further information, please see the API [documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-ips-list-ips).
10+
For further information, please see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-ips-list-ips).
1111

1212
## Example Usage
1313

0 commit comments

Comments
 (0)