fix: add auto-generated header to config.env
config.env is regenerated from spec.yml on every deploy create and restart, silently overwriting manual edits. Add a header comment explaining this so operators know to edit spec.yml instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>afd-dumpster-local-testing
parent
e5a8ec5f06
commit
e298e7444f
|
|
@ -675,6 +675,15 @@ def _write_config_file(
|
||||||
|
|
||||||
# Write non-secret config to config.env (exclude $generate:...$ tokens)
|
# Write non-secret config to config.env (exclude $generate:...$ tokens)
|
||||||
with open(config_env_file, "w") as output_file:
|
with open(config_env_file, "w") as output_file:
|
||||||
|
output_file.write(
|
||||||
|
"# AUTO-GENERATED by laconic-so from spec.yml config section.\n"
|
||||||
|
"# Source: stack_orchestrator/deploy/deployment_create.py"
|
||||||
|
" _write_config_file()\n"
|
||||||
|
"# Do not edit — changes will be overwritten on deploy create"
|
||||||
|
" or restart.\n"
|
||||||
|
"# To change config, edit the config section in your spec.yml"
|
||||||
|
" and redeploy.\n"
|
||||||
|
)
|
||||||
if config_vars:
|
if config_vars:
|
||||||
for variable_name, variable_value in config_vars.items():
|
for variable_name, variable_value in config_vars.items():
|
||||||
# Skip variables with generate tokens - they go to K8s Secret
|
# Skip variables with generate tokens - they go to K8s Secret
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue