Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
fix healthcheck defaults with keepalive service
Browse files Browse the repository at this point in the history
  • Loading branch information
svensp committed Jan 7, 2020
1 parent e127553 commit da11709
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Blueprint/Keepalive/KeepaliveService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Rancherize\Blueprint\Keepalive;

use Rancherize\Blueprint\Healthcheck\HealthcheckExtraInformation\HealthcheckDefaultInformationSetter;
use Rancherize\Blueprint\Healthcheck\HealthcheckExtraInformation\HealthcheckExtraInformation;
use Rancherize\Blueprint\Infrastructure\Service\NetworkMode\ShareNetworkMode;
use Rancherize\Blueprint\Infrastructure\Service\Service;
Expand All @@ -24,7 +25,13 @@ public function __construct() {

private function setHealthcheck()
{
/**
* @var HealthcheckDefaultInformationSetter $defaultSetter
*/
$defaultSetter = container(HealthcheckDefaultInformationSetter::class);

$healthcheckInformation = new HealthcheckExtraInformation();
$defaultSetter->setDefaults($healthcheckInformation);
$healthcheckInformation->setPort(80);
$healthcheckInformation->setInterval(10000);
$this->addExtraInformation($healthcheckInformation);
Expand Down

0 comments on commit da11709

Please sign in to comment.