Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.15.0: "TaskRun mounts more than one PersistentVolumeClaim" despite single PVC w/ workspace subDirs #3085

Closed
bitsofinfo opened this issue Aug 10, 2020 · 1 comment · Fixed by #3099
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@bitsofinfo
Copy link

bitsofinfo commented Aug 10, 2020

I have a task theTask with 2 named workspaces:

...
  workspaces:

    - name: app-source
      description: The workspace where the app source code resides
      mountPath: /workspace/app-source
      readOnly: false

    - name: secondary-source
      description: The workspace where the secondary source code resides
      mountPath: /workspace/secondary-source
      readOnly: false
...

I have a pipeline with 1 workspace that is mapped to the 2 task workspaces via the diffentiating subPath flag:

    - name: theTask
      taskRef:
        name: theTask

      runAfter: 
        - init

      workspaces:
        - name: secondary-source
          workspace: build-ops
          subPath: secondary-source
        - name: app-source
          workspace: build-ops
          subPath: app-source
    

This worked totally fine up to 0.14.3 but now fails with this error in 0.15.0 and broke several functioning pipelines

 TaskRun mounts more than one PersistentVolumeClaim - that is forbidden
      when the Affinity Assistant is enabled

Related I assume: #2885

Seems one should still be above to mount a single PVC, which is what this is, its just logically divided by the different subPaths, vs truly separate PVCs which I am not attempting to do.

@bitsofinfo bitsofinfo added the kind/bug Categorizes issue or PR as related to a bug. label Aug 10, 2020
@bitsofinfo bitsofinfo changed the title 0.15.0: TaskRun mounts more than one PersistentVolumeClaim 0.15.0: "TaskRun mounts more than one PersistentVolumeClaim" despite single PVC w/ subDirs Aug 10, 2020
@bitsofinfo bitsofinfo changed the title 0.15.0: "TaskRun mounts more than one PersistentVolumeClaim" despite single PVC w/ subDirs 0.15.0: "TaskRun mounts more than one PersistentVolumeClaim" despite single PVC w/ workspace subDirs Aug 10, 2020
@vdemeester
Copy link
Member

/cc @jlpettersson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
2 participants