Skip to content

Commit 9f31d5a

Browse files
committed
fix comments
1 parent 3ff2e06 commit 9f31d5a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

garage/templates/_helpers.tpl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ Name of the ServiceAccount to use.
4848
{{- end }}
4949

5050
{{/*
51-
Stable per-release RPC secret (inter-node clustering auth; loopback-only on a
52-
single node). `lookup` is used so that on `helm upgrade` we keep the previously
53-
generated value instead of rotating it (which would orphan the existing
54-
single-node cluster layout). The admin_token, by contrast, is a required,
51+
Auto-generated RPC secret (inter-node clustering auth; loopback-only on a single
52+
node, so it is never consumed externally). `lookup` reuses the previously stored
53+
value on `helm upgrade` to avoid a needless Secret diff — this is churn
54+
avoidance, not a correctness requirement: the node's identity and cluster layout
55+
live in the metadata volume, independent of this secret, so regenerating it does
56+
not lose data or orphan the layout. The admin_token, by contrast, is a required,
5557
operator-provided value (see admin.token) so it is known up front.
5658
*/}}
5759
{{- define "garage.rpcSecret" -}}

0 commit comments

Comments
 (0)