325d504c3c
Instead of attempting to create or update a Kubernetes namespace on every deploy, only do so when we know it doesn't exist yet.
27 lines
453 B
Ruby
27 lines
453 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Ci
|
|
module Build
|
|
module Prerequisite
|
|
class Base
|
|
include Utils::StrongMemoize
|
|
|
|
attr_reader :build
|
|
|
|
def initialize(build)
|
|
@build = build
|
|
end
|
|
|
|
def unmet?
|
|
raise NotImplementedError
|
|
end
|
|
|
|
def complete!
|
|
raise NotImplementedError
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|