fonzdm / servarr

Just trying to make a Servarr helm chart. Help
GNU Affero General Public License v3.0
5 stars 1 forks source link

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

Closed imgios closed 4 months ago

imgios commented 4 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 4 months ago

Hi @imgios, @fonzdm ,

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

imgios commented 4 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 4 months ago

Hi @imgios, @fonzdm ,

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

Hi @mrgionsi, please go ahead! 💪🏻

imgios commented 4 months ago

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