Skip to content

Commit

Permalink
Merge pull request #9 from gkarthiks/fix/addons
Browse files Browse the repository at this point in the history
fix: logic to avoid addons
  • Loading branch information
gkarthiks authored Jul 28, 2020
2 parents a2a2f0f + ff034f5 commit 5a1f6cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helper/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ func populateIpAddresses(podsList *v1.PodList, vaultPool *types.VaultPool) {
currentPodNames[pod.Name] = struct{}{}
if pod.Status.Phase == v1.PodRunning {
// adding the currently discovered pod ips
globals.VaultIPList[pod.Name] = pod.Status.PodIP
//if _, ok := globals.VaultIPList[pod.Status.PodIP]; ok {
// log.Infof("%v already added", pod.Status.PodIP)
//} else {
// globals.VaultIPList[pod.Status.PodIP] = struct{}{}
//}
//globals.VaultIPList[pod.Name] = pod.Status.PodIP
if _, ok := globals.VaultIPList[pod.Name]; ok {
log.Infof("%v already added and configured", pod.Name)
} else {
globals.VaultIPList[pod.Name] = pod.Status.PodIP
}
}
}
for historyPodName, ipAddress := range globals.VaultIPList {
Expand Down

0 comments on commit 5a1f6cb

Please sign in to comment.