Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Mounting a pvc in a single pod builder multiple times, results in conflicts #69

Open
roderik opened this issue Jul 9, 2021 · 1 comment
Labels
good-first-issue Start here if you'd like to start contributing to Pulumi help-wanted We'd love your contributions on this issue kind/bug Some behavior is incorrect or out of spec

Comments

@roderik
Copy link

roderik commented Jul 9, 2021

Steps to reproduce

  1. create a pvc like in the examples
  2. create a podbuilder with 2 init containers and 1 normal container
  3. all these containers will interact with the data on the pvc so they all have volumeMounts: [ pvc.mount('/data')]
  4. the volumes in the spec builder is not a set, but an array, so it will have 3 volumes for the same pvc
  5. error

Went to a manual Deployment in the end.

@roderik roderik added the kind/bug Some behavior is incorrect or out of spec label Jul 9, 2021
@lukehoban
Copy link

lukehoban commented Jul 13, 2021

Sounds like we'll need to do a set union of the volumes instead of just concatenating them. PRs definitely welcome!

@lukehoban lukehoban added good-first-issue Start here if you'd like to start contributing to Pulumi help-wanted We'd love your contributions on this issue and removed good-first-issue Start here if you'd like to start contributing to Pulumi labels Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good-first-issue Start here if you'd like to start contributing to Pulumi help-wanted We'd love your contributions on this issue kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants