From 622be103282d7e6f2064699e9460f44f0e63e5b0 Mon Sep 17 00:00:00 2001 From: Nick Cross Date: Wed, 4 Dec 2024 11:59:16 +0000 Subject: [PATCH] Remove redundant config --- .../src/main/java/com/redhat/hacbs/driver/Driver.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/java-components/driver/src/main/java/com/redhat/hacbs/driver/Driver.java b/java-components/driver/src/main/java/com/redhat/hacbs/driver/Driver.java index c838682eb..deb6155d5 100644 --- a/java-components/driver/src/main/java/com/redhat/hacbs/driver/Driver.java +++ b/java-components/driver/src/main/java/com/redhat/hacbs/driver/Driver.java @@ -64,9 +64,6 @@ public class Driver { @ConfigProperty(name = "konflux-build-driver.pipeline-resolver") String resolverTarget; - @ConfigProperty(name = "build-driver.pipeline") - Optional customPipeline; - public BuildResponse create(BuildRequest buildRequest) { IndyTokenResponseDTO tokenResponseDTO = new IndyTokenResponseDTO(accessToken); @@ -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); }