mirror of
https://github.com/cita-777/metapi.git
synced 2026-10-31 19:47:31 +08:00
* feat(chart): support referencing a pre-existing Secret via existingSecret Add an existingSecret value to the k3s chart so operators can supply a cluster-managed Secret instead of letting the chart generate one. - existingSecret non-empty: skip rendering secret.yaml; Deployment envFrom references the named Secret; checksum/env-secret annotation omitted (the chart does not promise to roll on external Secret content changes). - existingSecret empty: behavior unchanged (chart creates <release>-env and references it; full backward compatibility). - When existingSecret is set, .Values.env.* required validations are skipped via the conditional render (no conflict detection with env.*). - No per-key mapping (still envFrom), no lookup/verification of the external Secret, no new NOTES.txt/README — the chart's documentation surface is left as-is. Verified with helm template in both modes. Closes #595 Co-Authored-By: Claude <noreply@anthropic.com> * test(chart): assert envFrom resolves to envSecretRefName for existingSecret The k3sAssets guard asserted envFrom referenced metapi.envSecretName, but the existingSecret feature renamed the envFrom binding to metapi.envSecretRefName (secretRef.name falls back to the helper when existingSecret is unset). Update the assertion to match and pin the new existingSecret branch with guards on the envSecretRefName define and the .Values.existingSecret branch in _helpers.tpl. Co-Authored-By: Claude <noreply@anthropic.com> * docs(k3s): document existingSecret mode, required keys, and roll caveat Add a dedicated section to the k3s update-center doc covering the chart's existingSecret value: the chart-managed Secret vs an operator-supplied one, the fixed 11 keys the external Secret must provide, and the behavioral change that the checksum/env-secret auto-roll on Secret change is omitted under existingSecret (operators must drive rollouts via Reloader or manual restart). Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
36 lines
541 B
YAML
36 lines
541 B
YAML
replicaCount: 1
|
|
|
|
image:
|
|
repository: 1467078763/metapi
|
|
tag: latest
|
|
digest: ""
|
|
pullPolicy: Always
|
|
|
|
service:
|
|
type: NodePort
|
|
port: 4000
|
|
nodePort: 30400
|
|
|
|
deployment:
|
|
strategy:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
|
|
persistence:
|
|
hostPath: /opt/1panel/docker/compose/metapihub/data
|
|
|
|
env:
|
|
authToken: ""
|
|
proxyToken: ""
|
|
dbType: postgres
|
|
dbUrl: ""
|
|
dbSsl: "false"
|
|
dataDir: /app/data
|
|
port: "4000"
|
|
tz: Asia/Shanghai
|
|
checkinCron: "0 8 * * *"
|
|
balanceRefreshCron: "0 * * * *"
|
|
deployHelperToken: ""
|
|
|
|
existingSecret: ""
|