fonzdm / servarr

Servarr - Stack Deployment with Helm
GNU Affero General Public License v3.0
6 stars 1 forks source link

Storage class name not being used in the PVC templates #17

Closed imgios closed 4 weeks ago

imgios commented 7 months ago

Description

Seems like that the storage class named passed in the values global.storageClassName is not being used correctly when creating the PVC, so Kubernetes uses the default storage class.

I think that's because there's a typo when referring to the parameter:

https://github.com/fonzdm/servarr/blob/d08a0a606a7cdd5f0d3c51ecfa9901c597643fa4/servarr/templates/pvc.yaml#L12

https://github.com/fonzdm/servarr/blob/d08a0a606a7cdd5f0d3c51ecfa9901c597643fa4/servarr/templates/pvc.yaml#L33

https://github.com/fonzdm/servarr/blob/d08a0a606a7cdd5f0d3c51ecfa9901c597643fa4/servarr/templates/pvc.yaml#L54

Steps to reproduce

Expected behavior

The Helm Chart should generate PVC templates using the correct StorageClassName from the values.

Servarr Helm Chart version

dev

Relevant log output

~$ helm template servarr servarr/servarr/ -f test/servarr-values.yaml | egrep -i "servarr/templates/|storageClassName"
# Source: servarr/templates/pvc.yaml
  storageClassName:
# Source: servarr/templates/pvc.yaml
  storageClassName:
# Source: servarr/templates/pvc.yaml
  storageClassName:

Chart values

# Check .github/ci/ci-values.yaml
global:
  storageClassName: &storageClassName "longhorn"

...

Code of Conduct

mrgionsi commented 7 months ago

Hi @imgios, @fonzdm ,

I will take this and will try to fix it! 😄

imgios commented 7 months ago

Hi @imgios, @fonzdm ,

I will take this and will try to fix it! 😄

Welcome aboard!

Feel free to create your first contribution, just make sure you read the guidelines 😊

fonzdm commented 7 months ago

Hi @imgios, @fonzdm ,

I will take this and will try to fix it! 😄

Hi @mrgionsi, please go ahead! 💪🏻

imgios commented 7 months ago

Issue fixed in #18. Thanks again, @mrgionsi!

emouawad commented 4 weeks ago

This is still happening on latest 1.0.1 Note i haven't downloaded the chart - maybe that's the reason yaml anchors are not working? Why are yaml anchors needed anyway? in helm this is not needed

helm upgrade -i --namespace servarr --create-namespace --repo https://fonzdm.github.io/servarr --values values.yml servarr servarr --debug
global:
  apikey: &apikey "aaa-bbb-ccc-ddd"
  storageClassName: &storageClassName "longhorn"
  ingressClassName: &ingressClassName "nginx"
  certManagerClusterIssuer: &issuer "clusterissuer-self-signed"

metrics:
  enabled: &metricsEnabled false
imgios commented 4 weeks ago

Hi @emouawad, thanks for the feedback. Can you please open a separated issue? I will link it to this one.