Fix/logme params and update examples in dsa service docs (#644)
* APL-204: remove syslog use udp field from logme due to wrong implementation * APL-208: update examples and regenerate logs * fix linting error * remove syslog-use-udp field from test * re-generate docs * remove doc changes that were generated by make command * remove doc changes that were generated by make command * remove doc changes that were generated by make command * remove doc changes that were generated by make command * remove doc changes that were generated by make command * remove doc changes that were generated by make command * remove doc changes that were generated by make command
This commit is contained in:
parent
19fdcd5d10
commit
11875602b8
16 changed files with 36 additions and 56 deletions
|
|
@ -68,4 +68,3 @@ Read-Only:
|
|||
- `opensearch_tls_protocols` (List of String)
|
||||
- `sgw_acl` (String) Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
|
||||
- `syslog` (List of String) List of syslog servers to send logs to.
|
||||
- `syslog_use_udp` (String)
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@ data "stackit_resourcemanager_project" "example" {
|
|||
- `id` (String) Terraform's internal data source. ID. It is structured as "`container_id`".
|
||||
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}
|
||||
- `name` (String) Project name.
|
||||
- `parent_container_id` (String) Parent resource identifier. Both container ID (user-friendly) and UUID are supported
|
||||
- `parent_container_id` (String) Parent resource identifier. Both container ID (user-friendly) and UUID are supported
|
||||
|
|
@ -16,10 +16,10 @@ LogMe instance resource schema. Must have a `region` specified in the provider c
|
|||
resource "stackit_logme_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "2"
|
||||
plan_name = "stackit-logme2-1.2.50-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -76,4 +76,3 @@ Optional:
|
|||
- `opensearch_tls_protocols` (List of String)
|
||||
- `sgw_acl` (String) Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
|
||||
- `syslog` (List of String) List of syslog servers to send logs to.
|
||||
- `syslog_use_udp` (String)
|
||||
|
|
|
|||
|
|
@ -16,10 +16,10 @@ MariaDB instance resource schema. Must have a `region` specified in the provider
|
|||
resource "stackit_mariadb_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "10.11"
|
||||
plan_name = "stackit-mariadb-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -16,10 +16,10 @@ OpenSearch instance resource schema. Must have a `region` specified in the provi
|
|||
resource "stackit_opensearch_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "2"
|
||||
plan_name = "stackit-opensearch-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ RabbitMQ instance resource schema. Must have a `region` specified in the provide
|
|||
resource "stackit_rabbitmq_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "3.13"
|
||||
plan_name = "stackit-rabbitmq-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
consumer_timeout = 18000000
|
||||
enable_monitoring = false
|
||||
plugins = ["example-plugin1", "example-plugin2"]
|
||||
plugins = ["rabbitmq_consistent_hash_exchange", "rabbitmq_federation", "rabbitmq_tracing"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ Redis instance resource schema. Must have a `region` specified in the provider c
|
|||
resource "stackit_redis_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "7"
|
||||
plan_name = "stackit-redis-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
enable_monitoring = false
|
||||
down_after_milliseconds = 30000
|
||||
syslog = ["syslog.example.com:514"]
|
||||
syslog = ["logs4.your-syslog-endpoint.com:54321"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -40,4 +40,4 @@ resource "stackit_resourcemanager_project" "example" {
|
|||
|
||||
- `container_id` (String) Project container ID. Globally unique, user-friendly identifier.
|
||||
- `id` (String) Terraform's internal resource ID. It is structured as "`container_id`".
|
||||
- `project_id` (String) Project UUID identifier. This is the ID that can be used in most of the other resources to identify the project.
|
||||
- `project_id` (String) Project UUID identifier. This is the ID that can be used in most of the other resources to identify the project.
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
resource "stackit_logme_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "2"
|
||||
plan_name = "stackit-logme2-1.2.50-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
resource "stackit_mariadb_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "10.11"
|
||||
plan_name = "stackit-mariadb-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
resource "stackit_opensearch_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "2"
|
||||
plan_name = "stackit-opensearch-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
resource "stackit_rabbitmq_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "3.13"
|
||||
plan_name = "stackit-rabbitmq-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
consumer_timeout = 18000000
|
||||
enable_monitoring = false
|
||||
plugins = ["example-plugin1", "example-plugin2"]
|
||||
plugins = ["rabbitmq_consistent_hash_exchange", "rabbitmq_federation", "rabbitmq_tracing"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
resource "stackit_redis_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
version = "10"
|
||||
plan_name = "example-plan-name"
|
||||
version = "7"
|
||||
plan_name = "stackit-redis-1.2.10-replica"
|
||||
parameters = {
|
||||
sgw_acl = "x.x.x.x/x,y.y.y.y/y"
|
||||
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
||||
enable_monitoring = false
|
||||
down_after_milliseconds = 30000
|
||||
syslog = ["syslog.example.com:514"]
|
||||
syslog = ["logs4.your-syslog-endpoint.com:54321"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques
|
|||
"ism_deletion_after": "Combination of an integer and a timerange when an index will be considered \"old\" and can be deleted. Possible values for the timerange are `s`, `m`, `h` and `d`.",
|
||||
"ism_job_interval": "Jitter of the execution time.",
|
||||
"syslog": "List of syslog servers to send logs to.",
|
||||
"syslog-use-udp": "Defines if syslog will use UDP. Possible values: `yes`, `no`.",
|
||||
"opensearch-tls-ciphers": "List of ciphers to use for TLS.",
|
||||
}
|
||||
|
||||
|
|
@ -236,10 +235,6 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques
|
|||
ElementType: types.StringType,
|
||||
Computed: true,
|
||||
},
|
||||
"syslog_use_udp": schema.StringAttribute{
|
||||
Description: parametersDescriptions["syslog_use_udp"],
|
||||
Computed: true,
|
||||
},
|
||||
},
|
||||
Computed: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -76,7 +76,6 @@ type parametersModel struct {
|
|||
OpensearchTlsCiphers types.List `tfsdk:"opensearch_tls_ciphers"`
|
||||
OpensearchTlsProtocols types.List `tfsdk:"opensearch_tls_protocols"`
|
||||
Syslog types.List `tfsdk:"syslog"`
|
||||
SyslogUseUdp types.String `tfsdk:"syslog_use_udp"` // Deprecated
|
||||
}
|
||||
|
||||
// Types corresponding to parametersModel
|
||||
|
|
@ -103,7 +102,6 @@ var parametersTypes = map[string]attr.Type{
|
|||
"opensearch_tls_ciphers": basetypes.ListType{ElemType: types.StringType},
|
||||
"opensearch_tls_protocols": basetypes.ListType{ElemType: types.StringType},
|
||||
"syslog": basetypes.ListType{ElemType: types.StringType},
|
||||
"syslog_use_udp": basetypes.StringType{}, // Deprecated
|
||||
}
|
||||
|
||||
// NewInstanceResource is a helper function to simplify the provider implementation.
|
||||
|
|
@ -184,7 +182,6 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
|
|||
"ism_deletion_after": "Combination of an integer and a timerange when an index will be considered \"old\" and can be deleted. Possible values for the timerange are `s`, `m`, `h` and `d`.",
|
||||
"ism_job_interval": "Jitter of the execution time.",
|
||||
"syslog": "List of syslog servers to send logs to.",
|
||||
"syslog-use-udp": "Defines if syslog will use UDP. Possible values: `yes`, `no`.",
|
||||
"opensearch-tls-ciphers": "List of ciphers to use for TLS.",
|
||||
}
|
||||
|
||||
|
|
@ -364,12 +361,6 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
|
|||
Optional: true,
|
||||
Computed: true,
|
||||
},
|
||||
"syslog_use_udp": schema.StringAttribute{
|
||||
Description: parametersDescriptions["syslog_use_udp"],
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
DeprecationMessage: "The `syslog_use_udp` field has been deprecated because it is not required. Will be removed after July 22th 2025.",
|
||||
},
|
||||
},
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
|
|
@ -690,7 +681,6 @@ func mapParameters(params map[string]interface{}) (types.Object, error) {
|
|||
"fluentd_udp",
|
||||
"opensearch_tls_ciphers",
|
||||
"opensearch_tls_protocols",
|
||||
"syslog_use_udp",
|
||||
}
|
||||
if slices.Contains(hyphenAttributes, attribute) {
|
||||
alteredAttribute := strings.ReplaceAll(attribute, "_", "-")
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ var fixtureModelParameters = types.ObjectValueMust(parametersTypes, map[string]a
|
|||
types.StringValue("syslog"),
|
||||
types.StringValue("syslog2"),
|
||||
}),
|
||||
"syslog_use_udp": types.StringValue("udp"),
|
||||
})
|
||||
|
||||
var fixtureNullModelParameters = types.ObjectValueMust(parametersTypes, map[string]attr.Value{
|
||||
|
|
@ -70,7 +69,6 @@ var fixtureNullModelParameters = types.ObjectValueMust(parametersTypes, map[stri
|
|||
"opensearch_tls_ciphers": types.ListNull(types.StringType),
|
||||
"opensearch_tls_protocols": types.ListNull(types.StringType),
|
||||
"syslog": types.ListNull(types.StringType),
|
||||
"syslog_use_udp": types.StringNull(),
|
||||
})
|
||||
|
||||
var fixtureInstanceParameters = logme.InstanceParameters{
|
||||
|
|
@ -158,7 +156,6 @@ func TestMapFields(t *testing.T) {
|
|||
"opensearch-tls-ciphers": []string{"ciphers", "ciphers2"},
|
||||
"opensearch-tls-protocols": []string{"protocols", "protocols2"},
|
||||
"syslog": []string{"syslog", "syslog2"},
|
||||
"syslog-use-udp": "udp",
|
||||
},
|
||||
},
|
||||
Model{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue