Skip to content

Commit

Permalink
Align the name of the component with what it is deployed on the platform
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Aug 28, 2024
1 parent 1ed58f6 commit 2e4b312
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configurations/konflux/build-bash-jam-cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ application:
name: my-quarkus
enable: false
component:
name: quarkus-1
name: my-quarkus-app
enable: false

job:
Expand Down
2 changes: 1 addition & 1 deletion configurations/konflux/build-bash-pack-cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ application:
name: my-quarkus
enable: false
component:
name: quarkus-1
name: my-quarkus-app
enable: false

job:
Expand Down
4 changes: 2 additions & 2 deletions configurations/konflux/build-quarkus-app-cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ application:
name: my-quarkus
enable: false
component:
name: quarkus-1
name: my-quarkus-app
enable: false

job:
# One of the supported resources: PipelineRun, Pipeline
resourceType: PipelineRun
name: quarkus-app-on-push
name: quarkus-1-on-push
description: PipelineRun performing a build of a Quarkus application using pack CLI

workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ application:
name: my-quarkus
enable: false
component:
name: quarkus-1
name: my-quarkus-app
enable: false

job:
# One of the supported resources: PipelineRun, Pipeline
resourceType: PipelineRun
name: quarkus-app-on-push
name: quarkus-1-on-push
description: PipelineRun performing a build of a Quarkus application using buildpack task and lifecycle

workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ component:

job:
resourceType: PipelineRun
name: quarkus-app-on-push
name: quarkus-1-on-push
description: PipelineRun doing a build of a Quarkus application using buildpack - extension task

workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ public HasMetadata generatePipeline(Configurator cfg) {
/* TODO: Code to be reviewed to avoid hard code values
*/
tasks.stream()
.filter(t -> t.getName().equals("buildpacks-extension-phases") || t.getName().equals("buildpacks-phases") || t.getName().equals(("pack")))
.filter(t ->
t.getName().equals("buildpacks-extension-phases") ||
t.getName().equals("buildpacks-phases") ||
t.getName().equals("jam") ||
t.getName().equals("pack"))
.map(t-> { t.setName("build-container"); return t;}).collect(Collectors.toList());

// @formatter:off
Expand Down

0 comments on commit 2e4b312

Please sign in to comment.