Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-22 00:08:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-22 00:08:43 +0300
commit6216eabd1c94ac7e560b4f43b164bff73e17b0da (patch)
treee4c4747a2474f4575732f11d023fc411dec2dba2 /lib/gitlab/ci/runner_upgrade_check.rb
parent2c87a975e36acc152da28665d39ca720f479fe53 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/runner_upgrade_check.rb')
-rw-r--r--lib/gitlab/ci/runner_upgrade_check.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/gitlab/ci/runner_upgrade_check.rb b/lib/gitlab/ci/runner_upgrade_check.rb
index baf041fc358..b8699a3d19a 100644
--- a/lib/gitlab/ci/runner_upgrade_check.rb
+++ b/lib/gitlab/ci/runner_upgrade_check.rb
@@ -5,12 +5,19 @@ module Gitlab
class RunnerUpgradeCheck
include Singleton
+ STATUSES = {
+ invalid: 'The runner version is invalid.',
+ not_available: 'An update is not available for the runner.',
+ available: 'An update is available for the runner.',
+ recommended: 'An update is available and recommended for the runner.'
+ }.freeze
+
def initialize
reset!
end
def check_runner_upgrade_status(runner_version)
- return :unknown unless runner_version
+ return :invalid unless runner_version
releases = RunnerReleases.instance.releases
parsed_runner_version = runner_version.is_a?(::Gitlab::VersionInfo) ? runner_version : ::Gitlab::VersionInfo.parse(runner_version)