PVCs will not mount in 0.12.21
See original GitHub issueBug
Current Behavior
After upgrading from 0.12.16
to 0.12.21
our PVCs are no longer mounting as expected. We are receiving the following error:
Failed getting status for service 'cache-volume' (from module 'cache-volume'). Here is the output:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
persistentvolumeclaim module cache-volume doesn't specify a serviceResource in its configuration. You must specify a resourceΒ in the module config in order to use certain Garden features, such as hot
reloading, tasks and tests.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
serviceResource
isnβt mentioned in the current PVC docs
Unfortunately Homebrew has made it incredibly difficult to rollback to a previous version of a package.
Our current PVC config is
kind: Module
name: cache-volume
type: persistentvolumeclaim
include: []
spec:
accessModes: [ReadWriteMany]
resources:
requests:
storage: 128Mi
and the volume config is
- name: cache
containerPath: /app/cache
module: cache-volume
EDIT: the volume is used in a container
module running in a local-kubernetes
provider.
Expected behavior
PVCs mount as expected OR the docs are updated to reflect the serviceResource
config requirement.
Reproducible example
Create a simple volume and create a PVC module for that volume without serviceResource
specified.
Workaround
None so far
Suggested solution(s)
If serviceResource
is required for PVC modules now a doc update would be sufficient.
Your environment
Garden 0.12.21 MacOS 11.2.3 Docker for Mac 3.3.1 (63152) Docker Engine 20.10.5 Docker Compose 1.29.0 Kubernetes 1.19.7
$ garden version
0.12.21
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7
Aha, ok. We tried reproducing this on our end but came up short. Any pointers, @edvald?
And thanks for the offer @ultimatemonty, Iβll definitely reach out if we find ourselves blocked, but this should be an easy enough fix.
Awesome, thanks for the repro. This will make it a lot easier to diagnose and fix.