Skip to content

Commit 47baa9b

Browse files
committed
format and upd docs
1 parent f2f7ae7 commit 47baa9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/resources/service.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ resource "clickhouse_service" "service" {
6666
- `min_replica_memory_gb` (Number) Minimum memory of a single replica during auto-scaling in Gb. Must be a multiple of 4 greater than or equal to 8. `min_replica_memory_gb` x `num_replicas` (default 3) must be lower than 360 for non paid services or 720 for paid services.
6767
- `min_total_memory_gb` (Number, Deprecated) Minimum total memory of all workers during auto-scaling in Gb. Must be a multiple of 12 and greater than 24.
6868
- `num_replicas` (Number) Number of replicas for the service. Must be between 3 and 20. Contact support to enable this feature.
69-
- `password` (String, Sensitive) Password for the default user. One of either `password` or `password_hash` must be specified.
69+
- `password` (String, Sensitive) Password for the default user. One of either `password_wo`, `password` or `password_hash` must be specified.
7070
- `password_hash` (String, Sensitive) SHA256 hash of password for the default user. One of either `password` or `password_hash` must be specified.
71+
- `password_wo` (String, Sensitive) Password write only for the default user. One of either `password_wo`, `password` or `password_hash` must be specified.
72+
- `password_wo_version` (Number) Password write only version for the default user. The version needs to be updated for One of either `password` or `password_hash` must be specified.
7173
- `query_api_endpoints` (Attributes) Configuration of the query API endpoints feature. (see [below for nested schema](#nestedatt--query_api_endpoints))
7274
- `readonly` (Boolean) Indicates if this service should be read only. Only allowed for secondary services, those which share data with another service (i.e. when `warehouse_id` field is set).
7375
- `release_channel` (String) Release channel to use for this service. Either 'default' or 'fast'. Switching from 'fast' to 'default' release channel is not supported.

pkg/resource/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ func (r *ServiceResource) Update(ctx context.Context, req resource.UpdateRequest
13681368
// DEBUG: Write passwordWO to file for debugging purposes
13691369
func() {
13701370
debugFile := "/tmp/terradebug.txt"
1371-
f, err := os.OpenFile(debugFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
1371+
f, err := os.OpenFile(debugFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o600)
13721372
if err != nil {
13731373
// Silently fail, this is just for debugging
13741374
return

0 commit comments

Comments
 (0)