Add support for configuration extensions

Allow blocks prefixed with `x-` in the configuration as a place to
declare reusable blocks with YAML anchors and aliases.

Borrowed from the Docker Compose configuration file format -
https://github.com/compose-spec/compose-spec/blob/main/spec.md#extension

Thanks to @ruyrocha for the suggestion.
This commit is contained in:
Donal McBreen
2024-07-15 14:56:30 +01:00
parent fa73d722ea
commit 29c723f7ec
6 changed files with 67 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
class Kamal::Configuration::Validator::Configuration < Kamal::Configuration::Validator
private
def allow_extensions?
true
end
end