Skip to content

Commit 3ff6ff0

Browse files
authored
Merge pull request #2267 from rnc/VOLUME
Isolate deployment to use emptyDir volume
2 parents 92881f6 + e30a6f0 commit 3ff6ff0

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

deploy/tasks/maven-deployment.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ spec:
4141
description: Name of the processor image. Useful to override for development.
4242
type: string
4343
default: "quay.io/redhat-user-workloads/konflux-jbs-pnc-tenant/jvm-build-service/build-request-processor:latest"
44-
workspaces:
45-
- name: source
46-
mountPath: /var/workdir
44+
volumes:
45+
- name: workdir
46+
emptyDir: {}
47+
stepTemplate:
48+
volumeMounts:
49+
- mountPath: /var/workdir
50+
name: workdir
4751
steps:
4852
- name: restore-trusted-artifact
4953
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:81c4864dae6bb11595f657be887e205262e70086a05ed16ada827fd6391926ac

pkg/apis/jvmbuildservice/v1alpha1/systemconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ const (
4949
KonfluxGitDefinition = "https://raw.githubusercontent.com/konflux-ci/build-definitions/refs/heads/main/task/git-clone/0.1/git-clone.yaml"
5050
KonfluxPreBuildDefinitions = "https://raw.githubusercontent.com/redhat-appstudio/jvm-build-service/main/deploy/tasks/pre-build.yaml"
5151
KonfluxBuildDefinitions = "https://raw.githubusercontent.com/konflux-ci/build-definitions/refs/heads/main/task/buildah-oci-ta/0.2/buildah-oci-ta.yaml"
52-
KonfluxMavenDeployDefinitions = "https://raw.githubusercontent.com/redhat-appstudio/jvm-build-service/main/deploy/tasks/maven-deployment.yaml"
52+
KonfluxMavenDeployDefinitions = "https://raw.githubusercontent.com/rnc/jvm-build-service/VOLUME/deploy/tasks/maven-deployment.yaml"
5353
)

pkg/reconciler/dependencybuild/buildrecipeyaml.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,8 @@ use-archive oci:$URL@$AARCHIVE=%s`, orasOptions, registryArgsWithDefaults(jbsCon
611611
{
612612
Name: DeployTaskName,
613613
RunAfter: append(runAfterBuild, PostBuildTaskName),
614-
Workspaces: []tektonpipeline.WorkspacePipelineTaskBinding{
615-
{Name: WorkspaceSource, Workspace: WorkspaceSource},
616-
},
614+
// Don't need to specify WorkspacePipelineTaskBinding as the deploy task is using
615+
// an independent volume.
617616
TaskRef: &tektonpipeline.TaskRef{
618617
// Can't specify name and resolver as they clash.
619618
ResolverRef: deployResolver,

0 commit comments

Comments
 (0)