piraeusdatastore / helm-charts

Collection of useful charts for Piraeus and similar projects
Apache License 2.0
31 stars 18 forks source link

snapshot-validation-webhook-test-valid-body is failing #11

Closed rrey-aviatrix closed 2 years ago

rrey-aviatrix commented 2 years ago

Installed snapshot-validation-webhook-1.4.3 (app version v6.0.1) which is properly deployed:

NAME                        NAMESPACE               REVISION    UPDATED                                 STATUS      CHART                               APP VERSION
snapshot-validation-webhook external-snapshotter    1           2022-06-07 17:54:25.994741 +0200 CEST   deployed    snapshot-validation-webhook-1.4.3   v6.0.1

when running helm test snapshot-validation-webhook the operation fails:

Error: pod snapshot-validation-webhook-test-valid-body failed
rrey-aviatrix commented 2 years ago

I made a test where I replaced all occurrences of v1beta1 with v1 in the query and the test succeeded but I honestly don't know if that makes sense :/

WanzenBug commented 2 years ago

I think the issue is that v1beta1 versions were removed from CRDs for the 6.0.1 release. They added them back in the meantime. But we should just update to v1.

WanzenBug commented 2 years ago

Hmm, replacing v1beta1 with v1 in the tests directory did not work for me :/

rrey-aviatrix commented 2 years ago

I only tested through curl and did not test end to end with helm test again :/

WanzenBug commented 2 years ago

Fixed it now. Seems like the test is just no longer relevant, as the webhook no longer checks for the condition that should have caused a failure. I believe this is because the new CRD version already ensures this. So I switched to a different check.