From 830e7d8dfdaee24c5445dc442518cd4bca65c12d Mon Sep 17 00:00:00 2001 From: petr-buchyn Date: Thu, 22 Oct 2020 21:01:34 +0300 Subject: [PATCH] Property for AbstractDeployment --- src/Core/Deployment/AbstractDeployment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Core/Deployment/AbstractDeployment.php b/src/Core/Deployment/AbstractDeployment.php index 266912e..b483a23 100644 --- a/src/Core/Deployment/AbstractDeployment.php +++ b/src/Core/Deployment/AbstractDeployment.php @@ -14,6 +14,8 @@ abstract class AbstractDeployment implements DeploymentInterface { + protected int $replicas = 1; + public function affinity(AffinityConfigurator $affinity): void { } @@ -49,7 +51,7 @@ public function configurePodSpec(PodSpec $spec): void public function replicas(): int { - return 1; + return $this->replicas; } public function minReadySeconds(): ?int