Commit d3762c22 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Implement pipeline seeds size methods

parent 1ca4f282
...@@ -312,6 +312,10 @@ module Ci ...@@ -312,6 +312,10 @@ module Ci
@stage_seeds ||= config_processor.stage_seeds(self) @stage_seeds ||= config_processor.stage_seeds(self)
end end
def seeds_size
@seeds_size ||= stage_seeds.sum(&:size)
end
def has_kubernetes_active? def has_kubernetes_active?
project.kubernetes_service&.active? project.kubernetes_service&.active?
end end
......
...@@ -3,7 +3,9 @@ module Gitlab ...@@ -3,7 +3,9 @@ module Gitlab
module Stage module Stage
class Seed class Seed
attr_reader :pipeline attr_reader :pipeline
delegate :project, to: :pipeline delegate :project, to: :pipeline
delegate :size, to: :@jobs
def initialize(pipeline, stage, jobs) def initialize(pipeline, stage, jobs)
@pipeline = pipeline @pipeline = pipeline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment