diff --git a/stack_orchestrator/deploy/deployment_create.py b/stack_orchestrator/deploy/deployment_create.py index 95026350..df1eb684 100644 --- a/stack_orchestrator/deploy/deployment_create.py +++ b/stack_orchestrator/deploy/deployment_create.py @@ -675,6 +675,15 @@ def _write_config_file( # Write non-secret config to config.env (exclude $generate:...$ tokens) 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: for variable_name, variable_value in config_vars.items(): # Skip variables with generate tokens - they go to K8s Secret