Add support for YAML configuration inheritance#2817
Add support for YAML configuration inheritance#2817somiljain2006 wants to merge 6 commits intojenkinsci:masterfrom
Conversation
timja
left a comment
There was a problem hiding this comment.
Is this needed when we have folders, other tools that can merge yaml e.g. kustomize, and yaml anchors?
|
The goal of this is to provide a simple, native inheritance mechanism directly within JCasC without requiring external preprocessing or complex YAML constructs, unlike multiple files, which lack clear override semantics, or anchors, which are limited to a single file. This approach provides a very intuitive way to manage layered configurations. |
|
Yes but do people actually need it, there's a bunch of code there to maintain, limited interest in it recently on the issue. I think there's probably more important issues to solve unless this is something you have a need for? |
|
I think it's better to convert this pr to a draft for now unless any meaningful use case appears for it. |
Fixes #1066
This change introduces _extends support in JCasC YAML configurations, allowing users to compose configurations across multiple files.
Features:
Implementation:
Tests: Added unit tests covering inheritance, overrides, circular dependencies, invalid inputs, and edge cases
Your checklist for this pull request
🚨 Please review the guidelines for contributing to this repository.