Dynamic Helm Configuration with Lua Scripts
Enhance Helm deployments with dynamic configuration by using Lua scripts
When luaScript is present and non-empty A Go library for processing Lua scripts generating structured output in the format:
json
{ "values": { "key": "value" }, "valuesFiles": ["file1.txt", "file2.json"] }
The full Helm release is rendered using this merged configuration.
Security Architecture
The Lua execution environment follows the principle of the least privilege by:
- Selective Library Loading: Only essential, safe standard libraries are loaded
- Custom Module Control: All additional functionality is provided through controlled custom modules
- Restricted File Access: File operations are confined to a specified base directory
Lua Modules
Encoding Module
The encoding module provides functions for JSON and YAML serialization.