Skip to content

Commit

Permalink
Remove redundant config
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Dec 4, 2024
1 parent 911dc6c commit 622be10
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ public class Driver {
@ConfigProperty(name = "konflux-build-driver.pipeline-resolver")
String resolverTarget;

@ConfigProperty(name = "build-driver.pipeline")
Optional<String> customPipeline;

public BuildResponse create(BuildRequest buildRequest) {
IndyTokenResponseDTO tokenResponseDTO = new IndyTokenResponseDTO(accessToken);

Expand Down Expand Up @@ -98,12 +95,8 @@ public BuildResponse create(BuildRequest buildRequest) {
var tc = client.adapt(TektonClient.class);
// Various ways to create the initial PipelineRun object. We can use an objectmapper,
// client.getKubernetesSerialization() or the load calls on the Fabric8 objects.
if (customPipeline.isEmpty()) {
pipelineRun = tc.v1().pipelineRuns()
pipelineRun = tc.v1().pipelineRuns()
.load(IOUtils.resourceToURL("pipeline.yaml", Thread.currentThread().getContextClassLoader())).item();
} else {
pipelineRun = tc.v1().pipelineRuns().load(Path.of(customPipeline.get()).toFile()).item();
}
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 622be10

Please sign in to comment.