Open scothis opened 2 years ago
This would be amazing. I can think of a bunch of use cases this would solve for me and would be much easier to implement custom conventions
Yes please! Being able to quickly implement template-based conventions with ytt is going to be extremely accessible to end users, and allow ops teams to realize enormous value from supply chains.
The current approach to defining an opinion source is via a webhook to a remote process. While flexible, this approach introduces networks and misconfigurations that can affect system stability. We should also explore ytt as a mechanism to run arbitrary code safely within the controller process.
Open questions:
Proposed approach:
The
.spec.webhook
section would remain, but be mutually exclusive with.spec.ytt
.The structure being templated is the PodTemplateSpec, with image metadata exposed as a ytt value.