Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit d0a470b

Browse files
author
Luke Addison
committed
Increase timeout and check for vault initialisation
1 parent 50183e9 commit d0a470b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/tarmak/vault/vault.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
VaultStateUnsealed
2525
VaultStateUnintialised
2626
VaultStateErr
27-
vaultTunnelCreationTimeoutSeconds = 5
27+
vaultTunnelCreationTimeoutSeconds = 100
2828
)
2929

3030
const (
@@ -108,7 +108,7 @@ func (v *Vault) TunnelFromFQDNs(vaultInternalFQDNs []string, vaultCA string) (in
108108
return
109109
}
110110

111-
if health.Standby == false && health.Sealed == false {
111+
if health.Standby == false && health.Sealed == false && health.Initialized == true {
112112
activeNode <- pos
113113
}
114114

0 commit comments

Comments
 (0)