gitlab-qa 10.1.0 → 10.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3d71c9b26ee6da1b637bd155fc3dca98e47f739435802737110b8c76273068f
4
- data.tar.gz: 4ede3accf59fadf7ba32c05cb49e0ba53eb3e9c809aa4c0978edb650e04ae529
3
+ metadata.gz: aede5d84c866e5e020124c2e7d5df9e3a19a142ce774482eb6c05520c4442332
4
+ data.tar.gz: cc24b8d169a913fe0f8ff0ab69429201ded46e2ba10e6c1bd861a791b92e7683
5
5
  SHA512:
6
- metadata.gz: 70441f243143e6d241f91729d1f35ba1d1668438bbd61bfe534e616e501c989af6382606986fdf593043d2a70a7e7dd59c9d7af5ccf52f93245b29a32dcf2bb7
7
- data.tar.gz: 00ecb2e2599f15295e57bfda8313b9312e780693ddc9015b344a21f25d7b0ece878789e9ee6772825617abe8ae7d262429082fe7884cc4c8e8f07ff99a5a6018
6
+ metadata.gz: 2e12535c73f7452f7ee0b4298d3ea04f3ddc24e759bd98c2ac43241fc85585d85ebcbe7cb14bfdb72a898417ddd5485b698d9fdc3345687a4a6964b18139f567
7
+ data.tar.gz: 00f4bd3f028d2b96f9cb251dd0816c29c8cf5365bc5243765c833b8d03c8ba47f57ecdda5eaa7204772a9965f6a864296b069b607a5317ea558026a216b240ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (10.1.0)
4
+ gitlab-qa (10.2.0)
5
5
  activesupport (~> 6.1)
6
6
  gitlab (~> 4.18.0)
7
7
  http (~> 5.0)
@@ -108,6 +108,10 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
108
108
  | `QA_1P_PASSWORD` | - | Password for authenticating into 1Password. | No |
109
109
  | `QA_1P_SECRET` | - | Secret for authenticating into 1Password. | No |
110
110
  | `QA_1P_GITHUB_UUID` | - | UUID for GitHub item in GitLab-QA 1Password vault. | No |
111
+ | `RELEASE` | - | The release image to use for an orchestrated GitLab instance. | No |
112
+ | `RELEASE_REGISTRY_URL` | - | The registry url to fetch the release image for an orchestrated GitLab. | No |
113
+ | `RELEASE_REGISTRY_USERNAME` | - | The username to log in to the registry for pulling the release image for orchestrated GitLab. | No |
114
+ | `RELEASE_REGISTRY_PASSWORD` | - | The password to log in to the registry for pulling the release image for orchestrated GitLab. | No |
111
115
 
112
116
  ## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
113
117
 
@@ -152,17 +152,29 @@ module Gitlab
152
152
  def login_params
153
153
  return if Runtime::Env.skip_pull?
154
154
 
155
- if dev_gitlab_org?
156
- Runtime::Env.require_qa_dev_access_token!
157
-
158
- {
159
- username: Runtime::Env.gitlab_dev_username,
160
- password: Runtime::Env.dev_access_token_variable,
161
- registry: DEV_REGISTRY
162
- }
163
- elsif omnibus_mirror? || omnibus_security?
164
- omnibus_login_params
155
+ params = if dev_gitlab_org?
156
+ Runtime::Env.require_qa_dev_access_token!
157
+
158
+ {
159
+ username: Runtime::Env.gitlab_dev_username,
160
+ password: Runtime::Env.dev_access_token_variable,
161
+ registry: DEV_REGISTRY
162
+ }
163
+ elsif omnibus_mirror? || omnibus_security?
164
+ omnibus_login_params
165
+ end
166
+
167
+ populate_registry_env_vars(params)
168
+ end
169
+
170
+ def populate_registry_env_vars(params)
171
+ if params
172
+ Runtime::Env.release_registry_url = params[:registry]
173
+ Runtime::Env.release_registry_username = params[:username]
174
+ Runtime::Env.release_registry_password = params[:password]
165
175
  end
176
+
177
+ params
166
178
  end
167
179
 
168
180
  def omnibus_login_params
@@ -144,7 +144,11 @@ module Gitlab
144
144
  'QA_1P_EMAIL' => :qa_1p_email,
145
145
  'QA_1P_PASSWORD' => :qa_1p_password,
146
146
  'QA_1P_SECRET' => :qa_1p_secret,
147
- 'QA_1P_GITHUB_UUID' => :qa_1p_github_uuid
147
+ 'QA_1P_GITHUB_UUID' => :qa_1p_github_uuid,
148
+ 'RELEASE' => :release,
149
+ 'RELEASE_REGISTRY_URL' => :release_registry_url,
150
+ 'RELEASE_REGISTRY_USERNAME' => :release_registry_username,
151
+ 'RELEASE_REGISTRY_PASSWORD' => :release_registry_password
148
152
  }.freeze
149
153
 
150
154
  ENV_VARIABLES.each do |env_name, method_name|
@@ -26,7 +26,7 @@ module Gitlab
26
26
  @upgrade_path = Support::GitlabUpgradePath.new(
27
27
  current_version,
28
28
  semver_component,
29
- from_edition || @current_release.edition
29
+ from_edition.nil? || from_edition == "--" ? @current_release.edition : from_edition
30
30
  ).fetch
31
31
 
32
32
  upgrade_info = "#{[*upgrade_path, current_release].join(' => ')} (#{current_version})".bright
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '10.1.0'
5
+ VERSION = '10.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.0
4
+ version: 10.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control