Skip to content

Commit 4185dd1

Browse files
authored
Merge branch 'master' into feat/add-autoscaling-group
2 parents c5c39b7 + 22616d2 commit 4185dd1

File tree

425 files changed

+76127
-47551
lines changed

Some content is hidden

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

425 files changed

+76127
-47551
lines changed

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ formatters:
55
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
66
- gofumpt # Gofumpt checks whether code was gofumpt-ed. [fast: true, auto-fix: true]
77
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt. [fast: true, auto-fix: true]
8+
settings:
9+
gofmt:
10+
rewrite-rules:
11+
- pattern: interface{}
12+
replacement: any
813

914
linters:
1015
# Run golangci-lint linters to see the list of all linters
@@ -29,6 +34,7 @@ linters:
2934
- exptostd # Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix]
3035
- fatcontext # Detects nested contexts in loops and function literals. [auto-fix]
3136
- forbidigo # Forbids identifiers [fast: true, auto-fix: false]
37+
- funcorder # Checks the order of functions, methods, and constructors. [fast]
3238
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid. [fast: true, auto-fix: false]
3339
- gochecksumtype # Run exhaustiveness checks on Go "sum types" [fast: false, auto-fix: false]
3440
- goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
@@ -64,6 +70,7 @@ linters:
6470
- promlinter # Check Prometheus metrics naming via promlint [fast: true, auto-fix: false]
6571
- protogetter # Reports direct reads from proto message fields when getters should be used [fast: false, auto-fix: true]
6672
- reassign # Checks that package variables are not reassigned [fast: false, auto-fix: false]
73+
- recvcheck # Checks for receiver type consistency.
6774
- revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint. [fast: false, auto-fix: false]
6875
- rowserrcheck # checks whether Err of rows is checked successfully [fast: false, auto-fix: false]
6976
- sloglint # ensure consistent code style when using log/slog [fast: false, auto-fix: false]

cmd/vcr-compressor/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func main() {
6868
continue
6969
}
7070

71-
var m map[string]interface{}
71+
var m map[string]any
7272

7373
err := json.Unmarshal([]byte(responseBody), &m)
7474
if err != nil {

cmd/vcr-viewer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func main() {
3737
log.Printf(" Status: %s\n", interaction.Response.Status)
3838
log.Printf(" Body: %s\n", interaction.Response.Body)
3939

40-
var m map[string]interface{}
40+
var m map[string]any
4141

4242
err := json.Unmarshal([]byte(interaction.Response.Body), &m)
4343
if err != nil {

docs/data-sources/lb_acls.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ In addition to all arguments above, the following attributes are exported:
5454
- `http_filter` - The HTTP filter to match.
5555
- `http_filter_value` - The possible values to match for a given HTTP filter.
5656
- `http_filter_option` - A list of possible values for the HTTP filter based on the HTTP header.
57-
- `invert` - The condition will be of type "unless" if invert is set to `true`
57+
- `invert` - The condition will be of type "unless" if invert is set to `true`
58+
- `ips_edge_services` - Defines whether Edge Services IPs should be matched.

docs/guides/migration_guide_v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Hence it is named: `scaleway_object_bucket`.
103103
### Migration guide for renamed resources
104104

105105
Because the resources changed their name, we cannot use automatic state migration.
106-
We will first get the identifier of the resource, then remove the resource from the terraform state and then use [`terraform import`](https://www.terraform.io/docs/import/usage.html) to import existing resources to a renamed resource.
106+
We will first get the identifier of the resource, then remove the resource from the terraform state and then use [`terraform import`](https://www.terraform.io/terraform/cli/import) to import existing resources to a renamed resource.
107107

108108
For instance, let's suppose that you have resource in `fr-par-1` such as:
109109

docs/resources/container.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ The following arguments are supported:
111111

112112
- `args` - (Optional) Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
113113

114+
- `private_network_id` (Optional) The ID of the Private Network the container is connected to.
115+
116+
~> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
117+
114118
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
115119

116120
## Attributes Reference

docs/resources/container_namespace.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ The following arguments are supported:
4040

4141
- `secret_environment_variables` - (Optional) The secret environment variables of the namespace.
4242

43+
- `activate_vpc_integration` - (Optional) Activates VPC integration for the namespace. Containers of a namespace with VPC integration activated will be able to connect to a Private Network.
44+
45+
~> **Important** Updates to `activate_vpc_integration` will recreate the namespace.
46+
4347
## Attributes Reference
4448

4549
The `scaleway_container_namespace` resource exports certain attributes once the Containers namespace has been created. These attributes can be referenced in other parts of your Terraform configuration.

docs/resources/function.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ The following arguments are supported:
9999

100100
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the functions namespace is associated with.
101101

102+
- `private_network_id` (Optional) The ID of the Private Network the function is connected to.
103+
104+
~> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
102105

103106
## Attributes Reference
104107

docs/resources/function_namespace.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ The following arguments are supported:
4040

4141
- `secret_environment_variables` - (Optional) The secret environment variables of the namespace.
4242

43+
- `activate_vpc_integration` - (Optional) Activates VPC integration for the namespace. Functions of a namespace with VPC integration activated will be able to connect to a Private Network.
44+
45+
~> **Important** Updates to `activate_vpc_integration` will recreate the namespace.
46+
4347
## Attributes Reference
4448

4549
The `scaleway_function_namespace` resource exports certain attributes once the Functions namespace has been created. These attributes can be referenced in other parts of your Terraform configuration.

docs/resources/instance_server.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ attached to the server. Updates to this field will trigger a stop/start of the s
260260

261261
- `protected` - (Optional) Set to true to activate server protection option.
262262

263+
- `admin_password_encryption_ssh_key_id` - (Optional) The ID of the SSH RSA key that will be used to encrypt the initial admin password for OS requiring it.
264+
Mandatory for Windows OS. The public_key value of this key is used to encrypt the admin password.
265+
When set to an empty string, it resets this value and admin_password_encrypted_value to an empty string so a new password may be generated.
266+
263267
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the server should be created.
264268

265269
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the server is associated with.

0 commit comments

Comments
 (0)