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

helm - invalid pvc template for storageClass #893

Open
VincentDugard opened this issue Apr 8, 2024 · 1 comment
Open

helm - invalid pvc template for storageClass #893

VincentDugard opened this issue Apr 8, 2024 · 1 comment

Comments

@VincentDugard
Copy link
Contributor

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
Copy link
Contributor Author

I made a PR that should fix the issue : #894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant