Skip to content

Commit 35736e2

Browse files
committed
JBS79: Rename JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE to PNC_KONFLUX_TOOLING_IMAGE
1 parent 8d2fc98 commit 35736e2

File tree

5 files changed

+23
-21
lines changed

5 files changed

+23
-21
lines changed

deploy/pipeline/mw-pipeline-v0.1.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
type: string
4646
- name: INDY_PROXY_CLIENT_CREDENTIAL
4747
type: string
48-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
48+
- name: PNC_KONFLUX_TOOLING_IMAGE
4949
type: string
5050
default: "quay.io/redhat-user-workloads/konflux-jbs-pnc-tenant/konflux-tooling:latest"
5151
- name: NOTIFICATION_CONTEXT
@@ -84,8 +84,8 @@ spec:
8484
runAfter:
8585
- git-clone
8686
params:
87-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
88-
value: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
87+
- name: PNC_KONFLUX_TOOLING_IMAGE
88+
value: $(params.PNC_KONFLUX_TOOLING_IMAGE)
8989
- name: IMAGE_URL
9090
value: $(params.QUAY_REPO):trusted-source-$(context.pipelineRun.name)
9191
- name: NAME
@@ -158,8 +158,8 @@ spec:
158158
runAfter:
159159
- buildah-oci-ta
160160
params:
161-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
162-
value: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
161+
- name: PNC_KONFLUX_TOOLING_IMAGE
162+
value: $(params.PNC_KONFLUX_TOOLING_IMAGE)
163163
- name: IMAGE_URL
164164
value: $(tasks.buildah-oci-ta.results.IMAGE_URL)
165165
- name: IMAGE_DIGEST
@@ -180,8 +180,8 @@ spec:
180180
params:
181181
- name: ACCESS_TOKEN
182182
value: $(params.ACCESS_TOKEN)
183-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
184-
value: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
183+
- name: PNC_KONFLUX_TOOLING_IMAGE
184+
value: $(params.PNC_KONFLUX_TOOLING_IMAGE)
185185
- name: NOTIFICATION_CONTEXT
186186
value: $(params.NOTIFICATION_CONTEXT)
187187
- name: STATUS
@@ -192,8 +192,8 @@ spec:
192192
description: Access token for OAuth.
193193
type: string
194194
default: ""
195-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
196-
description: Name of the processor image. Useful to override for development.
195+
- name: PNC_KONFLUX_TOOLING_IMAGE
196+
description: Name of the tooling image.
197197
type: string
198198
- name: NOTIFICATION_CONTEXT
199199
description: Notification context
@@ -203,7 +203,7 @@ spec:
203203
type: string
204204
steps:
205205
- name: notification
206-
image: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
206+
image: $(params.PNC_KONFLUX_TOOLING_IMAGE)
207207
args:
208208
- notify
209209
- --context=$(params.NOTIFICATION_CONTEXT)

deploy/tasks/maven-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ spec:
3939
description: Access token for OAuth.
4040
type: string
4141
default: ""
42-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
43-
description: Name of the processor image. Useful to override for development.
42+
- name: PNC_KONFLUX_TOOLING_IMAGE
43+
description: Name of the tooling image.
4444
type: string
4545
- name: caTrustConfigMapKey
4646
description: The name of the key in the ConfigMap that contains the
@@ -81,7 +81,7 @@ spec:
8181
- name: IMAGE_URL
8282
value: $(params.IMAGE_URL)
8383
- name: deploy
84-
image: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
84+
image: $(params.PNC_KONFLUX_TOOLING_IMAGE)
8585
securityContext:
8686
runAsUser: 0
8787
computeResources:

deploy/tasks/pre-build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ spec:
2424
- name: IMAGE_URL
2525
description: URL of the OCI image to use.
2626
type: string
27-
- name: JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE
28-
description: Name of the processor image. Useful to override for development.
27+
- name: PNC_KONFLUX_TOOLING_IMAGE
28+
description: Name of the tooling image.
2929
type: string
3030
- name: RECIPE_IMAGE
3131
description: The image from the build recipe to use
@@ -38,7 +38,7 @@ spec:
3838
mountPath: /var/workdir
3939
steps:
4040
- name: preprocessor
41-
image: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
41+
image: $(params.PNC_KONFLUX_TOOLING_IMAGE)
4242
securityContext:
4343
runAsUser: 0
4444
computeResources:
@@ -53,7 +53,7 @@ spec:
5353
- --build-tool-version=$(params.BUILD_TOOL_VERSION)
5454
- --java-version=$(params.JAVA_VERSION)
5555
- --recipe-image=$(params.RECIPE_IMAGE)
56-
- --request-processor-image=$(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
56+
- --tooling-image=$(params.PNC_KONFLUX_TOOLING_IMAGE)
5757
- --type=$(params.BUILD_TOOL)
5858
- $(workspaces.source.path)/source
5959
env:

pkg/apis/jvmbuildservice/v1alpha1/systemconfig_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ const (
5151
KonfluxPreBuildGitDefinitions = "https://raw.githubusercontent.com/rnc/jvm-build-service/BR1/deploy/tasks/pre-build-git.yaml"
5252
KonfluxBuildDefinitions = "https://raw.githubusercontent.com/redhat-appstudio/jvm-build-service/main/deploy/tasks/buildah-oci-ta.yaml"
5353
KonfluxMavenDeployDefinitions = "https://raw.githubusercontent.com/rnc/jvm-build-service/BR1/deploy/tasks/maven-deployment.yaml"
54+
55+
PNCKonfluxToolingImage = "quay.io/redhat-user-workloads/konflux-jbs-pnc-tenant/konflux-tooling:latest"
5456
)

pkg/reconciler/dependencybuild/buildrecipeyaml.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,10 @@ func createPipelineSpec(log logr.Logger, tool string, commitTime int64, jbsConfi
425425
// },
426426
//},
427427
{
428-
Name: "JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE",
428+
Name: "PNC_KONFLUX_TOOLING_IMAGE",
429429
Value: tektonpipeline.ParamValue{
430430
Type: tektonpipeline.ParamTypeString,
431-
StringVal: "quay.io/redhat-user-workloads/konflux-jbs-pnc-tenant/konflux-tooling:latest",
431+
StringVal: v1alpha1.PNCKonfluxToolingImage,
432432
},
433433
},
434434
},
@@ -778,10 +778,10 @@ use-archive oci:$URL@$AARCHIVE=%s`, orasOptions, registryArgsWithDefaults(jbsCon
778778
},
779779
},
780780
{
781-
Name: "JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE",
781+
Name: "PNC_KONFLUX_TOOLING_IMAGE",
782782
Value: tektonpipeline.ParamValue{
783783
Type: tektonpipeline.ParamTypeString,
784-
StringVal: buildRequestProcessorImage,
784+
StringVal: v1alpha1.PNCKonfluxToolingImage,
785785
},
786786
},
787787
},

0 commit comments

Comments
 (0)