mercure icon indicating copy to clipboard operation
mercure copied to clipboard

helm - invalid pvc template for storageClass

Open VincentDugard opened this issue 1 year ago • 1 comments

hello,

When setting storageClass in helm values, I get this error

Error: UPGRADE FAILED: failed to create resource: PersistentVolumeClaim in version "v1" cannot be handled as a PersistentVolumeClaim: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'

the reason is that the generated yaml is

resources:
  requests:
    storage: "1Gi"
    storageClassName: "ssd"

but it should be

resources:
  requests:
    storage: "1Gi"
storageClassName: "ssd"

cf : https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims

VincentDugard avatar Apr 08 '24 13:04 VincentDugard

I made a PR that should fix the issue : https://github.com/dunglas/mercure/pull/894

VincentDugard avatar Apr 08 '24 14:04 VincentDugard