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

Tests Assert that HA Should not be able to set the dataStorage StorageClass #998

Open
Eforen opened this issue Feb 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Eforen
Copy link

Eforen commented Feb 3, 2024

Describe the bug
As this test asserts that HS cannot be able to set their storageClass but that makes no sense to me/

To Reproduce
Steps to reproduce the behavior:
Run the test

@test "server/ha-StatefulSet: cant set data storage" {
cd `chart_dir`
local actual=$(helm template \
--show-only templates/server-statefulset.yaml \
--set 'server.ha.enabled=true' \
--set 'server.dataStorage.enabled=true' \
--set 'server.dataStorage.storageClass=foo' \
. | tee /dev/stderr |
yq -r '.spec.volumeClaimTemplates' | tee /dev/stderr)
[ "${actual}" = "null" ]
}

Expected behavior
I would be able to in HA mode beable to have storage be persisted so that if they all get nocked out I don't loose all my secrets

@Eforen Eforen added the bug Something isn't working label Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant