charts
charts copied to clipboard
[bitnami/supabase] Storage PVC and NetworkPolicy are created even if storage is explicitly disabled
Name and Version
bitnami/supabase 5.2.7
What architecture are you using?
amd64
What steps will reproduce the bug?
- Set
storage.enabled=falsein values - See PVC (and resulting PV) and NetworkPolicy for storage being created
Are you using any custom parameters or values?
storage:
enabled: false
What is the expected behavior?
If storage is disabled and there is no deployment, it makes not sense to create a PVC or NetworkPolicy.
What do you see instead?
Since there is no condition on storage as a whole being enabled for
- PVC https://github.com/bitnami/charts/blob/aeecba3c132c3bc89a9877300f235222985287e7/bitnami/supabase/templates/storage/pvc.yaml#L6
- NetworkPolicy https://github.com/bitnami/charts/blob/aeecba3c132c3bc89a9877300f235222985287e7/bitnami/supabase/templates/storage/networkpolicy.yaml#L6
both resources are created without being used.
Additional information
I understand that there are individual switches to disable storage.persistence.enabled and storage.networkPolicy.enabled. This is more about a particular configuration and storage.enabled should be the precondition for all related resources to even being considered.
Hi!
Thank you so much for reporting. Indeed, if the component is not enable these objects should not be created. As you discovered the issue, would you like to submit a PR adding an if statement?
Thank you so much for reporting. Indeed, if the component is not enable these objects should not be created. As you discovered the issue, would you like to submit a PR adding an
ifstatement?
@javsalgar I did just do that, see https://github.com/bitnami/charts/pull/27580
Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.
Your contribution is greatly appreciated!