Skip to content

Commit e2e5f19

Browse files
Improve description for default fields (#369)
1 parent e4bbcfd commit e2e5f19

10 files changed

Lines changed: 26 additions & 26 deletions

File tree

docs/resources/argus_scrapeconfig.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ resource "stackit_argus_scrapeconfig" "example" {
4747

4848
- `basic_auth` (Attributes) A basic authentication block. (see [below for nested schema](#nestedatt--basic_auth))
4949
- `saml2` (Attributes) A SAML2 configuration block. (see [below for nested schema](#nestedatt--saml2))
50-
- `sample_limit` (Number) Specifies the scrape sample limit. Upper limit depends on the service plan. Default is `5000`.
51-
- `scheme` (String) Specifies the http scheme. E.g. `https`.
52-
- `scrape_interval` (String) Specifies the scrape interval as duration string. E.g. `5m`.
53-
- `scrape_timeout` (String) Specifies the scrape timeout as duration string. E.g.`2m`.
50+
- `sample_limit` (Number) Specifies the scrape sample limit. Upper limit depends on the service plan. Defaults to `5000`.
51+
- `scheme` (String) Specifies the http scheme. Defaults to `https`.
52+
- `scrape_interval` (String) Specifies the scrape interval as duration string. Defaults to `5m`.
53+
- `scrape_timeout` (String) Specifies the scrape timeout as duration string. Defaults to `2m`.
5454

5555
### Read-Only
5656

@@ -82,4 +82,4 @@ Required:
8282

8383
Optional:
8484

85-
- `enable_url_parameters` (Boolean) Specifies if URL parameters are enabled.
85+
- `enable_url_parameters` (Boolean) Specifies if URL parameters are enabled. Defaults to `true`

docs/resources/dns_record_set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ resource "stackit_dns_record_set" "example" {
3535

3636
### Optional
3737

38-
- `active` (Boolean) Specifies if the record set is active or not.
38+
- `active` (Boolean) Specifies if the record set is active or not. Defaults to `true`
3939
- `comment` (String) Comment.
4040
- `ttl` (Number) Time to live. E.g. 3600
4141
- `type` (String) The record set type. E.g. `A` or `CNAME`

docs/resources/dns_zone.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ resource "stackit_dns_zone" "example" {
4242
- `default_ttl` (Number) Default time to live. E.g. 3600.
4343
- `description` (String) Description of the zone.
4444
- `expire_time` (Number) Expire time. E.g. 1209600.
45-
- `is_reverse_zone` (Boolean) Specifies, if the zone is a reverse zone or not.
45+
- `is_reverse_zone` (Boolean) Specifies, if the zone is a reverse zone or not. Defaults to `false`
4646
- `negative_cache` (Number) Negative caching. E.g. 60
4747
- `primaries` (List of String) Primary name server for secondary zone. E.g. ["1.2.3.4"]
4848
- `refresh_time` (Number) Refresh time. E.g. 3600
4949
- `retry_time` (Number) Retry time. E.g. 600
50-
- `type` (String) Zone type. E.g. `primary`
50+
- `type` (String) Zone type. Defaults to `primary`
5151

5252
### Read-Only
5353

docs/resources/ske_cluster.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ Required:
7575

7676
Optional:
7777

78-
- `cri` (String) Specifies the container runtime. E.g. `containerd`
78+
- `cri` (String) Specifies the container runtime. Defaults to `containerd`
7979
- `labels` (Map of String) Labels to add to each node.
8080
- `max_surge` (Number) Maximum number of additional VMs that are created during an update.
8181
- `max_unavailable` (Number) Maximum number of VMs that that can be unavailable during an update.
82-
- `os_name` (String) The name of the OS image. E.g. `flatcar`.
82+
- `os_name` (String) The name of the OS image. Defaults to `flatcar`.
8383
- `os_version` (String, Deprecated) This field is deprecated, use `os_version_min` to configure the version and `os_version_used` to get the currently used version instead
8484
- `os_version_min` (String) The minimum OS image version. This field will be used to set the minimum OS image version on creation/update of the cluster. If unset, the latest supported OS image version will be used. SKE automatically updates the cluster Kubernetes version if you have set `maintenance.enable_kubernetes_version_updates` to true or if there is a mandatory update, as described in [Updates for Kubernetes versions and Operating System versions in SKE](https://docs.stackit.cloud/stackit/en/version-updates-in-ske-10125631.html). To get the current OS image version being used for the node pool, use the read-only `os_version_used` field.
8585
- `taints` (Attributes List) Specifies a taint list as defined below. (see [below for nested schema](#nestedatt--node_pools--taints))
86-
- `volume_size` (Number) The volume size in GB. E.g. `20`
87-
- `volume_type` (String) Specifies the volume type. E.g. `storage_premium_perf1`.
86+
- `volume_size` (Number) The volume size in GB. Defaults to `20`
87+
- `volume_type` (String) Specifies the volume type. Defaults to `storage_premium_perf1`.
8888

8989
Read-Only:
9090

docs/resources/ske_kubeconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "stackit_ske_kubeconfig" "example" {
3030

3131
### Optional
3232

33-
- `expiration` (Number) Expiration time of the kubeconfig, in seconds.
33+
- `expiration` (Number) Expiration time of the kubeconfig, in seconds. Defaults to `3600`
3434
- `refresh` (Boolean) If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
3535

3636
### Read-Only

stackit/internal/services/argus/scrapeconfig/resource.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ func (r *scrapeConfigResource) Schema(_ context.Context, _ resource.SchemaReques
203203
},
204204

205205
"scheme": schema.StringAttribute{
206-
Description: "Specifies the http scheme. E.g. `https`.",
206+
Description: "Specifies the http scheme. Defaults to `https`.",
207207
Optional: true,
208208
Computed: true,
209209
Default: stringdefault.StaticString(DefaultScheme),
210210
},
211211
"scrape_interval": schema.StringAttribute{
212-
Description: "Specifies the scrape interval as duration string. E.g. `5m`.",
212+
Description: "Specifies the scrape interval as duration string. Defaults to `5m`.",
213213
Optional: true,
214214
Computed: true,
215215
Validators: []validator.String{
@@ -218,7 +218,7 @@ func (r *scrapeConfigResource) Schema(_ context.Context, _ resource.SchemaReques
218218
Default: stringdefault.StaticString(DefaultScrapeInterval),
219219
},
220220
"scrape_timeout": schema.StringAttribute{
221-
Description: "Specifies the scrape timeout as duration string. E.g.`2m`.",
221+
Description: "Specifies the scrape timeout as duration string. Defaults to `2m`.",
222222
Optional: true,
223223
Computed: true,
224224
Validators: []validator.String{
@@ -227,7 +227,7 @@ func (r *scrapeConfigResource) Schema(_ context.Context, _ resource.SchemaReques
227227
Default: stringdefault.StaticString(DefaultScrapeTimeout),
228228
},
229229
"sample_limit": schema.Int64Attribute{
230-
Description: "Specifies the scrape sample limit. Upper limit depends on the service plan. Default is `5000`.",
230+
Description: "Specifies the scrape sample limit. Upper limit depends on the service plan. Defaults to `5000`.",
231231
Optional: true,
232232
Computed: true,
233233
Validators: []validator.Int64{
@@ -251,7 +251,7 @@ func (r *scrapeConfigResource) Schema(_ context.Context, _ resource.SchemaReques
251251
),
252252
Attributes: map[string]schema.Attribute{
253253
"enable_url_parameters": schema.BoolAttribute{
254-
Description: "Specifies if URL parameters are enabled.",
254+
Description: "Specifies if URL parameters are enabled. Defaults to `true`",
255255
Optional: true,
256256
Computed: true,
257257
Default: booldefault.StaticBool(DefaultSAML2EnableURLParameters),

stackit/internal/services/dns/recordset/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (r *recordSetResource) Schema(_ context.Context, _ resource.SchemaRequest,
184184
},
185185
},
186186
"active": schema.BoolAttribute{
187-
Description: "Specifies if the record set is active or not.",
187+
Description: "Specifies if the record set is active or not. Defaults to `true`",
188188
Optional: true,
189189
Computed: true,
190190
Default: booldefault.StaticBool(true),

stackit/internal/services/dns/zone/resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (r *zoneResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
211211
},
212212
},
213213
"is_reverse_zone": schema.BoolAttribute{
214-
Description: "Specifies, if the zone is a reverse zone or not.",
214+
Description: "Specifies, if the zone is a reverse zone or not. Defaults to `false`",
215215
Optional: true,
216216
Computed: true,
217217
Default: booldefault.StaticBool(false),
@@ -254,7 +254,7 @@ func (r *zoneResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
254254
},
255255
},
256256
"type": schema.StringAttribute{
257-
Description: "Zone type. E.g. `primary`",
257+
Description: "Zone type. Defaults to `primary`",
258258
Optional: true,
259259
Computed: true,
260260
Default: stringdefault.StaticString("primary"),

stackit/internal/services/ske/cluster/resource.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
375375
},
376376
},
377377
"os_name": schema.StringAttribute{
378-
Description: "The name of the OS image. E.g. `flatcar`.",
378+
Description: "The name of the OS image. Defaults to `flatcar`.",
379379
Optional: true,
380380
Computed: true,
381381
Default: stringdefault.StaticString(DefaultOSName),
@@ -397,13 +397,13 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
397397
Computed: true,
398398
},
399399
"volume_type": schema.StringAttribute{
400-
Description: "Specifies the volume type. E.g. `storage_premium_perf1`.",
400+
Description: "Specifies the volume type. Defaults to `storage_premium_perf1`.",
401401
Optional: true,
402402
Computed: true,
403403
Default: stringdefault.StaticString(DefaultVolumeType),
404404
},
405405
"volume_size": schema.Int64Attribute{
406-
Description: "The volume size in GB. E.g. `20`",
406+
Description: "The volume size in GB. Defaults to `20`",
407407
Optional: true,
408408
Computed: true,
409409
Default: int64default.StaticInt64(DefaultVolumeSizeGB),
@@ -441,7 +441,7 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
441441
},
442442
},
443443
"cri": schema.StringAttribute{
444-
Description: "Specifies the container runtime. E.g. `containerd`",
444+
Description: "Specifies the container runtime. Defaults to `containerd`",
445445
Optional: true,
446446
Computed: true,
447447
Default: stringdefault.StaticString(DefaultCRI),

stackit/internal/services/ske/kubeconfig/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (r *kubeconfigResource) Schema(_ context.Context, _ resource.SchemaRequest,
105105
"cluster_name": "Name of the SKE cluster.",
106106
"project_id": "STACKIT project ID to which the cluster is associated.",
107107
"kube_config": "Raw short-lived admin kubeconfig.",
108-
"expiration": "Expiration time of the kubeconfig, in seconds.",
108+
"expiration": "Expiration time of the kubeconfig, in seconds. Defaults to `3600`",
109109
"expires_at": "Timestamp when the kubeconfig expires",
110110
"refresh": "If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place",
111111
}

0 commit comments

Comments
 (0)