Skip to content

Commit

Permalink
backport of commit 49ea87d
Browse files Browse the repository at this point in the history
  • Loading branch information
curtbushko committed Aug 2, 2023
1 parent 4a9c2ef commit 0a2a331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acceptance/framework/vault/vault_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ func (v *VaultCluster) initAndUnseal(t *testing.T) {

v.logger.Logf(t, "initializing and unsealing Vault")
namespace := v.helmOptions.KubectlOptions.Namespace
retrier := &retry.Timer{Timeout: 2 * time.Minute, Wait: 1 * time.Second}
retrier := &retry.Timer{Timeout: 4 * time.Minute, Wait: 1 * time.Second}
retry.RunWith(retrier, t, func(r *retry.R) {
// Wait for vault server pod to be running so that we can create Vault client without errors.
serverPod, err := v.kubernetesClient.CoreV1().Pods(namespace).Get(context.Background(), fmt.Sprintf("%s-vault-0", v.releaseName), metav1.GetOptions{})
require.NoError(r, err)
require.Equal(r, serverPod.Status.Phase, corev1.PodRunning)
require.Equal(r, corev1.PodRunning, serverPod.Status.Phase)

// Set up the client so that we can make API calls to initialize and unseal.
v.vaultClient = v.SetupVaultClient(t)
Expand Down

0 comments on commit 0a2a331

Please sign in to comment.