Skip to content

ReconcilerUtils.loadYaml should allow loading resources ready to build. #1334

Closed
@iocanel

Description

@iocanel

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();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions