Skip to content

Commit

Permalink
Merge pull request #10 from gkarthiks/fix
Browse files Browse the repository at this point in the history
fix: configuring
  • Loading branch information
gkarthiks authored Jul 28, 2020
2 parents 5a1f6cb + 6cb4151 commit 718c906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helper/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ func populateIpAddresses(podsList *v1.PodList, vaultPool *types.VaultPool) {
if _, ok := globals.VaultIPList[pod.Name]; ok {
log.Infof("%v already added and configured", pod.Name)
} else {
log.Infof("%v adding and configuring", pod.Name)
globals.VaultIPList[pod.Name] = pod.Status.PodIP
}
}
}

log.Printf("Vault IP List data at the end of populate %v", reflect.ValueOf(globals.VaultIPList).MapKeys() )

for historyPodName, ipAddress := range globals.VaultIPList {
if _, ok := currentPodNames[historyPodName]; !ok {
// removing the obsolete pod and its details
Expand Down

0 comments on commit 718c906

Please sign in to comment.