e2e: Deploy vault as part of the Ceph FS suite

Always deploy Vault as part of the the Ceph FS test suite.

Required by:
 - fscrypt tests using any vault KMS type.
 - Configuration in deploy/cephfs/*.yaml via the
   ceph-csi-encryption-kms-config config map created during deployVault()

Signed-off-by: Marcel Lauhoff <marcel.lauhoff@suse.com>
This commit is contained in:
Marcel Lauhoff 2022-08-19 18:24:40 +02:00 committed by mergify[bot]
parent 42744213f6
commit 638f77a95c

View File

@ -203,6 +203,7 @@ var _ = Describe(cephfsType, func() {
if err != nil { if err != nil {
e2elog.Failf("failed to create node secret: %v", err) e2elog.Failf("failed to create node secret: %v", err)
} }
deployVault(f.ClientSet, deployTimeout)
// wait for cluster name update in deployment // wait for cluster name update in deployment
containers := []string{cephFSContainerName} containers := []string{cephFSContainerName}
@ -248,6 +249,8 @@ var _ = Describe(cephfsType, func() {
if err != nil { if err != nil {
e2elog.Failf("failed to delete storageclass: %v", err) e2elog.Failf("failed to delete storageclass: %v", err)
} }
deleteVault()
if deployCephFS { if deployCephFS {
deleteCephfsPlugin() deleteCephfsPlugin()
if cephCSINamespace != defaultNs { if cephCSINamespace != defaultNs {