MCPcopy Create free account
hub / github.com/DBCDK/morph / execHealthCheck

Function execHealthCheck

morph.go:480–497  ·  view source on GitHub ↗
(hosts []nix.Host)

Source from the content-addressed store, hash-verified

478}
479
480func execHealthCheck(hosts []nix.Host) error {
481 sshContext := createSSHContext()
482
483 var err error
484 for _, host := range hosts {
485 if host.BuildOnly {
486 fmt.Fprintf(os.Stderr, "Healthchecks are disabled for build-only host: %s\n", host.Name)
487 continue
488 }
489 err = healthchecks.PerformHealthChecks(sshContext, &host, timeout)
490 }
491
492 if err != nil {
493 err = errors.New("One or more errors occurred during host healthchecks")
494 }
495
496 return err
497}
498
499func execUploadSecrets(sshContext *ssh.SSHContext, hosts []nix.Host, phase *string) error {
500 for _, host := range hosts {

Callers 1

mainFunction · 0.85

Calls 2

PerformHealthChecksFunction · 0.92
createSSHContextFunction · 0.85

Tested by

no test coverage detected