Closed
Description
My understanding is that the the ReconcilerUtils.loadYaml
is meant to load an initial yaml file and then programmatically modify it.
It would make sense for me to allow loading that resource directly as builder:
DeploymentBuilder builder = ReconcilerUtils.loadYaml(DeploymentBuilder.class, getClass(), "deployment.yaml");
Deployment deployment = builder
.accept(ContainerBuilder.class, c -> c.withImage("my-image"))
// More changes here
.build();