Skip to content

Commit

Permalink
Merge pull request #339 from daemon1024/update-timeout-install
Browse files Browse the repository at this point in the history
install: update timeout for slow network env
  • Loading branch information
daemon1024 committed Jun 23, 2023
2 parents b48c6a1 + 9765164 commit 84b3300
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ func checkPods(c *k8s.Client, o Options) {
}
}
fmt.Print("\n🔧 Verifying KubeArmor functionality (this may take upto a minute) ...")
ctx, cancel := context.WithTimeout(context.Background(), 40*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()

for {
select {
case <-time.After(1 * time.Second):
case <-time.After(10 * time.Second):
case <-ctx.Done():
fmt.Print("⚠️ Failed verifying KubeArmor functionality ...")
fmt.Print("\n⚠️ Failed verifying KubeArmor functionality ...")
return
}
probeData, err := probe.ProbeRunningKubeArmorNodes(c, probe.Options{
Expand All @@ -173,7 +173,7 @@ func checkPods(c *k8s.Client, o Options) {
if enforcing {
fmt.Print(color.New(color.FgWhite, color.Bold).Sprint("\n\n\t🛡️ Your Cluster is Armored Up! \n"))
} else {
color.Yellow("\n\n\t⚠️ KubeArmor is running in Audit mode, only Observability will be available and Policy Enforcement won't work. \n")
color.Yellow("\n\n\t⚠️ KubeArmor is running in Audit mode, only Observability will be available and Policy Enforcement won't be available. \n")
}
break
}
Expand Down

0 comments on commit 84b3300

Please sign in to comment.