Skip to content

Commit 622be10

Browse files
committed
Remove redundant config
1 parent 911dc6c commit 622be10

File tree

1 file changed

+1
-8
lines changed
  • java-components/driver/src/main/java/com/redhat/hacbs/driver

1 file changed

+1
-8
lines changed

java-components/driver/src/main/java/com/redhat/hacbs/driver/Driver.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ public class Driver {
6464
@ConfigProperty(name = "konflux-build-driver.pipeline-resolver")
6565
String resolverTarget;
6666

67-
@ConfigProperty(name = "build-driver.pipeline")
68-
Optional<String> customPipeline;
69-
7067
public BuildResponse create(BuildRequest buildRequest) {
7168
IndyTokenResponseDTO tokenResponseDTO = new IndyTokenResponseDTO(accessToken);
7269

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

0 commit comments

Comments
 (0)